So, i m doing a loading screen but my script doesn t show any errors, is a localscript and when it finishes i want it to make my MainGUi Enabled after the loading screen goes, but it doesn`t.
game.StarterGui:SetCore('TopbarEnabled', false)
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Visible == true then
script.Parent.Parent.ImageButton.Visible = false
script.Parent.Parent.MainMenuButton.Visible = false
script.Parent.Parent.ImageLabel.Visible = false
script.Parent.Parent.GameTitle1.Visible = false
script.Parent.Parent.GameTitle2.Visible = false
script.Parent.Parent.SongTitle.Visible = false
script.Parent.Parent.MadeBy.Visible = false
script.Parent.Parent.ComDiscordServer.Visible = false
script.Parent.Parent.DiscordLink.Visible = false
game.ReplicatedStorage.Teleport:FireServer()
game.StarterGui:SetCore('TopbarEnabled', true)
game:GetService('StarterGui').MainGUi.Enabled = true
while true do
wait(0.07)
script.Parent.Parent.BackgroundTransparency = script.Parent.Parent.BackgroundTransparency + 0.01
if script.Parent.Parent.BackgroundTransparency == 1 then
break
end
end
if game.SoundService.Folder["Walker Alan - Darkside Remix"].Playing == true then
wait(10)
game.SoundService.Folder["Walker Alan - Darkside Remix"].Playing = false
game.Lighting.Blur.Enabled = true
game.Lightning.Blur.Size.Value = 1.5
end
end
end)
