Yet another problem, this time is the loading screen…
So the issue here is that it won’t delete, I am positive I wrote it correctly, here is the entire code.
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local TS = game:GetService("TeleportService")
local ContentProvider = game:GetService("ContentProvider")
local p = game.Players.LocalPlayer
local gui = script.LoadingScreen
math.randomseed(tick())
local customScreen = TS:GetArrivingTeleportGui()
local Tips = {
"Beware of possible <b>Hazards!</b>",
"Anomalies might breakout, so take shelter when you hear alarms!",
"Press <b>M</b> Twice to return back to main menu!",
}
p:WaitForChild("PlayerGui")
gui.Parent = p.PlayerGui
gui.Name = "LoadingScreen"
while true do
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
end
if game:IsLoaded() then
game.Players.LocalPlayer.PlayerGui.LoadingScreen:Destroy()
end
thats because u use a while loop so the code under the loop dont will run so try using:
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local TS = game:GetService("TeleportService")
local ContentProvider = game:GetService("ContentProvider")
local p = game.Players.LocalPlayer
local gui = script.LoadingScreen
math.randomseed(tick())
local customScreen = TS:GetArrivingTeleportGui()
local Tips = {
"Beware of possible <b>Hazards!</b>",
"Anomalies might breakout, so take shelter when you hear alarms!",
"Press <b>M</b> Twice to return back to main menu!",
}
p:WaitForChild("PlayerGui")
gui.Parent = p.PlayerGui
gui.Name = "LoadingScreen"
task.spawn(function()
while true do
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
end
end)
if game:IsLoaded() then
game.Players.LocalPlayer.PlayerGui.LoadingScreen:Destroy()
end
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local TS = game:GetService("TeleportService")
local ContentProvider = game:GetService("ContentProvider")
local p = game.Players.LocalPlayer
local gui = script.LoadingScreen
local customScreen = TS:GetArrivingTeleportGui()
local Tips = {
"Beware of possible <b>Hazards!</b>",
"Anomalies might breakout, so take shelter when you hear alarms!",
"Press <b>M</b> Twice to return back to main menu!",
}
p:WaitForChild("PlayerGui")
gui.Parent = p.PlayerGui
gui.Name = "LoadingScreen"
coroutine.create(coroutine.resume(function()
while true do
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
end
end))
if game:IsLoaded() then
game.Players.LocalPlayer.PlayerGui.LoadingScreen:Destroy()
end
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local TS = game:GetService("TeleportService")
local ContentProvider = game:GetService("ContentProvider")
local p = game.Players.LocalPlayer
local gui = script.LoadingScreen
local customScreen = TS:GetArrivingTeleportGui()
local Tips = {
"Beware of possible <b>Hazards!</b>",
"Anomalies might breakout, so take shelter when you hear alarms!",
"Press <b>M</b> Twice to return back to main menu!",
}
p:WaitForChild("PlayerGui")
gui.Parent = p.PlayerGui
gui.Name = "LoadingScreen"
coroutine.resume(coroutine.create(function()
while true do
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
gui.Bottom.Text = Tips[math.random(1,#Tips)]
wait(4)
end
end))
if game:IsLoaded() then
game.Players.LocalPlayer.PlayerGui.LoadingScreen:Destroy()
end