How would you lock a seat, so a user can't press the spacebar to get up?
I want to use this in a vehicle, so anchoring isn't an option. I've tried adding a weld with a script, but that doesn't work.
Any ideas?
How would you lock a seat, so a user can't press the spacebar to get up?
I want to use this in a vehicle, so anchoring isn't an option. I've tried adding a weld with a script, but that doesn't work.
Any ideas?
If you add the following code, it should work:
script.Parent.ChildAdded:connect(function(part)
if part.Name == "SeatWeld" then
part.Name = "Weld"
end
end)
What this code does is, it changing the name of the SeatWeld to just a Weld, if you do this, the weld won't be removed when a user presses spacebar.
This discussion is preserved as it was. New answers, comments, and votes are closed.