Problem with displaying text


So I have a script that creates a text inside the enemy’s head, which they say shows how much damage you inflict on him, but for some reason, the text is created but it does not show. Even if I move it to me in the starterGui, it will still frame, but the text does not.

local function damageInside()
		if data.Combo == 1 then
			local damageCountClone = damageCount:Clone()
			damageCountClone.Parent = data.Target.Head
			damageCountClone.TextSize = 50
			wait(1)
			--damageCountClone:Destroy()
		end
	end
if data.Combo == 1 then
			damageInside()
		end

this is the script that is at the tool.

Please note that just the text that the main shows and its clone does not)

Is it a screengui or a billboardGui? or a serufacegui?

If its a screengui it wont appear in the workspace, cause its a Ui.

IF it is just a straight up textlabel that wont work either. It has to be in something, for instance a billboardgui. Which is what I would recommend using

I also recommend learning about the billboardgui that way you know how it works,

BillboardGui | Documentation - Roblox Creator Hub


Also side note, a screengui has to be parented to StarterGui or PlayerGui to work, It cant be in the workspace

Thank you so much I forgot about the fact that the plain text in the workspace does not show

1 Like

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