Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do I locate this to the torso?

Asked by 8 years ago

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 -- 

1
That's not how you use Instance.new http://wiki.roblox.com/index.php?title=Instance_(table) theCJarmy7 1293 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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
0
That's not what I'm talking about. I'm talking about my C0 and C1 variables. Pandocool 5 — 8y
0
http://wiki.roblox.com/index.php?title=Weld Read the part about welding together two existing variables! MathTheory 25 — 8y
0
Nevermind I fixed it. Thanks for the help anyways guys. Pandocool 5 — 8y
Ad

Answer this question