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

3 comments
is it a localscript?
nope
LocalScripts should be used in anything under the Player module. Otherwise, it should be a ServerScript.