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

How do I export the contents of a local variable?

Asked by 4 years ago

So essentially I'm trying to use a local variable in another function and obviously it's not working so I'm wondering if there's a way to move the contents of a local variable into a variable that can be used in other functions within the same script.

0
Remove local, and it can be used anywhere inside of that script. So, blue = Color3.fromRGB(0,0,255). And you can use that anywhere. killerbrenden 1537 — 4y
0
Or create an empty variable at the top, and just set the values equal to that. killerbrenden 1537 — 4y

Answer this question