What do I need to add to not show team leaderboard right away game:GetService(“StarterGui”):SetCoreGuiEnabled(Enum.CoreGuiType.Chat,false)
game.Workspace.Party.Sound.Playing = true
local StarterGui = game:GetService(‘StarterGui’)
local Players = game:GetService(“Players”)
local ReplicatedFirst = game:GetService(“ReplicatedFirst”)
local TweenService = game:GetService(“TweenService”)
local tweenInfo = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
local player = Players.LocalPlayer
local playerGui = player:WaitForChild(“PlayerGui”)
– Create a basic loading screen
local screenGui = Instance.new(“ScreenGui”)
screenGui.IgnoreGuiInset = true
local textLabel = Instance.new(“TextLabel”)
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.BackgroundColor3 = Color3.fromRGB(0, 20, 40)
textLabel.Font = Enum.Font.GothamSemibold
textLabel.TextColor3 = Color3.new(0.8, 0.8, 0.8)
textLabel.Text = “Loading”
textLabel.TextSize = 28
textLabel.Parent = screenGui
local loadingRing = Instance.new(“ImageLabel”)
loadingRing.Size = UDim2.new(0, 256, 0, 256)
loadingRing.BackgroundTransparency = 1
loadingRing.Image = “rbxassetid://4965945816”
loadingRing.AnchorPoint = Vector2.new(0.5, 0.5)
loadingRing.Position = UDim2.new(0.5, 0, 0.5, 0)
loadingRing.Parent = screenGui
– Parent entire screen GUI to player GUI
screenGui.Parent = playerGui
– Remove the default loading screen
ReplicatedFirst:RemoveDefaultLoadingScreen()
local tweenInfo = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
local tween = TweenService:Create(loadingRing, tweenInfo, {Rotation=360})
tween:Play()
wait(12)
game.Workspace.Party.Sound.Playing = false
game:GetService(“StarterGui”):SetCoreGuiEnabled(Enum.CoreGuiType.Chat,true)
if not game:IsLoaded() then
game.Loaded:Wait()
end
screenGui:Destroy()