GUI = game.Lighting.AdminGui
game.Players.PlayerAdded:connect(function(player)
game.Workspace:WaitForChild(player.Name)
if (player.Name == "coolcardriver1") then
GUI:clone().Parent = player.PlayerGui
if plr.Health == 0 then --up until here it stops working
GUI:remove()
GUI = backup:clone()
GUI.Parent = game.Workspace
GUI:makeJoints()
end
Basically, the script is meant to show me the admin gui, the first but works until the 'if plr.name' from there it doesn't work, what I'm trying to do is make it show up after I die/respawn. Thanks.

1 comment
Please place the code in a code block. Thank you.