|
| 09 Oct 2016 04:16 PM |
Each player in my game has a hidden leadstats and a health value as a child of the leaderstats.
How can I retrieve the current health of every player in the game and then update their current health values of their hidden leaderstats?
|
|
|
| Report Abuse |
|
|
Stiiky
|
  |
| Joined: 15 Jan 2010 |
| Total Posts: 451 |
|
|
| 09 Oct 2016 04:25 PM |
while true do wait(timehere) -- change time here with the amount you want to wait IN SECONDS for i,v in pairs(game.Workspace.Players:GetChildren()) do game.Lighting.FakeHealth.Value = game.Workspace[v.Name].Humanoid.Health end end
There you go.
|
|
|
| Report Abuse |
|
|
|
| 09 Oct 2016 04:40 PM |
| Thanks for the function. I'll try to get this working with my game. |
|
|
| Report Abuse |
|
|
Stiiky
|
  |
| Joined: 15 Jan 2010 |
| Total Posts: 451 |
|
| |
|