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

um i ran into an error when making a loading screen can anyone help me?

so i cant seem to figure out the problem here is the script:game`game.ReplicatedFirst:RemoveDefaultLoadingScreen()

local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") PlayerGui:SetTopbarTransparency(0)

local GUI script.LoadingScreen:Clone() GUI.Parent = PlayerGui

wait(5)

GUI.Frame:TweenPositon(UDim2.new(0,0,1,0),"InOut","Sine",0.5) wait(0.5) GUI:Destroy()`

and here is the error: 20:00:11.907 - ReplicatedFirst.LocalScript:7: attempt to index nil with 'Parent'

1 answer

✓ Accepted answer

Simple mistake, you forgot to put a "=" while you were defining the "GUI" variable.

local GUI = script.LoadingScreen:Clone()

1 comment

0

im dumb

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