Hello! I want to make player follow other player but I got problem. When player follow with moveto they can jump and walk to escape. So I wanna know how can I disable player keyboard in server script.
Thank for helping.
Hello! I want to make player follow other player but I got problem. When player follow with moveto they can jump and walk to escape. So I wanna know how can I disable player keyboard in server script.
Thank for helping.
You can disable the players control through a local script by disable controls through the player module.
I made a simple script that will stop the player movement for 5 seconds.
local player = game.Players.LocalPlayer
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
function stopMovement(seconds)
Controls:Disable()
wait(seconds)
Controls:Enable()
end
stopMovement(5)
is it possible to put it in server script