Spawning a Vehicle on One Pad

So I am trying to clone and spawn one vehicle to one singular pad, once the button is clicked but it does not seem to be doing anything. I thought it was this simple?

car = game.ReplicatedStorage["Chevy Caprice pd"]
spawnPart = script.Parent.Parent.SpawnPart
part = script.Parent

part.ClickDetector.MouseClick:Connect(function()
	local spawnCar = car:Clone()
	spawnCar.Parent = game.Workspace
	spawnCar.CFrame = spawnPart.CFrame
	print("Car Spawned")
end)
1 Like

If the car is a model, you should definitely use :PivotTo() instead of setting the CFrame manually, I think it’s more proper in this case.

Also make sure the ClickDetector event is actually firing, use some prints. If it’s not, make sure CanQuery is true.

2 Likes

Maybe use MoveTo(spawnPart.Positon)?

2 Likes

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