Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can i get a script's local from another script?

Asked by 6 years ago

I'm created a local value. Its about true or false.
Just want let another script detect that is true or false.
Is this can be happened?

1 answer

Log in to vote
1
Answered by 6 years ago

You could use physical values. You can insert an objectvalue or a numbervalue and many more into the workspace or anywhere really. Then you can do something like:

--NumberValue in workspace has a value of 4
value = game.Workspace.NumberValue.Value

--Prints 4
print(value)

If i have two scripts, I can change the value and the other script can recognize it.

0
Oooh! If i can. Can i make more value? MEndermanM 73 — 6y
0
I goOOOot it!! thanks for help! MEndermanM 73 — 6y
0
By the way, It BoolValue for true or false? MEndermanM 73 — 6y
0
Sorry I went to sleep, but yes, boolValue is for true or false ronitrocket 120 — 6y
0
infact there is even an object value which refers a path to an object. You can click the object you want and it will update the path for you. So, you could do value = game.workspace.objectvalue.value, instead of game.workspace.house.room1.tv.controls.buttons.part ronitrocket 120 — 6y
Ad

Answer this question