Posted
How is this function supposed to be used? if you know can you please provide an example >.>
Proud creator of: WRD+
Replied
It pushes the specified Roblox global into the wrapped Lua environment's globals. It's useful to use if there is a global that isn't already used in the WRD API. For example, the "UserSettings" global isn't available. You can make it available by using WrapGlobal("UserSettings")
Cancel
Post
I'm just a chill guy fr 🤙
Replied
So if I understand right it would be something like
Â
[code]
-- Within the executor
print(workspace) --> nil
WrapGlobal('workspace') --# Makes the global availiableÂ
print(workspace) --> WorkspaceÂ
[/code]
Cancel
Post
Proud creator of: WRD+
I'm just a chill guy fr 🤙
Replied
That's cool. At first I thought it was something to make global changes/variables, like:
Â
[code]
WrapGlobal("function game:debug()Â end")
-- Other script:
game:debug()
[/code]
Â
Anyways, thanks for the info, it had me confused.
Cancel
Post
Proud creator of: WRD+
Replied
Happy to help :D
Cancel
Post
I'm just a chill guy fr 🤙
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post