NPC not flinging into air with math.huge body velocity

My NPC is not flinging into the air, even when I put in a script to create a new body velocity, assign it to the HumanoidRootPart as parent, and put the Y axes bodyvelocity as math.huge. Does anyone know how to fix this? Here is the code.

local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = HumanoidRootPart
BodyVelocity.Velocity = Vector3.new(0,math.huge,0)

You might need to set the network owner to the server.

Fixed code:

HumanoidRootPart:SetNetworkOwner(nil)
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Velocity = Vector3.new(0, math.huge, 0)
BodyVelocity.Parent = HumanoidRootPart

It still does not work with the changes you gave me.