Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Seat Teleportation on Spawn?

Asked by
Pyracel 55
8 years ago

I want to be able to teleport players as they spawn to one of the seats in a tank. It would also have to be cable of having many tanks and many seats to be filled randomly. The names of the seats are GunnerSeat, Driver Seat. How would I make this work?

0
You don't put a question mark at the end of a sentence when the sentence isn't a question. The title of your post is a question, so it requires a question mark, otherwise you're probably posting something that doesn't belong here and it wants to prevent you from doing that. It doesn't tell you to put arbitrary question marks throughout your entire post. 1waffle1 2908 — 8y
0
Ya I figured that out Pyracel 55 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

you can make a table of all the seats and check if there is a player sitting in the seat, while iterating through all of them, if one is open, teleport the player to the seat position and make sure the player sits in the seat, ( you can probably do this by checking if the Humanoid property Sit is true or not :)

Ad

Answer this question