Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I run code when a player sits in a seat? Will UserInputService work? (for vehicle)

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

1 comment

0

Do you mean play a animation when,you sit down

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.