---
title: "Humanoid"
description: "Character health, walking and jumping state."
canonical: "https://docs.glorpia.com/instances/humanoid"
markdown: "https://docs.glorpia.com/instances/humanoid.md"
---
# Humanoid

Character health, walking and jumping state.

**Category:** Instances

## Properties

| Name | Type | Description |
| --- | --- | --- |
| `Health` | number | Readable on both sides. Public ServerScripts may write Health; public LocalScripts cannot change authoritative health. |
| `MaxHealth` | number | Read current maximum health. |
| `WalkSpeed` | number | Readable on both sides. Public ServerScripts may write movement speed. Public LocalScripts cannot change it. Climbing speed is 70% of WalkSpeed. |
| `JumpPower` | number | Readable on both sides. Public ServerScripts may write jump strength. Public LocalScripts cannot change it. |
| `MoveDirection` | Vector3 | Read current horizontal movement request. |
| `Grounded` | boolean | Read-only runtime state showing whether the Humanoid is grounded. |
| `Jump` | boolean | Read current jump request. Set true to request a jump. |
| `Dead` | boolean | Read-only runtime state showing whether the Humanoid is dead. |

## Methods and events

| Name | Type | Description |
| --- | --- | --- |
| `Move(direction)` | method | Sets the requested movement direction using a Vector3. |
| `MoveTo(position)` | method | ServerScript-only. Walks a valid NPC character Model toward a world-space Vector3 using WalkSpeed. |
| `FollowPlayer(player, modeOrBrain, brain)` | method | ServerScript-only. Continuously follows a Player. FollowMode controls stopping behavior and FollowBrain selects Dumb or Smart navigation. |
| `TakeDamage(amount)` | method | ServerScript-only. Reduces Health by a non-negative amount through the authoritative Humanoid health path. |
| `Died` | signal | Available on both sides. Fires when this Humanoid transitions from alive to dead. |

## Client and server authority

Public `LocalScript` code may read replicated Humanoid health and movement settings and connect to `Died`. Authoritative health and movement-setting changes remain server-owned: setting `Health`, `WalkSpeed` or `JumpPower`, and calling `TakeDamage()`, `MoveTo()` or `FollowPlayer()`, are restricted to public `ServerScript` code.

Client movement controls such as `Move()` and the `Jump` request are used by the local character-control path.

## Example: Damage And Death

```luau
local humanoid = script.Parent:WaitForChild("Humanoid")

humanoid.Died:Connect(function()
    print(script.Parent.Name, "died")
end)

humanoid:TakeDamage(25)
```

> **Note:** `Died` fires when the authoritative Humanoid state changes from alive to dead.

## NPC character Models

An authored Model is treated as an NPC character when it directly contains a `Humanoid` plus BaseParts named `Head`, `Torso`, `Left Arm`, `Right Arm`, `Left Leg` and `Right Leg`.

The Studio toolbar **Rig** button inserts this complete R6 NPC structure for you as a Model named `Rig`.

Valid NPC character Models display the Model name above the Head, are preserved in GLRP saves, and remain present when playtesting starts.

Authored Humanoid values are saved with the place and restored on load. This includes `Health`, `MaxHealth`, `WalkSpeed` and `JumpPower`, so Studio property changes no longer reset to defaults when the place is reopened or playtesting starts.

NPC Humanoids use the same authoritative health path as player Humanoids. Reducing `Health` to zero or calling `TakeDamage()` until Health reaches zero fires `Died` and breaks the R6 NPC body into the same physics-driven death state used by player characters. NPCs are not automatically respawned. If a broken-apart NPC falls below the void destroy height, its complete character Model and detached physics bodies are deleted.

## Example: Move An NPC To A Position

```luau
local npc = workspace:WaitForChild("Guide")
local humanoid = npc:WaitForChild("Humanoid")

humanoid.WalkSpeed = 12
humanoid:MoveTo(Vector3.new(40, 0, -20))
```

> **Note:** `MoveTo()` uses character-style movement: the NPC faces its travel direction, plays the R6 walk animation, is affected by gravity, falls from unsupported edges, and stops when blocked by collidable geometry. It does not perform pathfinding around obstacles.

## Example: Follow A Player

```luau
local players = game:GetService("Players")
local npc = workspace:WaitForChild("Follower")
local humanoid = npc:WaitForChild("Humanoid")

local player = players:GetChildren()[1]
humanoid:FollowPlayer(player, Enum.FollowBrain.Smart)
```

> **Note:** `FollowPlayer()` continuously resolves the Player&apos;s current Character, so you do not need to repeatedly call `MoveTo()`. `Enum.FollowBrain.Dumb` keeps the original direct movement, while `Enum.FollowBrain.Smart` detects gaps, approaches the real takeoff edge, factors landing height into jumps using `JumpPower` and `WalkSpeed`, follows small and large drops onto `CanCollide` platforms, searches a larger area for doorways and bridges, keeps clearance from walls and corners, auto-jumps safe obstacles, and searches for the nearest ladder when the Player is above it. When no safe route exists it waits in place facing the Player instead of oscillating. You can combine a brain with `Enum.FollowMode.Companion` or `Enum.FollowMode.Chase` as a third argument.

## Example: Make The Character Move

```luau
local player = game:GetService("Players").LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChild("Humanoid")

humanoid.WalkSpeed = 20
humanoid:Move(Vector3.new(0, 0, -1))
humanoid.Jump = true
```

> **Note:** Movement direction is horizontal; Glorpia removes the Y component from movement requests.

## Related

- [Humanoid:TakeDamage()](https://docs.glorpia.com/scripting/functions/take-damage.md) — Reduce authoritative Humanoid health.
- [Humanoid:MoveTo()](https://docs.glorpia.com/scripting/functions/move-to.md) — Move an authored NPC toward a world position.
- [Humanoid:FollowPlayer()](https://docs.glorpia.com/scripting/functions/follow-player.md) — Continuously follow a Player without manual retargeting.
- [Humanoid.Died](https://docs.glorpia.com/scripting/events/humanoid-died.md) — Connect code to the death transition.
- [WaitForChild()](https://docs.glorpia.com/scripting/functions/wait-for-child.md) — Yield until a named direct child exists.
