Ad
Log in to vote
0

No error but the Gui doesn't move or become visible?

Asked by
fifayy 28
9 days ago

I think the issue is with Local Script 1

Local script 1

script.Parent.Activated:Connect(function()
    local Theinfo = script.Parent.Parent.Parent.Parent.Theinfo.Frame

    script.Parent.Parent.Visible = false
    Theinfo.Visible = true
    Theinfo.Position = UDim2.new(0, 0,5, 5)
    local end_pos = UDim2.new(0, 0,0.428, 0)


    local willPlay2 = script.Parent.Parent:TweenPosition(
        end_pos,
        Enum.EasingDirection.In,
        Enum.EasingStyle.Sine,
        2
    )

end)

Local script 2

script.Parent.Activated:Connect(function()
    local start_pos = UDim2.new(0, 0,0.428, 0)
    local end_pos = UDim2.new(0, 0,5, 0)


    local willPlay = script.Parent.Parent:TweenPosition(
        end_pos,
        Enum.EasingDirection.In,
        Enum.EasingStyle.Sine,
        2
    )

    script.Parent.Parent.Parent.Parent.info.Frame.Visible = true
end)

Picture of the explorer

https://lh3.googleusercontent.com/K_LF40dG0cqYF3-4OzEzlORMoi8O5U3dnOSfclyeIzwXPpjlI3sa7soye3KpTVxlndWUJw=s92

1 answer

Log in to vote
0
Answered by 9 days ago

The thing you want to make visible must have all of it's parents to be visible too. I think that is the problem you are experiencing.

Ad

Answer this question