1.What do you want to achieve?
The yellow part reaching the player’s position consistently.
2.What is the issue?
The part goes to the position near the spawn point.
3.What solutions have you tried so far?
I have tried changing the CFrame and position of the part as well as looked though my older script which works the way I wanted.
Here are the video of the problem and the code for it.
Video:
robloxapp-20221204-1235578.wmv (380.4 KB)
Code:
local Enemy = TouchedPart.Parent
FirePosition = (Enemy.UpperTorso.Position - Enemy.LowerTorso.Position)
Bullet.CFrame = CFrame.new(Tower["Fire Point"].Position, FirePosition) * CFrame.new(0,0, -Length/2)