Vehicle Spawner

Last time i did a vehicle spawner I never got it working. So I figured I’d ask you guys for help right away. I have no scripts rn, only a car, an invisible box that I want to open an menu when touched, and 2 spawn areas.

VehicleSpawn1 Folder (workspace)
image
Now for the 2 spawn areas I was thinking just basically check if there is something obstructing one of the spawn points and if not then spawn it, if there is dont spawn it.

StarterGUI
image
Pretty simple really.

Car (rep storage)
image

I’m not sure if I covered everything here, but if there is something else you need, let me know

1 Like

When a player touches the invisible box, on the client I would open the menu.

Once they press said button to open the vehicle, I would just clone the car, then set the pivot to the model to the boxes pivot, and be done.

If you want to check if there’s something already there, just use :GetPartsInPart()

1 Like

Alright, Thanks man. I’ll give it a try. :+1:

1 Like

Hey man. In the script i tried changing the models .WorldPivot.Position to the Area1.Positiion this doesn’t work. Is that the correct way of doing it?

1 Like

No, you gotta use :PivotTo(). You can’t change model’s positions that way. Not sure why, I wish you could tween models like that, but you simply cannot.

1 Like

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