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 4 years ago

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

01local health = game.CopperOre.Health.Value
02local text = game.CopperOre.Health.Value
03local CopperOre = game.workspace.CopperOre
04local CopperGui = game.workspace.CopperOre.BillboardGui.TextLabel
05 
06local texthealth = {text, health,}
07 
08text = "health"
09health = 10
10CopperGui.Text = (texthealth)

1 answer

Log in to vote
1
Answered by 4 years ago
1local health = game.CopperOre.Health.Value
2local text = game.CopperOre.Health.Value
3local CopperOre = game.workspace.CopperOre
4local CopperGui = game.workspace.CopperOre.BillboardGui.TextLabel
5 
6text = "health"
7health = 10
8CopperGui.Text = (text..":"..health)

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

hope I helped lol

Ad

Answer this question