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

Loading screen is not showing up when I join?

Asked by
CodeWon 181
3 years ago

I tried making a loading screen and it does not work.

Script:

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

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

local gui = script.LoadingScreen:Clone()
gui.Parent = playerGui

wait(3)

repeat wait(0.5) until game:IsLoaded()

gui.Frame.LoadingText.Text = "Finished loading!"

gui.Frame:TweenPosition(
    UDim2.new(0,0,1,0),
    "Out",
    "Sine",
    false,
    0.8,

    gui.Frame:Destroy()
)

1 answer

Log in to vote
1
Answered by 3 years ago

SetTopBarTransparency is not a valid member of PlayerGui "Players.[PLR_NAME].PlayerGui" You should get rid of this line, the roblox doesn't support it anymore, you probably watched some outdated videos. It clearly says in a big red box here. Just try removing a line with this code. If you didn't knew, there was an actual topbar ui made by roblox, now it's gone.

Ad

Answer this question