Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

5 comments

0

Oooh! If i can. Can i make more value?

0

I goOOOot it!! thanks for help!

0

By the way, It BoolValue for true or false?

0

Sorry I went to sleep, but yes, boolValue is for true or false

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

This discussion is preserved as it was. New answers, comments, and votes are closed.