Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.