I'm coding an enemy that shoots bullets at the player and for some reason the bullets just slow down when near the player? i have no idea as to why its happening. Im using body velocity to move the bullets idk why this is happening please help
while task.wait(1) do
local clone = script.Parent.Parent.Projectile:Clone()
clone.WeldConstraint:Destroy()
clone.Transparency = 0
clone.Parent = game.Workspace
clone:SetNetworkOwner(nil)
clone.Position = script.Parent.Parent.Projectile.Position
local bodyvelocity = Instance.new("BodyVelocity")
bodyvelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyvelocity.Velocity = script.Parent.CFrame.LookVector * 50
bodyvelocity.Parent = clone
game.Debris:AddItem(clone, 5)
clone.CanTouch = true
end
also it only happens every once in a while????