Problem about the Play button when reset/died

So i’m having a small problem and i don’t know how to solve it. So i create a Play button loading

everything work pretty good, but the problem was when i reset, the play button pop up again

MainCamera LocalScript ---- this put in started gui

local player = game.Players.LocalPlayer

local character = player.Character

local camera = workspace.CurrentCamera

repeat wait() print(“Finding camera”)

camera.CameraType = Enum.CameraType.Scriptable

until camera.CameraType == Enum.CameraType.Scriptable

camera.CFrame = workspace.CameraPos.CFrame

Play button LocalScript — this put in text button

script.Parent.MouseButton1Click:Connect(function() game.ReplicatedStorage.PlayButtonSounds:Play()
script.Parent.Parent.Enabled = false
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom print(“End”)
end)

Thanks for helping me :smiley:

1 Like

You can disable ResetOnSpawn on the ScreenGUI object.

1 Like

Really? i didn’t notice about it.

Yes, it is a property of the ScreenGUI. It is quite obvious, it won’t reset when a player respawns. (Aka, pressing the reset button)

the gui works! but the camera, it return back to begin

1 Like

I believe you need to listen for the player’s character respawning (Use CharacterAdded) . Then after they respawn, set their camera again.

2 Likes

Thanks pal, i know how to fix it :kissing:

1 Like