Hair moves in Roblox through scripts that change the position and rotation of hair parts over time, usually triggered by player actions or physics

The most common approach is to use a LocalScript inside the hair part itself, which detects when the player moves and updates the hair's position and angle in response. You can also use TweenService to create smooth animations, or attach hair to bones in a humanoid rig so it follows the character's skeleton automatically. The method you choose depends on whether you want hair to react to movement, wind, jumping, or just play a set animation.

Hair in Roblox is typically a MeshPart or Part welded or attached to the character's head. To move it, you change its CFrame property — which controls position and rotation — or use Motor6D joints if the hair is part of a rigged model. The script runs on the client side (in a LocalScript) so it responds instantly to what the player sees.

Key Takeaways

  • Hair movement requires a LocalScript that reads the player's movement speed or animation state and updates the hair part's CFrame accordingly.
  • TweenService creates smooth, natural-looking hair sway by gradually rotating the hair over a set time rather than snapping it to a new position.
  • Motor6D joints let you rig hair to the character's skeleton so it moves with the head and body automatically without extra scripting.
  • Physics-based hair uses BodyVelocity or Constraint objects to make hair react to the character's acceleration and gravity.

Moving Hair With a LocalScript and CFrame

Create a new LocalScript inside the hair part. At the top, store a reference to the hair part and the player's humanoid so the script can read movement data. Then use a loop that runs every frame (using RunService.RenderStepped) to check how fast the character is moving and rotate the hair based on that speed.

Here is the basic structure: the script measures the character's velocity, calculates how much to rotate the hair, and applies that rotation using CFrame. If the player is running forward, the hair might tilt backward. If the player stops, the hair gradually returns to its resting position. You control how much the hair moves by adjusting the rotation amount — a larger number makes the hair swing more dramatically.

The key line is something like hair.CFrame = hair.CFrame * CFrame.Angles(0, 0, tiltAmount), which rotates the hair around its Z-axis. You calculate tiltAmount by dividing the character's speed by a number you choose (like 50) so faster movement creates bigger tilts. Use math.lerp to smooth the transition so the hair does not snap between positions.

Using TweenService for Smooth Hair Sway

TweenService is Roblox's built-in tool for animating properties smoothly over time. Instead of changing the hair's rotation instantly, you tell TweenService to move it from one rotation to another over, say, 0.5 seconds. This creates a natural swaying effect that looks less robotic than instant snaps.

Create a TweenInfo object that specifies how long the animation should take and what easing style to use. Enum.EasingStyle.Sine works well for hair because it creates a smooth wave-like motion. Then create a Tween that targets the hair part and changes its CFrame to a new rotated position. When the tween finishes, start a new one that moves the hair back, creating a continuous sway.

This method works best when you want hair to sway gently even when the player is standing still, or to react smoothly to specific events like jumping or landing. You can trigger different tweens based on what the character is doing — a faster sway when running, a gentle bounce when jumping.

Rigging Hair to the Character Skeleton With Motor6D

If your hair is part of a rigged character model, you can use Motor6D joints to attach it directly to the head bone. This way, the hair moves automatically whenever the head moves — no scripting required for basic movement. Motor6D is the joint type Roblox humanoids use internally to connect arms, legs, and torso.

In your model editor (like Blender before importing, or using Roblox Studio's built-in tools), create a bone for the hair and parent it to the head bone. When you import the model into Roblox, the Motor6D joints are created automatically. The hair will then follow the head's position and rotation in real time.

If you want the hair to have secondary motion — like bouncing slightly after the head stops moving — you can add a LocalScript that tweaks the Motor6D's C0 or C1 properties (which define the joint's offset and rotation). This gives you rigged movement for free while still allowing fine-tuned adjustments.

Making Hair React to Physics and Gravity

For more realistic hair movement, use BodyVelocity or BodyGyro objects (older method) or Constraint objects like RodConstraint and BallSocketConstraint (newer method). These make the hair part respond to the character's acceleration and gravity, so it swings backward when the player accelerates forward and settles back down when they stop.

Attach a BodyVelocity to the hair part and set its velocity to match the character's velocity. The hair will lag slightly behind the character's movement because of the physics simulation, creating a natural trailing effect. Adjust the Velocity and MaxForce properties to control how much the hair lags and how quickly it catches up.

Constraints are the modern approach and work better with Roblox's newer physics engine. A RodConstraint between the hair and the head keeps them connected while allowing the hair to swing. Adjust the constraint's Thickness and Stiffness to control how rigid or loose the hair feels.

Triggering Hair Movement on Specific Actions

You can make hair move only when certain things happen — like a bigger swing when the character jumps, or a shake when they land. Use Humanoid.StateChanged to detect when the character enters the Jumping or Landed state, then trigger a tween or rotation change.

For example, when Humanoid.State == Enum.HumanoidStateType.Jumping, start a tween that rotates the hair backward. When the state changes to Landed, tween the hair back to center with a slight overshoot for bounce. You can also detect falling, climbing, or swimming states and give the hair different movements for each.

This approach keeps the script efficient because it only animates the hair when something interesting is happening, rather than running calculations every frame. It also makes the hair feel responsive to the player's actions.

Common Issues and How to Fix Them

If the hair is moving but looks jerky or unnatural, the problem is usually that the rotation is too large or the update is happening too fast. Reduce the tilt amount or use math.lerp to smooth the transition between frames. If the hair is not moving at all, check that the LocalScript is inside the hair part itself (not in a folder above it) and that it has the correct reference to the hair part.

If the hair is moving but the character's head is also moving (like during animations), the hair might be fighting against the head's movement. Weld the hair to the head using a WeldConstraint so they move together, then apply rotation offsets on top of that. If you are using Motor6D and the hair is not following the head, make sure the joint's Part0 is the head and Part1 is the hair.

Performance can suffer if you have many hair parts or if your script is running expensive calculations every frame. Use RunService.Heartbeat instead of RenderStepped if you only need updates 60 times per second rather than as fast as the game renders. Consider using a single hair mesh instead of multiple parts, or use constraints instead of scripts for physics-based movement.

Frequently Asked Questions

What is the difference between moving hair with a script and using Motor6D?

A script gives you full control over when and how the hair moves, but requires code. Motor6D automatically makes the hair follow the head bone, so it moves with animations and head turns without scripting, but it is harder to add custom effects like swaying or bouncing.

Can I make hair move differently for different animations?

Yes. Use Humanoid:GetState() or Humanoid.StateChanged to detect what the character is doing, then play different tweens or apply different rotations. You can also read the Humanoid.MoveDirection to see which way the player is moving and adjust the hair accordingly.

Why does my hair look stiff and not natural?

Hair usually looks stiff because the movement is too fast or too large. Use TweenService with a longer duration (0.3 to 0.8 seconds) and a Sine easing style. If you are using CFrame directly, use math.lerp to blend the old rotation with the new one gradually instead of snapping to it.

How do I make hair bounce when the character lands?

Listen for Humanoid.StateChanged and check if the new state is Landed. When it is, create a tween that rotates the hair forward, then another tween that rotates it back with a slight overshoot using Enum.EasingStyle.Elastic or Bounce.

Can I use constraints instead of scripts for hair movement?

Yes. Attach a BallSocketConstraint or RodConstraint between the hair and the head, then adjust its stiffness and damping. The hair will swing naturally in response to the character's movement without any scripting, though you have less control over the exact motion.