Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

3 comments

0

u literally just copy pasting my script

0

press the screengui, then enable resetonspawn so it appears again

0

no im not lol

This discussion is preserved as it was. New answers, comments, and votes are closed.