p.CFrame = p.CFrame.new(Vector3.new(pos, focus))
is the line...
p.CFrame = p.CFrame.new(Vector3.new(pos, focus))
is the line...
Assuming pos and focus are both Vector3 values, this will reposition p to pos and make it face focus
p.CFrame = CFrame.new(pos, focus)
If they're parts,
p.CFrame = CFrame.new(pos.Position, focus.Position)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
pos and focus are Parts, sry I didnt mention it
lol I had tried this same line it didnt work, but I anchored the focus part and strange stuff started to happen... so I decided to try this now, thnx :D
Just add .Position if they're parts :)