“v” refers to the player’s HumanoidRootPart and “clone” is the part being spawned infront of the player. The first CFrame is supposed to set the position and orientation of the clone’s CFrame while the second one does the offset however this doesn’t include the orientation which makes the rest of the script basically pointless. I have tried to set the orientation but the only way I have managed to do it is by doing:
clone.CFrame = v.CFrame * CFrame.new(0, 0, -5)
but this doesn’t allow me to set the Y value of the CFrame to make the part appear on the ground.
This is how the script currently works, I’m trying to make the gray part appear infront of the player rather than spawning to the side while still keeping it on the ground
This is the code that the script in the video is using: