So i'm making an RPG game and I have a health gui, exp gui and currency gui but when the character dies they disappear. Why is this happening?
Just in case any of you want to see the script that basically controls them here you go
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Parent.Parent.HealthGui.Enabled = true
script.Parent.Parent.Parent.Parent.Parent.EXPGui.Enabled = true
script.Parent.Parent.Parent.Parent.Parent.ToonysGui.Enabled = true
script.Parent.Parent.Parent.Visible = false
cam.CameraType = Enum.CameraType.Custom
cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
workspace.MenuTheme:Stop()
workspace.GrasslandsTheme:Play()
workspace.GrasslandsTheme.Looped = true
script.Parent.Parent.Parent.Parent:Destroy()
end)

2 comments
Where is this script relative to the guis?
Inside a different gui