I'm trying so hard how to locate this to the torso
local hrh = Instance.new(motor) hrh.Name = "RootJoint" hrh.MaxVelocity = 0.1 hrh.Part0 = hh -- hrh.Part1 = tor n.C0 = CFrame.new(0, 1*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0) n.C1 = CFrame.new(0, -0.5*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0) hrh.Parent = hh --
First of all; instance must be in quotes
local hrh = Instance.new("Motor")
Also, I dont understand where are you trying to locate the motor to. My guess:
hrh.Part0 = script.Parent.Torso hrh.Part1 = script.Parent.RootPart