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

How do make a lobby for one player which can't move until they press a button and spawn?

Asked by 5 years ago

i tried many script including decreasing jump power but it never worked plz help me

0
Thx Nifemiplayz 32 — 5y

1 answer

Log in to vote
1
Answered by
Dleppyy 41
5 years ago
Edited 5 years ago

To do this is very simple!

Put the script below in a local script inside "StarterGui"

wait(1)

game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (0)
game.Players.LocalPlayer.Character.Humanoid.JumpPower = (0)

then put this in the button that starts the game when the player has pressed it (local script)

script.Parent.MouseButton1Click:Connect(function()
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (16)
    game.Players.LocalPlayer.Character.Humanoid.JumpPower = (50)    
end)

If this worked, make sure to click accept!

0
if you need me to make it so the button is gone when the player clicked it, just tell me what the reference to it is. For ex.. GameStartScreen.GameStartButton Dleppyy 41 — 5y
Ad

Answer this question