While my loading screen is loading I have some background music which works however I want another short audio to play afterwords. I suck at scripting and can’t seem to get it to work could I please have some help.
local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("Loading GUI")
local RelicatedFirst = script.Parent
local audioId = 1837005317
local AudioID = 1836996067
RelicatedFirst:RemoveDefaultLoadingScreen()
gui.Enabled=true
local audioObject = Instance.new("Sound", gui)
audioObject.SoundId = "rbxassetid://"..audioId
audioObject:Play()
wait(20)
if not game:IsLoaded() then
game.Loaded:Wait()
end
gui.Enabled = false
audioObject:Stop()
local audioObject = Instance.new("Sound", gui)
audioObject.AudioID = "rbxassetid://"..audioId
audioObject:Play()
wait(5)
audioObject:Stop()