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

the gui wont appear even though the thing is there when it says it is nil or whatever?

Asked by 7 years ago

For link150

local gui = script.Parent
local background = gui.Frame
local load = script.Parent.Frame1
local image1 = gui.Something
local image2 = gui.TinPot



   script.Parent.Frame.Visible = true
wait(2)
    image1:TweenPosition(UDim2.new(0,240,0,100), "Out", Enum.EasingStyle.Linear, 0.3)
    wait(3)
    image1:TweenPosition(UDim2.new(0,900,0,100), "In", Enum.EasingStyle.Linear, 0.3)
    wait(1)
    image2:TweenPosition(UDim2.new(0,240,0,100), "Out", Enum.EasingStyle.Linear, 0.3)
    wait(3)
    image2:TweenPosition(UDim2.new(0, -900, 0, 100), "In", Enum.EasingStyle.Linear, 0.3)
    wait(1)
    load:TweenPosition(UDim2.new(0,203, 0, 120), "Out", Enum.EasingStyle.Linear, 0.3)

1 answer

Log in to vote
0
Answered by 7 years ago

Make sure your GUIs are defined. Use :WaitForChild() so that the game waits for the GUIs to load prior to any action with them.

Ad

Answer this question