ae55f35a-2fbf-4218-81da-30e8e570f092
1 Like
Here’s how you can make a custom shift lock system
RootPart.CFrame = CFrame.lookAt(Vector3.zero, Vector3.yAxis:Cross(Camera.CFrame.RightVector)) + RootPart.Position
This gets a vector that’s perpendicular to the right direction of the camera and the up direction of the world using Vector3:Cross() function and adds RootPart.Position to keep it’s position
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.