Overhead gui Shows incorrectly

I did Overhead gui And I have a blue square showing, I want to remove this square, but I don’t know how to make this script

local overheadGUIs = game.ServerStorage:WaitForChild("OverheadGUIs")
local ClassesGUI = overheadGUIs:WaitForChild("ClassesOverHead")
local character = script.Parent
local head = character:WaitForChild("Head") -- Ensure Head is loaded
local player = game.Players:GetPlayerFromCharacter(character)
local currentClass = player.leaderstats:WaitForChild("Class")

-- Mapping class names to image IDs
local classImageIds = {
	FClass = "http://www.roblox.com/asset/?id=13537877719",
	EClass = "http://www.roblox.com/asset/?id=13537890076",
	DClass = "http://www.roblox.com/asset/?id=14789258408",
	CClass = "http://www.roblox.com/asset/?id=14789260188",
	BClass = "http://www.roblox.com/asset/?id=14789262376",
	AClass = "http://www.roblox.com/asset/?id=14789263743",
	SClass = "http://www.roblox.com/asset/?id=14789265141",
	SSClass = "http://www.roblox.com/asset/?id=14789267036",
	SSSClass = "http://www.roblox.com/asset/?id=14789268533",
	XClass = "http://www.roblox.com/asset/?id=14789270511",
	YClass = "http://www.roblox.com/asset/?id=14789272766",
	ZClass = "http://www.roblox.com/asset/?id=14789274018",
	XYZClass = "http://www.roblox.com/asset/?id=14789275327"
}

-- Clone the GUI for the player's head
local newClassesGUI = ClassesGUI:Clone()
newClassesGUI.Name = "OverheadClassesGUI"
newClassesGUI.Parent = head

-- Function to update the class image based on the current class
local function updateClassImage()
	local className = currentClass.Value:gsub("-", "") -- Normalize class name
	local imageId = classImageIds[className] -- Get the corresponding image ID

	if imageId then
		newClassesGUI.ImageLabel.Image = imageId -- Update image if class is found
	else
		warn("Class image ID not found for class: " .. className) -- Debug message
	end
end

-- Connect the Changed event to update the image when the class changes
currentClass.Changed:Connect(updateClassImage)

-- Initial image update in case the class is already set
updateClassImage()

Screenshot_1

1 Like

I want to remove the blue square, I repeat again, help me fix it I spent a lot of time and did not find ways to fix it and did not find any guides

Still relevant and I haven’t fixed it

it can be simple the image that you placed, or the BackgroundTransparency of the image

The picture doesn’t look like that and I made the transparency 1

This is still relevant, help me decide

Do you have a frame that is part of OverheadGUI which doesn’t have the background transparency set to 1?

For the photo I have 0, but for the blue one it is 1.

Right, but there must be some other UI element without the background transparency set to 1.

After a long break I have not found a solution and it is still relevant

Please help me figure out what the problem is

Help me solve the problem, I’ve already racked my brains, any help is appreciated

Can you take a screenshot of the Image properties?

I fixed it, it turned out to be very simple, thanks to everyone who wanted to help