#when i join in and touch the button it print the random number but after i touch the button again it
1 messages · Page 1 of 1 (latest)
it prints, the same number over and over again when i touch it but each time a join it print a different one over and over when i touch the buttom
button
roll the number first
then just
print it over
and over
not keep rolling
on touch it rolls
and u want it to not roll it
so
just
roll first
display when touched
¯_(ツ)_/¯
no i mean to stop it from reapeating the same number if i roll again
so
each touched
new num?
ok i missunderstood the first time mb
show code
oh ok
simple fix cuz i cba to rewrite
just
copy the local s1 s2 s3 thing
and paste it inside touched
just remove local
so its bc the function part?
what
currently u roll it at start of code
so it only randomizes it ONCE
no
when script runs for first time
oh yea
and u goinna update them inside touched
just move the thing inside function over to touch
welll not rly
if u move
it will error
cuz its local variable
not accessable by other functions
yea
such as roll()
ill make it global then