Unable to move?

All I do is set the players speed and jump to 0, then when I teleport them back I set their speed and what not back to normal, as pictured, but I’m still unable to move. HRP isn’t anchored either, so there’s no reason for me to be stuck standing still

CameraManipulation:StopGame()
CameraManipulation:ResetCamera(Character)
	
Character.Humanoid.JumpPower = 35
Character.Humanoid.WalkSpeed = 16
1 Like

I don’t know if this completely solves your problem but an alternative to setting jump and player speed to zero and setting it back, if you don’t know, is to disable player controls entirely by using the PlayerModule:

local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---Get Controls

Controls:Disable()

A Question:

Are inputs (Character control inputs) being processed at all? or is it just that the character isn’t moving?

Your functions are probably yielding. Did you try printing before you set their walkspeed and jumppower back to normal?

1 Like

That only works in LocalScripts because the server cannot access PlayerScripts. Is there a way to disable character movement server-side, without changing WalkSpeed or JumpPower? (I’m using this thread to ask a question, should post it in a new thread instead?)

His function name is ResetCamera, I’d assume he’s doing it on the client. If not then he has bigger issues.

I believe the server can not access the player scripts directly, yes , PlayerScripts | Documentation - Roblox Creator Hub( also no there is no need to create a new thread if you are asking a simple or “One Time” question, but keep in mind you shouldn’t “Clutter” a topic with unrelated replies either)

1 Like

So, do you have to use remote events to disable character movement using the controls:Disable() method, or is there a more direct way? (Thanks @Jaycbee05 for the tip :smile:)

That seems like a adequate way of doing it if you want to activate it from the server to the client.

1 Like