I’m currently creating spectating system, but when I press wasd the camera is shaking because character walks. I’m anchoring them to stop shaking, but it doesn’t work perfectly. How can I prevent it?
You can use ContextActionService to just temporarly disable input
local ContextActionService = game:GetService("ContextActionService")
local FREEZE_ACTION = "freezeMovement"
ContextActionService:BindAction(
FREEZE_ACTION,
function() return Enum.ContextActionResult.Sink end,
false,
unpack(Enum.PlayerActions:GetEnumItems())
)
--to unfreeze
ContextActionService:UnbindAction(FREEZE_ACTION)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.