Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to display multiple string values in a Gui text?

Asked by 3 years ago

I tried to use a table, that didn't work. There were no errors in the output so I'm confused.

local health = game.CopperOre.Health.Value
local text = game.CopperOre.Health.Value
local CopperOre = game.workspace.CopperOre
local CopperGui = game.workspace.CopperOre.BillboardGui.TextLabel

local texthealth = {text, health,}

text = "health"
health = 10
CopperGui.Text = (texthealth)

1 answer

Log in to vote
1
Answered by 3 years ago
local health = game.CopperOre.Health.Value
local text = game.CopperOre.Health.Value
local CopperOre = game.workspace.CopperOre
local CopperGui = game.workspace.CopperOre.BillboardGui.TextLabel

text = "health"
health = 10
CopperGui.Text = (text..":"..health)

this basically combine... yes :) cant explain :(

hope I helped lol

Ad

Answer this question