1 | game.Players.LocalPlayer.Humanoid.Swimming:Connect( function () |
2 | game.Players.LocalPlayer.Humanoid:TakeDamage( 100 ) |
3 | end ) |
For some really odd reason, this script doesn't work.
1 | game.Players.LocalPlayer.Character.Humanoid.Swimming:Connect( function () |
2 | game.Players.LocalPlayer.Character.Humanoid:TakeDamage( 100 ) |
3 | end ) |
The player's Character
holds the Humanoid, not the Player
itself.