Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Local script in starter GUI doesn’t make loading screen appear?

So I have a loading screen that appears when a player joins. For now I’m just making it stay on the screen so I can see if it appears when I join. But it doesn’t. Here’s the script.

game.Players.PlayerAdded:Connect(function(player)
player.PlayerGui.Loading.Enabled = true
end)

2 answers

✓ Accepted answer

Try removing line 1 and line 3, 'PlayerAdded' has never worked for me, and instead, just let the script run whenever it's ready (which is when you start the game). Instead, add a variable at the start of the script saying: player = game.Players.LocalPlayer; so that the script looks more like this:

local player = game.Players.LocalPlayer

player.PlayerGui.Loading.Enabled = true

2 comments

0

Damn, my grammar stopped for a sec.

0

Thank you.

You can make an easier Loading screen. You can make a screengui (and frame) and put this localscript: EDIT: Forgot to change the speed and jump power back xD

local h = character:WaitForChild("Humanoid")
h.jumpPower = 0 -- sets the jump power to 0 so the character can't jump
h.WalkSpeed = 0-- sets the speed to 0 so the character can't move
wait(7) -- wait 7 seconds
h.JumpPower = 50 -- considering you use the default jump power
h.WalkSpeed = 16 -- considering you use the default speed
script.Parent.Frame.Visible = false -- after 7 seconds, remove the loading screen

you should estimate the seconds you have to wait by how big the game is (is it a big game or is it something like a small project?)

let me know if there are any problems!

2 comments

0

i need it to be disabled so i can see my other GUI, so i need a script that enables it on join. Also, I use "repeat wait(3) until game:IsLoaded()", so i dont need to calculate the wait time.

0

oh, sorry.

This discussion is preserved as it was. New answers, comments, and votes are closed.