My cloned gui won't clone itself again after i died, how do I fix it? Here's the script
local ployor = {"WINDOWS10XPRO"} game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) for i,v in pairs(ployor) do if player.Name == v then local clone = script.ScreenGui:Clone() clone.Parent = player:WaitForChild("PlayerGui") character:WaitForChild("Humanoid").Died:Connect(function(die) wait(4.75) clone.Parent = player:WaitForChild("PlayerGui") end) end end end) end)
for some reason, it doesn't appear again after i died, can somebody help me?
local ployor = {"WINDOWS10XPRO"}
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) for i,v in pairs(ployor) do if player.Name == v then local clone = script.ScreenGui:Clone() clone.Parent = game.CoreGui character:WaitForChild("Humanoid").Died:Connect(function(die) wait(4.75) clone.Parent = game.CoreGui end) end end end) end)