Get player's humanoid from a global script?

i want to get the humanoid in a global script but I’m not sure how? I thought maybe you can use a remote event but i feel like that there is an easier way to do this instead of going through all of that. I know that you can get it from using a tool since you can grab the character then the humanoid from the parent of the tool.

I’m pretty confused or something isn’t adding up so I don’t know but I just can’t solve this simple problem right now :frowning:

2 Likes

server script?

game.Players.PlayerAdded:Connect(function(plr)
 plr.CharacterAdded:Connect(function(chr)
  local humanoid = chr:WaitForChild("Humanoid")
  humanoid:TakeDamage(100)
 end)
end)
STAY HOME, STAY SAFE.
STAY GLOBAL, NEVER TRUST THE CLIENT.
14 Likes