Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I locate this to the torso?

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 comment

1

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

1 answer

✓ Accepted answer

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

3 comments

0

That's not what I'm talking about. I'm talking about my C0 and C1 variables.

0

http://wiki.roblox.com/index.php?title=Weld Read the part about welding together two existing variables!

0

Nevermind I fixed it. Thanks for the help anyways guys.

This discussion is preserved as it was. New answers, comments, and votes are closed.