im stupid and i don't know how to do that, i also don't even know if it works soooo
If anyone knows, please answer, I'd appreciate it a lot
specific player
01 | local Players = game:GetService( "Players" ) |
02 |
03 | -- get specific player |
04 | local player = Players:FindFirstChild( "InsertPlayerNameHere" ) |
05 |
06 | -- to get the character |
07 | local character = player.Character |
08 |
09 | -- to get the humanoid from character |
10 | local humanoid = character:WaitForChild( "Humanoid" ) |
every player that joined the game
1 | local Players = game:GetService( "Players" ) |
2 |
3 | Players.PlayerAdded:Connect( function (player) |
4 | player.CharacterAdded:Connect( function (character) |
5 | local humanoid = character:WaitForChild( "Humanoid" ) |
6 | end ) |
7 | end ) |