#why TweenService won't change my textLabel X position?

1 messages · Page 1 of 1 (latest)

sharp drift
#
local targetPosition = UDim2.fromScale(math.random(-0.3, 0.3), -3)

and this line is the problem

#

why TweenService won't change my textLabel X position?

#

when I use a specific number instead of math.random it works and sends the textLabel to the desired X position

merry summit
#

pretty sure math.random only takes whole numbers

sharp drift
#

really???

merry summit
#

you can't random between 2 decimals

#

you have to do it the other way

#

math.random()*0.6-0.3

sharp drift
#

wha

merry summit
#

random without any args gives random between 0~1

#

so you just manipulate that into the range you want using math

sharp drift
#

wow

#

Really useful info

#

tysm pyro

#

and ty for answering fast too