Billboard gui along with textlabel isn't visible despite being created

to the point:

the part gets created, which means the billboard gui and text label does too (i checked that in the explorer)

but the billboard and textlabel aren’t actually visibile?

code:

DamageGUIEvent.OnClientEvent:Connect(function(damage, enemy)
	local Part = Instance.new("Part")
	Part.Parent = workspace
	Part.CanCollide = false
	Part.Transparency = 0
	Part.Anchored = true
	Part.CFrame = enemy.Parent:FindFirstChild("Head").CFrame

	
	local Billboard = Instance.new("BillboardGui")
	Billboard.Parent = Part
	Billboard.AlwaysOnTop = true
	Billboard.StudsOffset = Vector3.new(0, 5, 0)
	
	local Text = Instance.new("TextLabel")
	Text.Parent = Billboard
	Text.BackgroundTransparency = 1
	Text.TextColor = BrickColor.new(255, 255, 255)
	Text.Position = UDim2.new(2, 0, 2, 0)
	Text.Text = damage
	
	local enemyCFrame = enemy.Parent:FindFirstChild("Head").CFrame
	
	local fadeOut = TS:Create(Text, TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {TextTransparency = 1})
	local rise = TS:Create(Billboard, TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {StudsOffset = Vector3.new(0,15,0)})
	
	
	fadeOut.Completed:Wait()
	rise.Completed:Wait()
	
	fadeOut:Destroy()
	rise:Destroy()
	Billboard:Destroy()
	Text:Destroy()
end)
3 Likes

fixed

i simply had to change the size of billboard and text lol

local Billboard = Instance.new("BillboardGui")
	Billboard.Parent = Part
	Billboard.AlwaysOnTop = true
	Billboard.Size = UDim2.new(4,0,2,0)
	
	local Text = Instance.new("TextLabel")
	Text.Parent = Billboard
	Text.BackgroundTransparency = 1
	Text.TextColor3 = Color3.fromRGB(255, 255, 255)
	Text.Size = UDim2.new(1, 0, 1, 0)
	Text.Text = damage
1 Like

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