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

why is this not moving my gui out when i click then button?

Asked by 6 years ago
Edited 6 years ago
script.Parent.MouseButton1Click:connect(function()
    if script.Parent.openclose.Value == false then
        script.Parent.Parent:TweenPosition(UDim2.new(0.7, 0, 0.4, 0)'out', 'Linear', 1)
        script.Parent.Parent.Parent.mainshop:TweenPosition(UDim2.new(0.2, 0, 0.4, 0)'out', 'Linear', 1)
        script.Parent.openclose.Value = true
    elseif script.Parent.openclose.Value == true then
        script.Parent.Parent:TweenPosition(UDim2.new(0, 0, 0.4, 0)'in', 'Linear', 1)
        script.Parent.Parent.Parent.mainshop:TweenPosition(UDim2.new(-5, 0, 0.4, 0)'in', 'Linear', 1)
        script.Parent.openclose.Value = false 
    end

end)

0
Is open/close a stringValue, if so, this all breaks in line 2 JakePlays_TV 97 — 6y
0
You may have to capitalize "out" and "in" > "Out" and "In". Mayk728 855 — 6y

Answer this question