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

How can I make a part point towards my mouse with CFraming?

I've been trying to get help with a question similar to this for awhile, and this is as simplified as I can make it. Yes, it has to be CFraming for reasons. In the end the CFraming has to be done with welds, a part with a part called the pivot in the middle of it.

If somebody could at least tell me how to make a part point towards your mouse with CFraming it would help a lot, thanks.

1 answer

✓ Accepted answer

A common way to make a cframe would be to use CFrame.new(Vecto3Value,Vector3Value)

This will return a CFrame that is at the first position, and looking at the second position. wiki has more information on this.

brick.CFrame = CFrame.new(Brick.Position, Mouse.Hit.p)

1 comment

1

This does really help me, thanks.

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