2 messages · Page 1 of 1 (latest)
i made a script where if a player touches a part it makes them sit and the jumppower / height is set to 0 to stop them from getting up but the player can still get up while the jumppower is set at 0
`function onTouch(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Sit = true
hit.Parent.Humanoid.JumpHeight = 0
wait(2)
hit.Parent.Humanoid.JumpHeight = 7.2
end
end
script.Parent.Touched:Connect(onTouch)`