Introducing GroupService2 (GS2)!

Introducing Group Service 2!

Welcome to this post, I don’t know if anyone else has created an enhanced usage system for roblox’s built in GroupService, but I have and I think it’s pretty cool.

The road map for this open sourced module is quite vast, I intend to add ranking features distributed to registered members. Currently contemplating a price as it would require use of a payed VPS.

I hope you all love this module, report any bugs or issues directly on this post and I will look into it asap.

Find documentation and the module here:

4 Likes
Unhandled Promise rejection:

-- Promise.Error(ExecutionError) --
ServerScriptService.Script.GroupService2:32: invalid argument #1 to 'pairs' (table expected, got nil)
ServerScriptService.Script.GroupService2:32
ServerScriptService.Script.GroupService2.Promise:172 function runExecutor
ServerScriptService.Script.GroupService2.Promise:299

Promise created at:

ServerScriptService.Script.GroupService2:25 function GetGroup
ServerScriptService.Script:2


ServerScriptService.Script.GroupService2:25 function GetGroup
ServerScriptService.Script:2
-- Server Script
local GroupService = require(script.GroupService2)
local groupId = xxxxxxx (the number)
GroupService:GetGroup(groupId)
1 Like

Hiya @robloxjw02

Try this!

GroupService:GetGroup(groupId):andThen(function(Group)
    print(Group)
end)

Alternatively use:

local SuccessBool, Group = GroupService:GetGroup(groupId):await()

I also fixed the promise rejection error. It should all now work. I didn’t really test this module much before releasing as it’s pretty simple and straight forward, so I expected a bug or two.

(redownload from github)

Sorry for the inconvenience and thanks for using my module!

1 Like

This works good now. Yeah this module just make it more simple, using group service is simple now you make it more simple. But what GroupObjectSettings (parameter) in your module, can you give me an example?

1 Like

Ofcourse I can.

See as an example, if you don’t want events to initialise on your GroupObject simply disable it when getting your group like this!

G2:GetGroup(0, {["Events"] = false}):andThen(function(Group)
	
end)

Currently there isn’t a huge list of group object settings as the module is in early stages of development.

To view all the current object settings run this code when you require the module:

print(GS2.types.GroupObject)

Moving on from this…

I just found another bug and fixed it immediately, it should be published to github now too. If you experience issues with :GetUserGroups() just reinstall the module from github!

Thanks :slight_smile:

Why the latest one it got nil result

I can’t replicate this bug.

G2:GetGroup(3594473):andThen(function(Group)
	print(Group)
end)

image

I really like the impleementation of promise. Buuut one thing
can you create roles with this?

1 Like

How do you mean? :slight_smile:

More elaboration please!

Like, using roblosecurity cookie, this owner will create a role

Hiya.

I have thought about adding API features, essentially requesting to a VPS, adding an option to self host or run it as a service is still under review.

But yes, external group features are planned for this module. such as ranking, group shouts, discord integration.

I hope this answers your question.