of     1   

WILDjake4
#224070593Tuesday, August 22, 2017 8:55 AM GMT

Before anybody tells me this- Yes, I know there are tutorials on youtube, but they are for buttons that you walk over. I want one that is a button that you click. I also want it to not spawn another car if the car was generated by that button. Quite confusing, I don't know how to explain it. i ask everyone for help on a daily basis
WILDjake4
#224070806Tuesday, August 22, 2017 9:13 AM GMT

also the model/vehicle name is Humvee and it's located in ServerStorage. i ask everyone for help on a daily basis
LilPrincesses123
#224070922Tuesday, August 22, 2017 9:23 AM GMT

#Spoonfeed local SpawnAvailable = true script.Parent.ClickDetector.MouseClick:Connect(function() if SpawnAvailable == false then else end game.Workspace.Humvee:Destroy() game.ServerStorage.Humvee:Clone().Parent = game.Workspace game.Workspace.Humvee:MoveTo(COORDINATES) SpawnAvailable = false wait(10) -- You can edit this if you want. SpawnAvailable = true end)
F4ULT1NTH3D4T4
#224071343Tuesday, August 22, 2017 10:05 AM GMT

thats some lazy crap ^ ----------------- Make sure, inside of your button, there is a ClickDetector Insert a script onto the button, and paste this code in: ClickDetector = script.Parent:WaitForChild("ClickDetector") CanSpawn = true ClickDetector.MouseClick:connect(function() HumveeClone = game.ServerStorage.Humvee:Clone() if CanSpawn then CanSpawn = false if workspace:FindFirstChild("Humvee") then workspace.Humvee:Destroy() end HumveeClone.Parent = workspace wait(10) CanSpawn = true --This to prevent mass regen end end)
WILDjake4
#224072188Tuesday, August 22, 2017 10:57 AM GMT

It gives me no errors but when I press the button, it doesn't load the car???? i ask everyone for help on a daily basis

    of     1