How to make an object scatter randomly?

my game crashes every time I try to use Math Random, maybe I’m using it incorrectly.

All i know is that you write math.random and add (number min, number max) like coordinates in x or y.


thanks, every time I use match Random my phone crashes, it’s not one of the best. hah

1 Like

the best way is using math.random, but you can use step→time periodic→set transform(pos x + local variabel(ex: +1) or deltatime) → time delay →set tranform → time delay → set transform til you got what you want. this method make your fps drop maybe :slight_smile:


thanks bro, I’ll test it here