local tool = script.Parent
tool.Activated:Connect(function ()
local m = Instance.new("MeshPart") -- create the meshpart
local hrp = tool.Parent:FindFirstChild("HumanoidRootPart") -- locate the hrp
m.Position = hrp.Position -- you need hrp.Position, not just hrp
m.Parent = hrp
local weld = Instance.new("WeldConstraint") -- weld it!
weld.Part0 = hrp
weld.Part1 = m
weld.Parent = m
end)