|
| 29 Jan 2015 08:41 PM |
This is in a server script. There are no errors.
event.OnServerEvent:connect(function(Player) print("FADSFA") local NameGui = game.ReplicatedStorage.NameGui:Clone() NameGui.Parent = Player.Character.Head NameGui.HealthAndName.name.Text = Player.Name Player.Character.Humanoid.Changed:connect(function() NameGui.HealthAndName.HealthBar.Size = UDim2.new(0, Player.Character.Humanoid.Health/1.3, .5, 0) print("LAWL") end) end) |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:42 PM |
| The first print prints, not the second. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:44 PM |
| Nothing wrong on this end. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:45 PM |
game.Workspace.HealthBarManagment:FireServer(game.Players.LocalPlayer)
I know it's firing... |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:46 PM |
Nvm then. Apparently the Humanoid.Changed isn't firing. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:46 PM |
| Do you think it recognizes my Player variable? |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jan 2015 08:55 PM |
| I have confirmed character exists. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 08:59 PM |
| Does Humanoid fire the Changed event when it gets damaged? |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 09:02 PM |
| I just found out Humanoid ONLY fires the changed when it died. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 09:04 PM |
I'm actually using HealthChanged right now, but it does the same thing. It only fires on death. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jan 2015 09:28 PM |
| It works without filtering enabled... |
|
|
| Report Abuse |
|
|
| |
|
| |
|