I am trying to make a cooldown on a script but it just doesnt work. I tried some stuff but it doesnt work
value = workspace.Spawner.Screen.Spawn.Frame.TextButton.Value
text = workspace.Spawner.Screen.Spawn.Frame.TextLabel
if value.Value == 1 then
text.Text = Cooldown
wait (1)
text.Text = Drive Safely
else
script.Parent.MouseButton1Click:connect(function(GetCar) ---Start of script
Mod = game.ServerStorage.Camaro
clone = Mod:clone()
clone.Parent = workspace
clone:MakeJoints() ---End of script
value.Value == 1
wait (5)
value.Value == 0
end)

7 comments
http://idownvotedbecau.se/itsnotworking
^ How about actually trying to help him instead of downvoting.
How about he help us so we can help him, by providing error details. Upvotes are only for good posts, you upvoted him for no reason...
Plus that link explains why i -1
I never upvoted him :)
There is so much wrong in this example. value.Value being checked outside of the click handler, assignments being attempted with == instead of =, text strings that aren't in quotes, mouse click handler having an argument called GetCar (why?) etc. This code won't even run as-is.
@programmerHere actually where does it say it is only for good posts?