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

I've tried this with a local script, and a normal script but it still doesn't work?

Asked by 9 years ago

Tweening yesterday with something else. Now I just get why it doesn't today, the rest is sort of tittle explanatory.

script:

gui = script.Parent.Parent.Shop
--(0.26, 0, 0.2, 0)
script.Parent.MouseButton1Click:connect(function()
    if gui.Position == UDim2.new(0.62, 0, 0.2, 0) then
        gui:TweenPosition(UDim2.new(0.26, 0, 0.2, 0), "Out", "Quad", 3)
    end
end)
0
Are you sure the condition in the if statement is true? Is that the gui's position? NotsoPenguin 705 — 9y
0
Yup, double checked. Operation_Meme 890 — 9y

Answer this question