So I have made a script that makes the player not be able to move but don't know where to put it and what type of script to use I am relatively new to coding on roblox. Here's the script that I made.
Player.Humanoid.Walkspeed = 0 Player.Humanoid.Jumpspeed = 0
Tell me if the script is incorrect
First off, JumpSpeed
doesn't exist. I think you mean JumpPower
And you would have to put this in a server script as the client cannot edit the humanoid properties.
Something like so: (not tested)
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:FindFirstChild('Humanoid') if humanoid then humanoid.WalkSpeed = 0 humanoid.JumpPower = 0 end end) end)