Hello, I was working at my game and I run into a problem, I want to make a discord bot. When robux are added to the group (I don’t know how to do this event) the bot will log into a roblox account (I don’t know how) then calculate how much is 90% of that robux to give it to a developer and 10% will remain in the group.
These are the things that I don’t know: How to do an event when the robux are added, How the bot to log into an account, How to give group founds.
I’m using JavaScript and I have a bit of knowledge in it.
I want to do it only one time, and by developer I mean a random person, not game developer.
@XxELECTROFUSIONxX (again) I want to do it automatic, I don’t want to do it manually. One-time Payout isn’t automatly and I need manually to give the robux. You got the idea but you only know the manually way.
This is why I want to do a bot, so I will not do it manually.
There is no option currently available for set payments, i.e of a fixed amount , automatically, but to pay a developer a fixed percentage automatically use the recurring payment option.
Also, there is no event to detect revenue being added to a group and there is also no way to spend revenue from a group on people through code.
even if you’d be able to get some sort of event for this, which is impossible even through Http Service as roblox blocks requests to Roblox.com and the Roblox API , you can’t distribute funds through code at all.
Only the owner of the group can give group funds, there is no permission you can give other people to pay group funds. But it is possible to give people permission to move members and give them different roles.
You can’t get some sort of event for detecting funds, it is not possible AFAIK even through Http Service as Roblox blocks requests to Roblox.com and the Roblox API , the only work around is using a Proxy which I won’t suggest.
Many people says Proxy is good if you, also as I said I don’t work at a LUA script I work at a discord bot. The new question is, can you see how many group founds a group have? The bot is the owner, the group found are visible.
Noblox.js has a groupPayout function built in which allows a roblox bot to give a pay out. However, it can be risky to use this, as it’s not officially on the roblox API documentation.