How to connect C# to lua/roblox studio?

Hello, I am trying to make connect C# to roblox studio window. Like a C# code that will execute a lua script to the roblox studio window(example: create a part in the workspace). I am trying to make it so when i run a C# console framework program, it will connect insert a part in a roblox studio window.
Sorry if i posted this in the wrong topic.

1 Like

The way you descrive it look like a injection exploit and to be onest, it is possible but creating something like that need enought knowledge in the domain witch i don’t have (I also don’t see why you would need to inject lua code in roblox studio), another alternative would be to simulate inputs on the studio window to create the part by using a shortcut

I am trying to do a program that will execute lua script into roblox studio. Like creating a simple part into workspace.

Executing the lua script by putting it in the command bar and pressing Enter or directly execute the script inside the program?

1 Like

Wait, what? i never knew this and thats kinda sus if roblox said that you can.

now why would you do that???

It’s not really that hard to simulate inputs and such. It’s not suspicious at all. And of course, there’s nothing malicious that can be done with it, so it doesn’t matter anyways

I think your best option is to use something like Rojo

Create a plugin that communicates with your C# program via HTTP on localhost.

1 Like