Hello! I am trying to make a loading screen that appears when the player joins the game. That works, but every time the player dies, it reappears. I just want to them to see it when they join.
Here is my code (local script inside my GUI):
local Frame = script.Parent local Blur = Instance.new("BlurEffect") Blur.Name = "Blur" Blur.Size = 56 Blur.Parent = game.Lighting repeat task.wait() until game:IsLoaded() Blur.Enabled = true Frame.Visible = true repeat task.wait() until game.Players.LocalPlayer.Character local Character = game.Players.LocalPlayer.Character Character.Humanoid.JumpPower = 0 Character.Humanoid.WalkSpeed = 0 Frame.PlayButton.MouseButton1Click:Connect(function() Character.Humanoid.JumpPower = 16 Character.Humanoid.WalkSpeed = 16 Blur.Enabled = false Frame.Visible = false end)
If you think you know what went wrong, please let me know. Thank you and have a wonderful day!