game.Players.LocalPlayer.leaderstats.Stop.Changed:Connect(function()
if game.Players.LocalPlayer.leaderstats.Stop == 0 then
ContextActionService:UnbindAction("Left")
ContextActionService:UnbindAction("Right")
ContextActionService:UnbindAction("Jump")
else
ContextActionService:BindAction('Left', onLeft, true, 'a', Enum.KeyCode.Left,
Enum.KeyCode.DPadLeft)
ContextActionService:BindAction('Right', onRight, true, 'd', Enum.KeyCode.Right,
Enum.KeyCode.DPadRight)
ContextActionService:BindAction('Jump', onJump, true, 'w', Enum.KeyCode.Space,
Enum.KeyCode.Up, Enum.KeyCode.DPadUp, Enum.KeyCode.ButtonA)
end
end)
Yes, the the code does run (it registers when the variable changes)
Im trying to prevent player movement, but the players still moves.
Why wont the players function unbind?
(yes, this is a snippet of larger code)

2 comments
I know i couldve done this, but i did my way to prevent All input and make other stuff easier, but you know what? screw it
Rip.