of     1   

JoshROCKS234
#183362563Thursday, February 11, 2016 3:57 AM GMT

So I have this script, and ye erm, it's a tool that is supposed to spawn a car by clicking anywhere, and it works and all, but people can easily spam spawn a car. Where would I put a wait function or something to prevent that from happening? bin = script.Parent function onButton1Down(mouse) local model = bin.Model:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) end bin.Selected:connect(onSelected) messageBox ("Signature Line");
cofunction
#183362626Thursday, February 11, 2016 3:58 AM GMT

JoshROCKS234
#183516788Saturday, February 13, 2016 5:53 PM GMT

Hmmm
Superwarrior360
#183517062Saturday, February 13, 2016 5:56 PM GMT

local debounce = false bin = script.Parent function onButton1Down(mouse) if debounce = false then debounce = true local model = bin.Model:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) wait(number of desired seconds) debounce = false end end bin.Selected:connect(onSelected)
JoshROCKS234
#183610696Sunday, February 14, 2016 8:23 PM GMT

Now the script won't work at all, lol... messageBox ("Signature Line");
myactivetestplace
#183610835Sunday, February 14, 2016 8:26 PM GMT

Superwarrior360
#183610886Sunday, February 14, 2016 8:26 PM GMT

are there any errors
JoshROCKS234
#183611036Sunday, February 14, 2016 8:28 PM GMT

I've got it now, thanks! Forgot to do double = messageBox ("Signature Line");

    of     1