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

Is there a way to not make a person move or do anything like cancel every action?

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

1 comment

0

its callled killing him or anchoring his HumanoidRootPart

1 answer

✓ Accepted 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

0

Reset?

0

What do you mean?

0

reseting character

0

So when the player dies, you want it to still disable everything is that what you're trying to say?

0

-_-

0

Or want it re-enabled after they die?

0

He means disable the ability to reset as well - which can be done via SetCore, ResetButtonCallback.

0

oH so you want to disable the reset button

0

Ok wait ima add that in

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