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

How to give model objects health?

Asked by 7 years ago

I have a model: Workspace > Folder > Model which has an IntValue called HP. How would I display a number above the model (billboard GUI?) which is the health of the object that updates automatically?

2 answers

Log in to vote
0
Answered by
Nowaha 459 Moderation Voter
7 years ago
Edited 7 years ago

http://wiki.roblox.com/index.php?title=API:Class/BillboardGui

Make a BillboardGui with a TextLabel. Make a script that sets the TextLabel's text to the IntValue's value

http://wiki.roblox.com/index.php?title=API:Class/TextLabel

If it does not work because it is trying to put a integer as a string for some reason, use tostring()

http://wiki.roblox.com/index.php?title=Global_namespace/Basic_functions&redirect=no#tostring

Ad
Log in to vote
1
Answered by 7 years ago

You must write an attempt, elseway you're not allowed to post that question. By the rules,no requests allowed

Answer this question