I'm making a car spawner in my game and I have the cars in ServerStorage. I would like it so when the pad is clicked a car spawns on top aligned with it. I don't want to make a rotated car for each pad. So far what I have is using the MoveTo function to get it over the pad. Now I need to know how to rotate it to the proper axis.

2 comments

0

Can you post the current code?

0

script.Parent.MouseClick:connect(function() local Suburban = game.Workspace.Suburban local Pad = script.Parent.Parent Suburban:SetPrimaryPartCFrame(CFrame.Angles()) Suburban:MoveTo(Vector3.new(Pad.Position.X, Pad.Position.Y + 6, Pad.Position.Z)) end)