So I’m trying to make a starting screen/loading screen that basically just drops down when the start button gets clicked, but it inevitably results in “attempt to index nil with ‘TweenPosition’”
This is the feedback that I received https://gyazo.com/e116f3818e76d22b9beb852606cfc345
This is the organization of the scripts and GUI’s https://gyazo.com/8ef948fa192dab1cdf9573168deb16e8
Does anybody know what this means or how to fix it?
local screen = script.Parent.screen local playbutton = screen.ImageButton print("step 1") playbutton.Activated:Connect(function() local function End() Screen.Visible = false print ("done") end Screen:TweenPosition(UDim2.new(0, 0,1, 0),"Out", "Quad", 0.5, false, End) print ("step 2") end)```