How to add a mesh to a dummy using script

How do i add a mesh to a dummy’s head?
this is my script.

game.Workspace.GokuHair.BrickColor = BrickColor.new(“Black”)
local GokuHair = game.Workspace.GokuHair
GokuHair.Anchored = true
local Humanoid2 = game.Workspace.Dummy
local character = script.Parent
local Humanoid = character:WaitForChild(“Humanoid”)
local ServerStorage = game:GetService(“ServerStorage”)
local Hair = ServerStorage:WaitForChild(“GokuHair”):Clone()

Hair.Parent = Humanoid2

also when i run the game the hair is just above the dummy’s head floating how do i make the mesh anchor to the dummy’s head.
When I unanchor Gokus hair then it just fall to the ground.

2 Likes

You have to weld the goku’s hair to the player’s head

1 Like

To do this you would do something like

local playerhead = —- players head

local gokuHair = — goku’s hair
local Weld = instance.new(“WeldConstraint”)

Weld.Part0 = playerhead 

Weld.Part1 = gokuHair

Weld.Parent = gokuHair

Welding basically just fuses the parts together without anchoring them.

2 Likes