1) You need to wait for the character to load before you can access it. I'd do the same for the humanoid just to be safe. 2) You can't disable the "Jump" property like that. The "Jump" property lets you see if the character is jumping, and if you set it to true, the character will jump. Then it immediately gets set back to false. 3) You can't wait for .0001 seconds in Roblox. The frames go by slower than that. Use wait() without adding a number in the parenthesis, and that will wait for about 1/30 of a second. That's the fastest you can go if you don't use RunService. 4) In general, I wouldn't use while true do if I were you. It will lag up the game. Use the Changed event. I'll show you how to do that.
01 | Player = game.Players.LocalPlayer |
02 | repeat wait() until Player.Character |
03 | character = Player.Character |
04 | hum = character:WaitForChild( "Humanoid" ) |
07 | hum.Changed:connect( function () |
15 | if hum.WalkSpeed ~ = 0 then hum.WalkSpeed = 0 end |