Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make it so the ball slows down as it moves?

Asked by 2 years ago

When I push the ball instead of it slowing down over time it keeps moving at the same speed infinitely. I tried messing around with the friction values but nothing seems to work.

local part = script.Parent

local density = .3
local friction = .1
local elasticity = 1
local frictionWeight = 1
local elasticWeight = 1
local PhysicalProperty = PhysicalProperties.new(density,friction,elasticity,frictionWeight,elasticWeight)
part.CustomPhysicalProperties = PhysicalProperty

Answer this question