I’m trying to simulate a zig-zag effect whilst almost maintaining a linear direction - I have attached an image below representing this.
local Projectile_Speed = 150
Connection = RunService.Heartbeat:Connect(function(step)
local StudToMove = Projectile_Speed * step
Part.CFrame = CFrame.new(Part.CFrame.p + Part.CFrame.LookVector * StudToMove)
end)
Above is the method of movement; as you can see, it moves along a linear path at the moment, directly in-front of the projectile. This is for reference at the moment. But the final version will be within a tool, registering the Origin as the Tool’s Handle position and the EndPoint being Mouse.Hit.p
- Black points represent the Origin, Direction and End Point.
- Red points represent the “Zigzag” effect that will occur during motion.


