Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Is it possible to prevent a player from jumping out of a chair? [closed]

Asked by 10 years ago

Would it be possible for me to prevent someone from jumping out of a seat (or getting out using other methods)?

Locked by User#19524

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
-2
Answered by 10 years ago

function onTouched(t) Torso = t.Parent:findFirstChild("Torso") if Torso ~= nil then Torso.Anchored = true end script.Parent.onTouched:connect(onTouched)

Ad
Log in to vote
-2
Answered by
HexC3D 830 Moderation Voter
10 years ago

Yes there is. You can disable jumping from a humanoid

Player.Character.Humanoid.Jump = false

You can edit the sitting script and make it so until you can time it so then it would eject them out after a certain time period?

1
That doesn't disable it. That turns to true when they jump. Could use a while loop or .Changed. Thewsomeguy 448 — 10y
1
This answer is incorrect. User#11893 186 — 10y
0
No, it doesn't disable it. Thewsomeguy 448 — 10y