Cloning a gui to a player

I madede a gui that is supposed to only be seen by me, the problem is that when i respawn it is gone.

Can anyone help me here?

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function()
		if plr.Name == "Faczki" then
			script.ControlPanel.Parent = plr.PlayerGui
		end
	end)
end)
1 Like

You didn’t clone it.

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function()
		if plr.Name == "Faczki" then
            local gui = script.ControlPanel:Clone()
			gui.Parent = plr.PlayerGui
		end
	end)
end)
2 Likes

You could also try setting the ResetOnSpawn property of the ScreenGui to false.

1 Like

Brruuuuuuuuhhh. I’m so dumb ahha

1 Like