local CanClick = true
local button = script.Parent
local sound = button:WaitForChild('Sound')
script.Parent.MouseButton1Click:connect(function()
if not CanClick then return end
CanClick = false
sound:Play()
script.Parent.Parent.Parent.TextButton:TweenPosition(UDim2.new(0, 0,0.47, 0), "InOut", "Quad", 1.5)
script.Parent.Parent.Parent.Frame:TweenPosition(UDim2.new(-5, 0,0.089, 0), "InOut", "Quad", 1.5)
local CanClick = true
wait(.5)
script.Parent.Parent.Parent.TextButton.Visible = true
end)
Clicked for the second time, the button didn't do anything. No errors,
YES when i remove "local CanClick = true" it didn't do anything when I clicked it again!

1 comment
oh my! I didn't realize I added local to it!