Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Detection of Humanoid animation not working?

game.Players.LocalPlayer.Humanoid.Swimming:Connect(function()
	game.Players.LocalPlayer.Humanoid:TakeDamage(100)
end)

For some really odd reason, this script doesn't work.

1 answer

✓ Accepted answer
game.Players.LocalPlayer.Character.Humanoid.Swimming:Connect(function()
    game.Players.LocalPlayer.Character.Humanoid:TakeDamage(100)
end)

The player's Character holds the Humanoid, not the Player itself.

1 comment

0

oof

This discussion is preserved as it was. New answers, comments, and votes are closed.