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

Can you help me with this Open Gui animation?

Asked by 9 years ago

Hey everyone, I have got a animation for my open/close Gui but I have ran into one problem with the "Open" part of it. The shop shows up in a cool animation but then all the rest of my GUIs go away, I will send a video link below this so you understand the problem.

script.Parent.MouseButton1Click:connect(function()
    script.Parent:TweenPosition(UDim2.new(-0.2,0,0.5,0), "Out", "Back", 1, true)
    script.Parent.Parent.ShopGui:TweenPosition(UDim2.new(0.075,0,0.075,0), "Out", "Back", 2, true)
    local c = script.Parent.Parent:GetChildren()
    for i = 1,#c do
        c[i].Visible = false
    end
    script.Parent.Parent.ShopGui.Visible = true
    wait(1)
    game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
end)

https://www.youtube.com/watch?v=h3HnND-8jEE&feature=youtu.be

0
It's on line 6, you are making them invisible, so obviously, the script.Parent.Parent:GetChildren() is the buttons on the side, and you are turning them invisible NinjoOnline 1146 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

remove line 5, 6 and 7. Your making everything invisible.

Ad

Answer this question