I made a custom loading screen gui and put it in a screengui named LoadingScreen, which is inside a localscript which is inside replicated first. However, it never shows up.
Localscript in replicatedfirst:
local PlayerGui = game.Players.Localplayer:WaitForChild("PlayerGui")
local GUI = script.LoadingScreen:Clone()
GUI.Parent = PlayerGui
wait(5)
GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),"InOut", "Sine",0.5)
wait(0.5)
GUI:Destroy()
Are there any errors?
The script seems fine as far as I can see, except there is a typo at the first line while attempting to get the LocalPlayer.
The fixed script would look like this:
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local GUI = script.LoadingScreen:Clone()
GUI.Parent = PlayerGui
wait(5)
GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),"InOut", "Sine",0.5)
wait(0.5)
GUI:Destroy()
On a side note:
Edit:
Forgot to mention about RemoveDefaultLoadingScreen, which you should be calling after you parented the LoadingScreen to PlayerGui.