BlockCast Position Problem

  1. What do you want to achieve? Keep it simple and clear!

I’m trying to debug the system I’m making

  1. What is the issue?

I’m trying to optimize a function in the script but when I put a variable instead of the long version of the code it works differently

this works for the most part but the issue is when I try to simplify the lookvector into a variable it doesn’t work as intended

newpart.Position = origin.Position + origin.CFrame.LookVector * 4

This one doesn’t work even though the direction variable is the same as above so it should work the same I’m assuming, it doesn’t stay in-front of LookVector

newpart.Position = origin.Position + direction

Correct Positioning

Incorrect Positioning not staying in-front of torso LookVector

1 Like