Universal Script πŸ“Œ
842 Views
36 Executions

Custom Loading UI V2

Universal Script πŸ“Œ
SpectravaxISBACK
SpectravaxISBACKPublished 25
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

This is for something if they want to have a loading ui for their script. Bye. This is the Version 2, it's now updated and now better.

Updates

  1. Script edited: Update script

View Raw
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "LoadingGui"
screenGui.Parent = playerGui
screenGui.Enabled = true
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true

local background = Instance.new("ImageLabel")
background.Name = "Background"
background.Size = UDim2.new(1, 0, 1, 0)
background.Position = UDim2.new(0, 0, 0, 0)
background.BackgroundColor3 = Color3.new(0, 0, 0)
background.Image = "rbxassetid://18878365966"
background.BackgroundTransparency = 0
background.ImageTransparency = 0
background.ZIndex = 1
background.Parent = screenGui

local uiScale = Instance.new("UIScale")
uiScale.Name = "UIScale"
uiScale.Parent = background

local function setDeviceScale()
    if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled then
        uiScale.Scale = 1.0
    elseif UserInputService.TouchEnabled and UserInputService.KeyboardEnabled then
        uiScale.Scale = 1.2
    elseif UserInputService.GamepadEnabled then
        if UserInputService:GetPlatform() == Enum.Platform.XBoxOne then
            uiScale.Scale = 1.2
        elseif UserInputService:GetPlatform() == Enum.Platform.PS4 then
            uiScale.Scale = 0.9
        else
            uiScale.Scale = 1.1


Comments

1
Log in to join the conversation. Login
voltrix's profile picture
voltrix1 year ago

Fire w

1

Tags

More universal scripts

See all
Script hub
33.1k
298.2k
Bumped 2 hours ago
Script hub
23.6k
5.2k
Bumped 2 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
213
596
Bumped 2 hours ago
Universal Script πŸ“Œ
1.6k
30.3k
Bumped 2 hours ago
Script hub
4.1M
558.8k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.1k
Bumped 3 hours ago
Key System
Script hub
14.0k
28.6k
Bumped 5 hours ago