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

Help with position?

Asked by
foxy83 15
10 years ago

How can I get a part when Inserted to get to the right position?

Example;

a = Instance.new("Part")
a.Posittion = Workspace.foxy83.Head.Torso
0
Position* foxy83 15 — 10y

2 answers

Log in to vote
1
Answered by 10 years ago

Well, position goes by Vector3

Example:


a = Instance.new("Part") while true do wait() b= game.Workspace.foxy83.Torso.Position a.Position = Vector3.new(b) end

I think it should work. You did spell Position wrong, and if you want it to go to the players torso use the above

0
Thanks! foxy83 15 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

Errors: Spelt Position wrong and Torso is not in Head Well if you want it inside of the head you should do,

a = Instance.new("Part")
a.CFrame = CFrame.new(Vector3.new(Workspace.foxy83.Torso.Position.X,Workspace.foxy83.Torso.Position.Y,Workspace.foxy83.Torso.Position.Z))

Answer this question