Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I Cannot tween with filtering enabled, help?

Asked by 7 years ago
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

0
is it a localscript? blowup999 659 — 7y
0
nope 0skarian 10 — 7y
0
LocalScripts should be used in anything under the Player module. Otherwise, it should be a ServerScript. hiimgoodpack 2009 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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.

Ad

Answer this question