My billboardGuI acts weird and dissapears when the camera is not very far from it, quite weird considering the MaxDistance property is set to inf by default.

https://gyazo.com/dd0917fb89929e8d7e34e03eee64a12b ^ Gif of what is happening

local function onNameEventRecieved(name, level)
	local newGui = Instance.new("BillboardGui")
	newGui.Parent = Interface.PlayerNames
	local textLabel = Instance.new("TextLabel")
	textLabel.Parent = newGui
	textLabel.Text = name.. " - ".. "Level: ".. level
	textLabel.BackgroundTransparency = 1
	newGui.Adornee = game.Players:FindFirstChild(name).Character.Head
	newGui.ExtentsOffset = Vector3.new(0, 3, 0)
	textLabel.TextSize = 25
	textLabel.Size = UDim2.new(1, 0, 0, 0)
	newGui.Size = UDim2.new(1, 0, 1, 0)
end

^ My code

1 comment

0

I heard somewhere that there is a MaxDistance property of the TextLabel? Not sure if that is any help. By the way, Interface is a reference to my main ScreenGui and it has a folder for all these GUIs, which is parented to PlayerGui