Player overhead unable to set up

Greetings, everyone. I’m currently working on a system which automatically sets up the player’s overhead once they have joined the game, or perhaps if the player has resetted their character.

The issue is that the overhead doesn’t clone itself and the script seems to be inactive. Has anyone got a possible solution to this problem?

script:

-- Services --

local Overhead = game.ReplicatedStorage:WaitForChild("Overhead")

-- Variables --

local Group_ID = 33620482

-- Scripting --

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
		if not Character.Head:FindFirstChild("Overhead") then
			local Overhead_Cloned = Overhead:Clone()
			Overhead_Cloned.Parent = Character.Head
			
			Overhead_Cloned.Main.Username.Text = Player.Name
			Overhead_Cloned.Main.Rank.Text = Player:GetRoleInGroup(Group_ID)
			Overhead_Cloned.Main.Role.Text = "[-]"
		end
	end)
end)

image
what it should look like:
image
what it shouldn’t look like:
image

2 Likes

Is billbaord enabled? Is the billboard inside the player character?

1 Like

Instead of creating a script that puts the overhead on the player’s head. You can directly parent the overhead to the character by leaving it at StarterCharacterScripts, and them use a script that sets the adornee to the head.

local Overhead: BillboardGui = script.Parent
local Character: Model = script.Parent.Parent

Overhead.Adornee = Character.Head
3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.