Hello guys, I have been trying to seek a way to share my creations via private modules but of course they are locked. Then so I was searching ways to share my stuff but not the code, one of the was possibly using a web server but the thing is, I have tried to search and nowhere in internet I can find a way to create a web server to run functions externally and process them on roblox. I found something related but may be only run on Windows and I am a MacOs user. Then so, is anyone willing to help me finding a way onto how to create the web server.
A web server won’t change anything. If your script in the model can query the server for the code, so can someone who just wants to look at the code. Moreover they can simply edit the loader script to look at the code as it is right before the loader script runs it.
The best you can do is use my or someone else’ Minifier plugin to obfuscate the code: https://www.roblox.com/library/197760456/Stravant-Minify-Beautify
That will make it at least take a significant effort from someone to untangle the code and figure out what you’re doing.
I will try solution, thank you. However I’d do like having a way to run the code via web server.
And anyone who takes your model would very much not like to have you be able to run arbitrary code which you could change at any time in their servers. I’m sure you can see why that’s a security issue.
Yeah so I wanted that all could use my script without seeing the content of it. That is why I am trying to do a web server because from a web server, when I do a request I can send a callback with the function for it to be run. The thing is I do not know how.
Game request → web server search for requested function → web server returns function → game runs function.
Like Stravant said before, a web server will not help you in this situation. The only way something like this would work is if the web server is returning the code, and ignoring all the other issues present in doing that, you’d still have to make it publicly accessible through that server.
If a game can access code on the server, everyone can access the code. It’s a much better solution to use Stravant’s minimizer library for this.
The problem is, as stravant pointed out, that if a game can request a function to run - so can anyone with a bit of work. If you ever stray from Roblox to software development, you’ll realise the model that was once possible in Roblox simply can’t be used. Software developers can make it hard to for their software to be stolen, but if users are able to download the files for it then there’s always a way they can rebuild the software from what they have (even if it’s not the exact source code).
Roblox enables you to keep code private because they are the ones hosting the servers, they run all the code on their end and provide clients with only what they need. For you to follow this same model, you’d have to have a service which has something you can completely process on your web server (which clients can’t access) and then return a result of that process. To have code useable by others, but without access to view it, is a huge security risk to them - yes you could argue that it’s their fault, but it just enables an easy way to target people.
It’s simply no longer possible to make code completely inaccessible, the best you can do is obfuscate it, and make it hard to do so - which is what’s commonly done. Otherwise, provide a service where the main functionality of it is handled on the server and results passed back.
Are you just looking to hide your code? Why do you need to do this?
Alright, I will be using Stravant solution.