I am currently making a placement system, but I encountered a problem. I am using a RemoteEvent for it, and the script type that this is in is a normal script. Anyways, mouse.Hit its a Vector3 value, but since I am using Model:SetPrimaryPartCFrame(CFrame), I can’t get it to work because it is trying to use a Vector3 value for a CFrame value. I have not found any posts on here, and haven’t found anything on DevHub. Is there any way I can convert Vector3 to CFrame?
2 Likes
mouse.Hit
is a CFrame value, not a Vector3 value. But CFrame.new(Vector3 pos)
is an overload of the CFrame.new
constructor, so if you pass mouse.Hit.Position
through the remote then just call CFrame.new
on that position to get a CFrame positioned where the mouse is.
10 Likes
try setting something transparent there and doing either “blahblahblah.CFrame = ThingThere.CFrame” or “blahblahblah.CFrame = CFrame.new(ThingThere)”