How to use Global Variables in 2 minutes | ROBLOX 2022

preview_player
Показать описание
This video covers how to use global variables, specifically "_G" and "shared" in Roblox Studio. This topic isn't very known, and hopefully teaches you something about global variables within 2 minutes or less.

Рекомендации по теме
Комментарии
Автор

note:

global variables can only be called by scripts on the same "context" level, which basically means scripts that are of the same class. (so localscripts global variables can only retrieve global variables created in a localscript).

PoppinCorn
Автор

I don't even know you but this is a very good video thanks.(you own a sub)

jwcptuv
Автор

you are fucking insanly incredble, my hero

oirubinbr
Автор

Hey,
I am trying to make a game where you input something, If the answer is right you get put to the next level
I made the level variable in a normal script
But the check for the answer is a local script

How can I make it so the level variable can be changed by the local script to the normal script?

thomie
Автор

i'd rather put random values in a folder in repl storage and then use the variables as their value

OutplayerR
Автор

check out my second channel, if you're interested in whenever i upload gaming videos rarely (turn on notifications so you get them in ur inbox)

PoppinCorn
Автор

im new to scripting, how can exploiters get ahold of _G.? and what can they do with it

questthewolfcolon
Автор

I just don’t understand. Whether or not local is just used for a single person, singled server, or just a single function. When I think of global, I think of everyone so is that like shared cross data and info or more or so just more freedom in the string/function (whatever you’re using it in)?

hasherssaa
Автор

Aren't _G and shared the exact same?

AkaObbies
Автор

Can I make a global function with this?

Vexilex