Hi,
Currently I'm using the following code to move a part as shown below per Heartbeat. There is code following this that will react based on whatever the part comes in contact as it's moving down a straight path. I have run into two issues while using this method that I'm seeking advice on how to solve.
game:GetService("RunService").Heartbeat:Connect(function()
Part.CFrame = Part.CFrame*CFrame.new(0,-1,0)
So the first issue that I have noticed is that there are instances where if a part is in the middle of the previous CFrame location and the new CFrame location, there is no direct touch which prevents any interaction codes from being applied. Now of course, the logical thing to do is to have the part move more frequent than just 1 stud at a time, moving at .1 for example. This runs into the second issue..
The second issue is that the lower the number of movement studs, the slower the object moves along a line. In terms of, let's say a bullet traveling, instead of having that quick snap along a line it will slowly track across until interacting or being removed.
So my question here is, is there a way to make the part move in smaller increments but increase the speed at which it travels? I would prefer any answers to enhance the above method, but I am open for suggestions on different methods of manipulating the part.
Thanks!
Romul

1 comment
I edited the answer and commented to give some more context.