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

How can I teleport a player into a seat?

Asked by 8 years ago

So I have a car. When a player clicks a GUI Button, the player will teleport from their position into the car sitting in the seat.

Is there a way I can teleport the player and have them automatically sit in the seat?

0
What have you tried so far? Have you tried teleporting them directly onto the seat (via CFrame) and seeing if that works? chess123mate 5873 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

Have them tp, via CFrame, and in my assumption they would automatically sit on their own.

Ad
Log in to vote
0
Answered by 8 years ago
Edited 7 years ago

is this what you are looking for?

game.Players.LocalPlayer.Character:MoveTo(game.workspace.VehicleSeat.Position)
-- In the brackets, insert the path to your seat and add ".Positon" at the end of it

i have tested it, and it works for me

Answer this question