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

i have a error that says i can only tween in workspace help anyone?

Asked by 7 years ago
Edited 7 years ago
local frame = script.Parent.Parent.Parent.mainshop

toggled = false

script.Parent.MouseButton1Click:connect(function()
    if toggled == false then
        frame:TweenPosition(UDim2.new(0.7, 0, 0, 0), 'out', 'Linear' , 1)
        toggled = true

    else
        frame:TweenPosition(UDim2.new(0, 0, 0, 0), 'out', 'Linear' , 1)
        toggled = false
    end


end)

0
Please provide more detail on what is happening. User#19513 5 — 7y
0
I tested out your script and it works fine for me, at least in studio. You should probably change "out" into "Out" though, as I got an error from it until I capitalized it. User#20279 0 — 7y

Answer this question