How to make a Seat Lock

Hey! I was working on my stuff… And I need a seat lock, I wanted to use sit tight, but not working, so I was wondering if someone who knows, can reply me a script of a seat lock for group of seats on a bus and also appart, a seat lock for driver seat only. Thanks, it will really help me!

1 Like

Do you mean “Seat lock” by that players can’t leave their seats?

1 Like

Yeah! Then also another one just for player cannot seat on driver seat

Hi! Sorry for the late response. I was on my summer vacation :sun_with_face:

Btw, here’s the script:

local seat = *seat*

local function disableLeaveSeat(humanoid)
humanoid.JumpPower = 0

if seat.Occupant ~= nil then
local character = seat.Occupant.Parent
if game.Players:GetPlayerFromCharacter(character) ~= nil then

You can add things inside the “disableLeaveSeat” function.
The things inside the function is what happens when a player sits (supposed to not leave)

I’d personally create my own seats and vehicle seat controllers since you can’t effectively control seats in the exact way you want. Its still possible but from my personal experience, its not as effective as I’d like.