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"); |