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

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

Asked by 7 years ago

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

Log in to vote
0
Answered by
Bellyrium 310 Moderation Voter
7 years ago

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
This does really help me, thanks. Jesse1240 59 — 7y
Ad

Answer this question