#Help animating health bars and teammate health bars

1 messages · Page 1 of 1 (latest)

royal cloud
#

I am currently working on a game and I currently have it so a health bar appears for their player but i cant get it to animate everyones health on everyones screen or show your teammates health any help is appreciated and here is a screenshot of the code and a video of how it works currently

crude swift
#

About Noob, Guest, Bacon and Acorn why you don’t put it all in a table

#

preferable you put the function higher

#

use task.wait instead wait

#

the loop while true do never stops??

#

health text don’t update constantly

royal cloud
royal cloud
lethal forge
#

idk what bros on

molten drum
royal cloud
lethal forge
#

oh ur post

#

cause syn answered it

royal cloud
lethal forge
#

that will confuse lua

royal cloud
#

Im pretty sure this way would be better

royal cloud
royal cloud
#

Heres the new code if that helps

lethal forge
royal cloud
#

so what should I do intead?

#

if you have any idea

lethal forge
# royal cloud so what should I do intead?

Make a function, and whenever the client events are triggered it will call that function. I also recommend having a different name for the function thats not the remote event

royal cloud
lethal forge
#

local script in player scripts