When Player dies and respawns the gui is suppose to go visible
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Char)
Char.Humanoid.Died:Connect(function()
if Char.Humanoid.Health == 100 then
Player.PlayerGui.MainUI.Enabled = true
Player.PlayerGui.MoneyGui.Enabled = true
end
end)
end)
end)

1 comment
Thx it worked