Why does this keep happening?

Iv’e been trying to make a fireball that iv’e seen from a tutorial. The fireball keeps curving around enemies when it’s fired. Is there a way to fix this?

Local script:

Script:

1 Like

Maybe turn cancollide off on the fireball?

Yes can collide is turned off but it still happens
Screenshot 2021-08-25 at 6.37.12 PM

I would add newFireball.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2) and after you parent it try setting network owner.

I am very new to programming. Could you simplify it for me?

	fireball.CFrame = cframe * CFrame.new(0,0,-5)
	fireball.Velocity = LookAt*100
	local fly = Instance.new("BodyForce", fireball)
	fly.Force = Vector3.new(0,fireball:GetMass()*196.2,0)

*** be sure to change the name to newfireball instead of fireball so it works with your code

Im very sorry for the inconvenience but where do i add this script at?

try line 13 of your script, however if you use this body velocity then you probly don’t need line 11 in your code