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

How to disable movement when GUI is visible?

How might I disable movement of the player when a frame is visible?

1 answer

✓ Accepted answer

Try this maybe :

if game.StarterGui.ScreenGui.Frame.Visible == true then player.CharacterAppearanceLoaded:Connect(function(character) character.humanoid.WalkSpeed = 0 end) end)

2 comments

0

Thanks!

0

Even if you change visibility of the frame it would leave that event running. You should have CharacterAppearanceLoaded seperated from if statement and using vaiable to run or not.

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