I want to create text onscreen, for example, when damage is dealt, how much. Why doesn't this work? I can't see anything.

function HoverText(Pos, Text)
	local Part = Instance.new("Part")
	Part.Transparency = 1
	Part.CanCollide = false
	Part.Anchored = true
	Part.Position = Pos
	Part.Parent = workspace
	local BillboardGui = Instance.new("BillboardGui", Part)
	BillboardGui.Adornee = Part
	BillboardGui.Enabled = true
	local Gui = Instance.new("TextLabel", BillboardGui)
	Gui.Text = Text
end

2 comments

0

what kind of script are you making it on

0

@Dominus_ARA Server