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
11 years ago

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

Example;

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

2 answers

Log in to vote
1
Answered by 11 years ago

Well, position goes by Vector3

Example:

1a = Instance.new("Part")
2while true do
3wait()
4b= game.Workspace.foxy83.Torso.Position
5a.Position = Vector3.new(b)
6end

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,

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

Answer this question