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.

2 comments

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.

0

Or create an empty variable at the top, and just set the values equal to that.