I’m trying to place a cube in front of a player, and to do this, I’m trying to use the LookVector of the HumanoidRootPart of my character. The code looks like this:
Cube.CFrame = HumanoidRootPart.CFrame.LookVector *2
However, when I run this code, it won’t work, as it says “Unable to assign property CFrame. CoordinateFrame expected, got Vector3” When changing the code from Cube.CFrame to Cube.Position, it doesn’t show any error messages, but instead sets the cube at the center of the map (0,0,0).
Does anyone know how to fix this problem?
Edit: Hands down, this is my stupidest post yet. My bad.
