How to stop a soccer ball rolling indefinitley?

Hello, I am guestie.

I have tried to stop my soccer ball rolling forever after applying bodyVelocity by tinkering with CustomPhysicalProperties however it does not work

			local force = Instance.new("BodyVelocity")
			force.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
			force.P = 999
			force.Velocity = (hit.Parent:FindFirstChild("Left Leg").CFrame.LookVector + Vector3.new(0, pwr/2/100, 0) ) *  pwr/2
			force.Parent = script.Parent
			

			local backforce = Instance.new("BodyVelocity")
			backforce.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
			backforce.P = 9999
			backforce.Velocity = (-hit.Parent:FindFirstChild("Left Leg").CFrame.LookVector)  * 100
			backforce.Parent = script.Parent
			```

When I kick the ball, it rolls on for so long.

Maybe instead of having two BodyVelocities just reduce one over time.

I found a post similar that explains what I mean:

1 Like

Constantly multiply the velocity by a number lower than 1 so that it will slow down

2 Likes

Replace the body velocity to body force

2 Likes

Add a body gyro and parent it to the ball. Edit the P and D as you wish until you get something you like.

1 Like

Never thought I would see you on my post, the guy who made that MPS tutorial wow. Thanks I’ll try that

Yeah i decided to look up the soccer term on the search bar and found your post still unsolved lol

What are some reccomdened values, I am having trouble with it

image

1 Like

Sorry again but one last thing… how do I make a ball curve?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.