Hello, I have been trying to make a code where you could bring the information about the humanoid into a server script by using remote events. But whenever I do this, the information I want to bring to the server script(the Humanoid), turns into a different information(the Character) is there some way I can fix this? Some parts of the code will be attached.
In your local script the if statement will not run every time the player’s health changes. In your case your checking if the event “HealthChanged” exists, and not if the players health changes. Maybe it’s intentional, but if you want that to fire every time health Changes change it to:
hum.HealthChanged:Connect(function()
-- Fire Event
end)