Car spawning next to player help

read UNTIL END

Hi! What I want to make, is a system like in Brookhaven RP where you click on a button to spawn a car (that part I have already completed) and the car spawns next to you.

What I am confused about is how to they get the position of the player and spawn the car a few studs away from the player?

Clarification required, please do ask.

Any help is appreciated, thanks!

Do you mean this in the same way teleporters work, where they teleport you about 5 studs above the block??

Do you mean I teleport the car? Yeah, that could work.

carName.Position = player:FindFirstChild("HumanoidRootPart").Position + 0,5,0

Would this work?

Yes, but the car is a model, so would I have to move the PrimaryPart or is there a way to move the model itself?

PrimaryPart. Just make it the part closest to the model’s own position then you should be fine :smiley:

Ok, thanks! I will test it now

:smile:

It gives me an error. Should these coordinates be Vector3 or CFrame?

I would guess Vector3

1 Like

Vector3. CFrame would not work in this sort of case

1 Like

Solution:

Just put the coordinates as Vector3.

If the car is a model.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.