How do i my purple part point at the enemy

image

how do i my purple part point at the enemy, is that possible?

use CFrame:

local PurplePart = --> locate your purple part
local Player = --> get the player you want to target	

PurplePart.CFrame = CFrame.new(PurplePart.Position ,Player.HumanoidRootPart.Position)

position the part exactly between the target and the enemy. Use CFrames to rotate the parts look vector toward the target. Resizes the part on the z axis by the magnitude of target.position - origin.position

its still the same , its not working