Categories > Coding > C++ >

How do I get ScriptContext address?

Posts: 7

Threads: 1

Joined: May, 2024

Reputation: 1

Posted

I am making my own executor for Roblox, and I have trouble getting the Lua state. I have found the getGlobalState function but it requires ScriptContext as the first parameter. How do I find ScriptContext?

  • 0

Posts: 1

Threads: 0

Joined: May, 2024

Reputation: 0

Replied

Shoot me a message on cord @tescomealdeal2

  • 0

Posts: 1

Threads: 0

Joined: Dec, 2023

Reputation: 0

Replied

I also want to know about it.

  • 0

Posts: 1

Threads: 0

Joined: May, 2024

Reputation: 0

Replied

To access ScriptContext in Roblox for your executor, use `game: GetService("ScriptContext")`. Once obtained, you can utilize its functions like `getGlobalState()` to retrieve the Lua state for your scripting needs. Ensure your executor has the necessary permissions to interact with these services effectively. 

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )