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 player movement?

I've tried looking all over the dev forum for a script to disable player movement, I've found a few but I don't know where to put it? Anyone know where I'm supposed to put it, you can give me a totally different script, I just want to know where you're supposed to put it!

1 answer

✓ Accepted answer

So I made this script

workspace.ChildAdded:Connect(function(plr)
	if plr:FindFirstChild("Humanoid") then
	plr.Humanoid.WalkSpeed = 0
	end
	workspace.Gravity = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368
end)

It disables walking and jumping.

NOTE: It doesn't completely stop you from jumping.

Put it in workspace

5 comments

0

Put it in where?

0

Just workspace

0

Instead of adding the workspace.gravity to all those numbers just put in"plr.Humanoid.JumpPower = 0" after line 3

0

But, is there a way to make the player walk to a point while this script is running?

0

Sorry, I am not that good at lua. Try to find some youtube tutorials

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