#how can a variable be on two scripts

1 messages · Page 1 of 1 (latest)

wild prism
#

oh my gawd

#

disastor

sly kernel
#

yeah i know

#

but i am really new not even a day new

wild prism
#

you need to stop wathcing whatever tutorial ur wathcing fast

marsh sage
#

global variable or value

#

i tink

sly kernel
#

no im self teaching myself

sly kernel
marsh sage
#

for global value remove local

sly kernel
#

yeah i already figure that out but i cant figure out how to make one part of one of the script active another script

dusk basinBOT
#

studio** You are now Level 2! **studio

marsh sage
#

o

sly kernel
#

yeah

slow horizon
#

Just watch BrawlDev and get a friend who knows scripting

#

then Hop on a call with them for 5 hrs

#

per day

subtle frost
#

or just learn module scripts?

viral gull
#

Use a value

#

From the explorer

#

Can be a number value, bool value, etc.

#

and you can set it and get it from scripts

high notch
#

you could do

-- in script 1:
_G.variable = SomeValue

-- in script 2:
variable = _G.variable

But most of the time you dont want to use _G