Hey! Currently, I want to make a car spawner, I have done the main script but a player can press it again and then there are two cars in the same position which is making the game bug. Here is my current code:
button = script.Parent
button.MouseButton1Down:Connect(function()
local car = game.ServerStorage["308"]
local carclone = car:Clone()
carclone.Parent = game.Workspace
end)

10 comments
Sorry didnt work
What is the problem that comes up?
Nope it was me thank you so much!
Glad I could help
Hello i needed to remove the acceptance, once I spawn a car, no other cars will spawn so no it doesnt work
is there any error?
Workspace.Part.SurfaceGui.Frame.TextButton.Script:5: attempt to index nil with 'Position'
Are you sure you have set a primary part for the model?
How do you do that lol?
Click on the model, Click on the Blank Space in front of Primary Part and then Click on the Part you want to make Primary Part