Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[ANSWERED] attempt to perform arithmetic on global 'friction' (a userdata value) what is happening?

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

1 answer

Thanks @kingdom5, there is no * operator in udim2.

1 comment

0

You should either mark your answer as 'the answer' or put '[answered]' in the title of your question

This discussion is preserved as it was. New answers, comments, and votes are closed.