local buttonPressed = false script.Parent.MouseButton1Click:connect(function() if not buttonPressed then buttonPressed = true workspace.GiveRobux:FireServer() wait(5) buttonPressed = false end end)
Try changing the "if statement" to something like this:
local buttonPressed = false script.Parent.MouseButton1Click:connect(function() if buttonPressed == false then buttonPressed = true workspace.GiveRobux:FireServer() wait(5) buttonPressed = false end end)
so that way if the buttonPressed is equal true the if statement won't run