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

How can I teleport a vehicle seat while a person is in, and keep them in it?

I have a vehicle, (Which is a model) and I want to move the entire vehicle while a person is sitting in it, While keeping them in the seat.

1 answer

What you want to do is in studio choose a part in model as primary part

Then use one of model api functions :MoveTo()

local myCar = game.Workspace.MyCar --just an example

maCar:MoveTo(Vector3.new(0,0,0)) --moves to the center of the map

--You can also use the cframe one
maCar:SetPrimaryPartCFrame(CFrame.new(0,0,0)) 

Remember to 1.Set car model primary part.

Read more about primary part->http://wiki.roblox.com/index.php?title=API:Class/Model/PrimaryPart

and model api-> http://wiki.roblox.com/index.php?title=API:Class/Model

This discussion is preserved as it was. New answers, comments, and votes are closed.