GUI not appearing when I tween it

I just learned how to tween a Frame in a recent post I made.

When I tried to tween the Frame, the tween was successful (after I checked using print()) but it doesn’t show on my screen. Could you check this script and see what’s up?

local StarterGui = game:WaitForChild("StarterGui")
local ElimGui = StarterGui.EliminateGui -- Contains the Frame

script.Parent.ClickDetector.MouseClick:Connect(function()
        print("Clicked")
    ElimGui.VotingFrame:TweenPosition(UDim2.new(0.313, 0, 0.4, 0), "Out", "Quart", 2, false)
        print("Tweened1")
    ElimGui.TopBar:TweenPosition(UDim2.new(0.313, 0, 0.307, 0), "Out", "Quart", 2, false)
        print("Tweened2")
end)

Hi,

Have you checked that all the UIs under the frame are actually positioned in the Frame? The Frame may be tweening correctly but if there is too much offset within the Frame, they may not show up at all. UIs aren’t my speciality but that would be my best guess.

Hope this helps,
-Tom :slight_smile:

Don’t worry, I solved it. I forgot to call PlayerGui instead of StarterGui. Thanks anyways!