Part that change gravity, animation don't work somehow

I wanna try to create part that change gravity and animation while/one touch
But I have bugs the gravity change to something ealse sometimes i dont know why and the animation don’t load too sometimes, hope if someone can help!.

function onTouch(hit) 

if hit.Parent:findFirstChild("Humanoid") ~= nil then
		local h = hit.Parent:findFirstChild("Humanoid")

		hit.Parent.Animate.fall.FallAnim.AnimationId = "rbxassetid://9994619922"
end
end

script.Parent.Touched:connect(onTouch)
script.Parent.Transparency = 1
parent = script.Parent

function onTouch(hit)
	if hit:FindFirstChild("NoGrav") == nil then
		local bf = Instance.new("BodyForce")
		bf.Name = "NoGrav"
		bf.Parent = hit
		bf.Force = Vector3.new(0,hit:GetMass(),0)*workspace.Gravity
	end
end

parent.Touched:connect(onTouch)```