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

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

Asked by 6 years ago

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

0
its callled killing him or anchoring his HumanoidRootPart TheluaBanana 946 — 6y

1 answer

Log in to vote
1
Answered by
fr2013 88
6 years ago
Edited 6 years ago

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)
0
Reset? stumplee555 4 — 6y
0
What do you mean? fr2013 88 — 6y
0
reseting character stumplee555 4 — 6y
0
So when the player dies, you want it to still disable everything is that what you're trying to say? fr2013 88 — 6y
View all comments (5 more)
0
-_- stumplee555 4 — 6y
0
Or want it re-enabled after they die? fr2013 88 — 6y
0
He means disable the ability to reset as well - which can be done via SetCore, ResetButtonCallback. SummerEquinox 643 — 6y
0
oH so you want to disable the reset button fr2013 88 — 6y
0
Ok wait ima add that in fr2013 88 — 6y
Ad

Answer this question