Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom loading screen not working?

Asked by 5 years ago

I followed the roblox tutorial on custom loading screen gui to replace the default one, but as I tested it, the default loading screen doesn't show. Does this feature works anymore? I'm going to copy paste the whole script I'm currently using.

As it says in the wiki, it is stationed in the ReplicatedFirst.

local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(0)

local screen = Instance.new("ScreenGui")
screen.Parent = PlayerGui

local textLabel = Instance.new("TextLabel")
textLabel.Text = "Loading"
textLabel.Size = UDim2.new(1,0,1,0)
textLabel.FontSize = Enum.FontSize.Size14
textLabel.Parent = screen

script.Parent:RemoveDefaultLoadingScreen()

local count = 0
local start = tick()
while tick() - start < 6 do
    textLabel.Text = "Loading " .. string.rep(".",count)
    count = (count + 1)  4
    wait(.3) 
end

screen.Parent = nil
0
Line 19. Looking at the wiki, you need a % sign there. xPolarium 1388 — 5y

Answer this question