This is a localscript in replicatedFirst.
Error:
ReplicatedFirst.CoreScript:4: attempt to index nil with 'Loading'
Script:
local player = game.Players.LocalPlayer
local LoadGui = player.PlayerGui:FindFirstChild('LoadingGUI')
LoadGui.Loading.Position = UDim2.new(0.5, 0, 0.5, 0)
repeat wait() until player:IsDescendantOf(workspace)
if player:IsDescendantOf(workspace) then
LoadGui:TweenPosition(UDim2.new(10, 0, 0.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5)
end
I'm confused.

5 comments
Your answer didn't work, it made me have Errors! "Attempt to call index nil with 'WaitForChild'. "
WAIT NO I PUT THE GUI IN STARTER GUI, IM SO DUMB LOL
Just add math.huge to the prams in waitforchild sorry!
idk what prams is
add a comma to waiterchild then put math.huge