debounce = false script.Parent.MouseButton1Click:connect(function() if debounce == false then script.Parent.Parent:TweenPosition(UDim2.new(0.25, 0, 0.80, 0), "Out", "Quint", 1) wait(1) debounce = true elseif debounce == true then script.Parent.Parent:TweenPosition(UDim2.new(0.25, 0, 0.9, 0), "Out", "Quint", 1) wait(1) debounce = false end end)
Hi! So i have been having trouble with Tweening today, I was making my game to a "Filtering Enabled" game. The only thing that did not work after that was the tweening. Any idea why it won't work?
Please help!
//0skarian
Looking at the comments, this is not in a LocalScript. With Filtering Enabled on, Scripts do not work in GUIs. You need to convert it to a LocalScript.