I am making a vehicle. I have never worked with seats before. How do I make it run code when I sit in a seat, and will UserInputServiceWork? I am making a vehicle. Thanks --Your FierceBreakfeast TheFierceWaffle
COMMUNITY QUESTION
How do I run code when a player sits in a seat? Will UserInputService work? (for vehicle)
1 answer
You could try taking a shot at it with the Touched but basically if the Player is touching the seat run the code. Poor example down below..
local Seat = game.Workspace -- change game.Workspace to your seat
function Touched() -- any part thats touching
--code
end
Seat.Touched:Connect(Touched)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Do you mean play a animation when,you sit down