I want a variable that can be easy to access the players health and walkspeed...
COMMUNITY QUESTION
Whats the variable for the player's humanoid?
1 answer
The humanoid, assuming you have the player in game.Players, can be found in
local player = <whatever>
local humanoid = game.Players.player.Character.Humanoid
Then, you can go ahead and do things like
humanoid.Walkspeed = 0
humanoid.Health = 10
humanoid.MaxHealth = 500
And so on and so forth.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
The humanoid is in of itself a c++ instance variable. If you want to reference it just make a new Lua variable.
local myHumanoid = game.Players.Player1.Character.Humanoid;