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

CFrame to mouse coordinates, without rotation?

Asked by 8 years ago

So, I have this line of code.

Template.CFrame = Mouse.Hit + Vector3.new(0,1,0)

It takes the part I want it to, and (using a click function) positions the part where the mouse hits.

The only problem is, it applies a wonky angle. It rotates it based on where the camera is pointing, but I want it to stay flat.

How can I get it to ignore rotation CFrame?

Answer this question