Hello, I am trying to make GUI of the clock show up once the custom GUI loading screen disappears but the clock fails to show up once the loading screen is gone, what am I doing wrong?
CLOCK SCRIPT
local replicatedStorage = game:GetService("ReplicatedStorage")
local event = replicatedStorage:FindFirstChild("ChangeTime")
local LScheck = replicatedStorage:FindFirstChild("loadingscreendone")
local frame = script.Parent.Parent
frame.Visible = false
LScheck.Event:connect(
function(check)
if(check == true)
then
frame.Visible = true
else
frame.Visible = false
end
end
)
event.OnClientEvent:connect(
function(text)
script.Parent.Text = text
end
)
LOADING SCREEN SCRIPT
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LScheck = ReplicatedStorage:FindFirstChild("loadingscreendone")
local check = true
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(0)
local GUI = script.LoadingScreen:Clone()
GUI.Parent = PlayerGui
repeat wait(.1) until game:IsLoaded()
wait(math.random(4,6))
GUI.Frame:TweenPosition(UDim2.new(0,0,1,0), "InOut", "Sine", 0.5)
wait(0.5)
LScheck:Fire(check)
GUI:Destroy()

1 comment
Would you mind telling me how to do it your way coding wise? Sorry I'm new to this