local tweenservice = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
local properties = {
Rotation = 360
}
local rotate = tweenservice:Create(ImageButton, tweeninfo, properties)
local debounce = false
ImageButton.MouseButton1Click:Connect(function()
if not debounce then
debounce = true
rotate:Play()
wait(2)
debounce = false
end
end)
Can you tell me why?

1 comment
let me try