BorService (I couldn’t think of any other name sorry) is a currently server-sided module (I might add client functions soon) I made that has functions I think should be built-in, such as getting the local player from the server by just running a function, and playing audios locally through a server script so only the local player can hear the audio. I know this is really easy to do without any module, but this is just to make this type of process easier if you don’t want to set up functions and stuff in both the client and server for one thing, for example.
Get data from the Roblox API one simple function! (Make sure to SELF HOST your proxy like shown below the API in this post for the Roblox API function, as I cannot guarantee safety with publicly hosted ones!)
API
BorService API
Referencing BorService
local ServerScriptService = game:GetService("ServerScriptService");
local BorService = require(ServerScriptService:WaitForChild("BorService", 30));
Get LocalPlayer from the server
local player : Player = BorService:GetLocalPlayer();
Play sound on the client through a server script
BorService:PlayLocalSound(SoundObject) -- SoundObject == instance (sound)
Request data from Roblox API
local DataTable = BorService:APIGet(endpoint); -- endpoint == string (ex: "/users/v1/users/1")
Self hosting your own proxy for Roblox API usage
Hosting a proxy
For this guide, we’ll be using LegoProxy by @TsuuNeko.
First, head over to https://github.com/PyTsun/LegoProxy and click the “Deploy to Deta” button.
Next, sign up to deta. Do not use your Roblox information!
After that, click the blue deploy button.
Lastly, click the link to your hosted proxy (the one I censored):
If you ended up here, congratulations! You have finished hosting your own proxy.
Now, in the configurations module, set UsesRobloxAPI to true and set the RobloxAPI_URL to your self-hosted proxy (the link you just clicked)
Next, enable HttpService in your game’s settings:
And now, congratulations! You finished setting up LegoProxy with BorService. Now, you can get data from the Roblox API through the BorService APIGet function in the API.
Lastly, I need you guys to tell me what you think of BorService and please, if you got any, give me ideas for new features. I really can’t come up with any, hence why publishing this module with only 3 functions.
Comment your ideas below!