for example since im making a touch screen shop gui I want the player to just stop and not do anything like no shift lock button no movement speed no userinputs like pressing keycode L litteraly nothing except the chat and the esc
Is there a way to not make a person move or do anything like cancel every action?
1 answer
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 to disable walking and game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 to disable jumping and I guess game.StarterPlayer.EnableMouseLockOption = false for shift lock disable and when you're done set it back to game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 to re-enable walking and game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 to re-enable jumping and for shift lock enable game.StarterPlayer.EnableMouseLockOption = true
To disable the Reset Button create a local script in StarterGUI and add this in:
wait()
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
9 comments
Reset?
What do you mean?
reseting character
So when the player dies, you want it to still disable everything is that what you're trying to say?
-_-
Or want it re-enabled after they die?
He means disable the ability to reset as well - which can be done via SetCore, ResetButtonCallback.
oH so you want to disable the reset button
Ok wait ima add that in
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
its callled killing him or anchoring his HumanoidRootPart