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

new is not a valid member?

p.CFrame = p.CFrame.new(Vector3.new(pos, focus))

is the line...

1 answer

✓ Accepted answer

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)

3 comments

0

pos and focus are Parts, sry I didnt mention it

0

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

0

Just add .Position if they're parts :)

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