
842 Views
36 Executions
Custom Loading UI V2
Universal Script π
SpectravaxISBACKPublished 25
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo 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
Script edited: Update script
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









Fire w