Well, basically, I’m working on a rendering system for billboard GUIs based on the character’s distance, and I’m having a visual issue with the billboards. When the billboard is Enabled, it causes a slight visual glitch.
Code:
RunService.RenderStepped:Connect(function()
for Index, Billboard in Billboards do
if not Billboard:GetAttribute("Enabled") then continue end
local BillboardAdornee = if not Billboard.Parent:IsA("BasePart") then Billboard.Adornee else Billboard.Parent
if (Character.HumanoidRootPart.Position - BillboardAdornee.Position).Magnitude <= Billboard:GetAttribute("MaxDistance") then
Billboard.Enabled = true
else
Billboard.Enabled = false
end
end
end)