Instructions
Open "Roblox" studios.
Create an object in the game world by dragging a brick from the Objects tab on the right of the screen into the game world.
Expand the Workspace tab on the right of the screen to access the folder of the object you created.
Expand the object's folder to locate "Script." Open the Script to access the brick's code.
Add the following lines of code into the script:
game.Workspace.Player.Humanoid.Seated:connect(function()
print("Seated")
end)
This line of code is the trigger, which only activates the seated event.
Add any lines of code you desire after this section to create the result of the seated event. You could program a waitress arriving to take the player's order, a catapult launching the player across the map or anything else that you could possibly imagine.