friction = UDim2.new(sq.accelerationx.Value,0,sq.accelerationy.Value,0)
c = -0.01
friction = friction * UDim2.new(c,0,c,0)
applyforce(sq, friction)
applyforce is a function that applies a force sq is a square acceleration is a numbervalue
friction = UDim2.new(sq.accelerationx.Value,0,sq.accelerationy.Value,0)
c = -0.01
friction = friction * UDim2.new(c,0,c,0)
applyforce(sq, friction)
applyforce is a function that applies a force sq is a square acceleration is a numbervalue
Thanks @kingdom5, there is no * operator in udim2.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You should either mark your answer as 'the answer' or put '[answered]' in the title of your question