I have a overhead ui and it worked a couple hours ago but it wont now what's the problem?

local GroupID = 11777382

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		warn("Character Was Added")
		local roleID = Player:GetRankInGroup(GroupID)
		local PlayerRank = Player:GetRoleInGroup(GroupID)
		--// GUI OBJECTS
		local OverheadClone = script.Overhead:Clone();
		local RankFrame = OverheadClone.Frame

		local playerHead = Character:WaitForChild("Head")
		

		if roleID > 0 then
			OverheadClone.Parent = playerHead
			RankFrame.Rank.Text = PlayerRank
			RankFrame.Username.Text = Player.Name
		end
	end)
end) 

2 comments

0

This code seems to work completely fine for me. Try have a look at your BillboardGui properties and make sure you have a BillboardGui as a child in your script

0

If the user isn't in the group however it doesn't show the over head ui so thats also a good idea to make sure you or they are in the group.