Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My cloned gui won't clone itself again after i died, how do I fix it?

Asked by 3 years ago

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?

1 answer

Log in to vote
0
Answered by 3 years ago

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)

0
u literally just copy pasting my script WINDOWS10XPRO 438 — 3y
0
press the screengui, then enable resetonspawn so it appears again WesleyAng_3 153 — 3y
0
no im not lol Scorched_Liam 19 — 3y
Ad

Answer this question