I need to find out how to reference a players humanoid without them touching a part. For example, when they join the game their WalkSpeed in their Humanoid is set to 30. Anyone know a script that can help me with this?
Try this:
1 | game.Players.PlayerAdded:Connect( function (Player) |
2 | Player.CharacterAdded:Connect( function (Character) |
3 | local Humanoid = Character:FindFirstChild( "Humanoid" ) |
4 | end ) |
5 | end ) |
It's better you put scripts like this in StarterCharacterScripts so you can simply do Humanoid = script.Parent:FindFirstChild("Humanoid")
. But that depends on usage case.