Why do this part does to here rather than the player?

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)

Nevermind, I found a video online that helped me and after a little experiment with humanoidRootPart, I was able to get it working.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.