Passing Ball on Floor(Soccer Scripting Help)

		local BodyVelocity ="BodyVelocity")
		BodyVelocity.Velocity = Target.HumanoidRootPart.CFrame.LookVector * 1 * Power +, 0, 5)
		BodyVelocity.MaxForce =, math.huge, math.huge)
		BodyVelocity.Parent = Ball
		game.Debris:AddItem(BodyVelocity, 1)
		local TweenTable = {
			Info =, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0),
			Goal = {Velocity = Target.HumanoidRootPart.CFrame.LookVector * 1 +, 0, 5)}
		local Tween = TweenService:Create(BodyVelocity, TweenTable.Info, TweenTable.Goal)


Ground pass

I need help scripting when I pass the ball it goes into the air a little ball than moves around 5 units like it supposed to be. I want the ball to roll on the floor and not go in the air at all. Anybody have a fix or good velocity for this.

Apply a body velocity in the direction you want the ball to go, and use a runservice heartbeat loop with a math.clamp to clamp the balls Y axis.

1 Like

O ye that would actually work I already got the bodyvelocity done I just need help with the runservice part.

Why dont u just do

BodyVelocity.Velocity = Target.HumanoidRootPart.CFrame.LookVector *1 * Power

It should work just like this
(I have a soccer game too)