What I am trying to do is that I'm making a loading screen script. But it's an error and it's not working what can be the problem?
Here's the code:
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") PlayerGui:SetTopbarTransperency(0)
local GUI = script.LoadingScreen:Clone() GUI.Parent = PlayerGui
repeat wait(2) until game:IsLoaded()
GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),"Game almost loaded","Game loaded",0.5) wait(1) GUI:Destroy()
This code was from Alvin Blox, so credits/shoutout to him!
If you find what's right, Thank you!
Sincerely,
Ducksneedhelp

2 comments
Is it a LocalScript in ReplicatedFirst?
Yes the local script is in ReplicatedFirst