BillboardGUI disappearing when resetting character and transferring to other player when he joins

Hi, I have this problem with a BillboardGUI disappearing when resetting the character and transferring to another player when he joins. I deactivated ResetOnSpawn but it didn’t work out. I can provide screenshots if you request

2 Likes

could show the script? And some screenshots

2 Likes
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local name = ReplicatedStorage.PlayerName:Clone()

	game.Players.PlayerAdded:connect(function(player)
	repeat wait() until player.Character
	local character = player.Character
	local humanoid = character.Humanoid

	
	humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None

	local head = character.Head 
	name.Parent = head
	
	name.PlayerName.Text = player.Name
	----------------------------------------------------------------------------
	
	
	
	if player:IsInGroup(5891245) then
		local groupicon = ReplicatedStorage.GroupMemberIcon:Clone()
		
		groupicon.Parent = name.Frame
	end
	
	if player:GetRankInGroup(5891245) >= 9 then
		local adminicon = ReplicatedStorage. GroupAdminIcon:Clone()
		adminicon.Parent = name. Frame
		
	end
	
	if player.MembershipType == Enum.MembershipType.Premium then
		local premium = ReplicatedStorage.PremiumIcon: Clone()
		
		premium.Parent = name.Frame
	end
	
	

		print("Working")
		
end)

image

1 Like

I really couldn’t identify the problem, try using Humanoid.Died to destroy the billboard gui!

1 Like

Thanks for the advice. I will try.

2 Likes