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

How to globally define something?

So there is defining locally, normally, and globally (at least I think that's what it's called).

For locally you put local in front of whatever you are defining. For normal you put nothing. But I can't remember what you do to define something globally (so it can be accessed by any script across the game)

Super easy question because I am forgetful.

1 comment

0

I think it was _G or something...

1 answer

You use _G. It's not only for variables either, it can be used for many things. For example:

_G["Print"] = function(printThis) print(printThis) end

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