I want to make people sit on a chair for 4 or 5 seconds. I think it doesn't work and it seems like it doesn't work! Can someone tell me more, where to place it or like that. I put the localscript in the seat. Here is what I got:
if hit.Parent then
local jumpDisabled = true
ContextActionService:BindActionAtPriority("JumpOverride", function()
if jumpDisabled then
return Enum.ContextActionResult.Sink
else
return Enum.ContextActionResult.Pass
end
end, false, Enum.ContextActionPriority.High, Enum.PlayerActions.CharacterJump, Enum.KeyCode.Space)
wait (4)
local jumpDisabled = false
ContextActionService:BindActionAtPriority("JumpOverride", function()
if jumpDisabled then
return Enum.ContextActionResult.Sink
else
return Enum.ContextActionResult.Pass
end
end, false, Enum.ContextActionPriority.High, Enum.PlayerActions.CharacterJump, Enum.KeyCode.Space)

1 comment
Thank you, but where to place that script and is that a localscript or a script.