How would I detect if a player is jumping out of seat

I need help detecting if a player is jumping out of a seat. I do not want the players to jump in my game. However, there are seats so I want the players to only be able to jump out of the seat. At all other times, the jumping is disabled

Check if the β€œSit” property in the character humanoid is true. If true, jump.

Alternative Solution:
You can Probably check if the Occupant of the vehicle is nil

No idea how to do that. I dont know how to check

Basically use UserInputService to detect a Key press (Ex. Space, LeftShift) and if the Keycode is Space, check if humanoid.Sit = true, if so, do something like humanoid.Jump.

Probably a server sided script btw.

2 Likes

Thanks man it works now. Really appreciate it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.