local buttonPressed = false
function onClicked(playerWhoClicked)
if not buttonPressed then
if buttonPressed == false then
buttonPressed = true
local car = game.ServerStorage.Car:Clone()
car .Parent = workspace
car:MakeJoints()
buttonPressed = false
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
end
I have tried looking on other videos but they dont seem to work. HELP !

1 comment
Sorry, there was an error earlier in the code. I revised it and it should be working like normal now.