Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Pages: How do I Use Them?

Asked by
Minifig77 190
9 years ago
I'm making a utility that, when someone that's not in a specific group joins the server, all of the other players are notified. Another function of this utility would send out a bright red notification whenever someone from an enemy group joined the game. Originally, to configure this, I was going to add a manual control where one could set the enemy groups.

However, when looking through ROBLOX's changelogs, **I found out that there was a service called *GroupService.* I also noticed that there was a method called *GetEnemiesAsync.*** If this was a way to automatically get a group's enemies, it would make things a whole lot easier.

I found out that *GetEnemiesAsync* returned an object called *Pages.* However, I don't know very much about them, and I couldn't find anything helpful as to using them on the Wiki.

I tried setting up a test in Studio to see if it could work. From what I'd read, the method would return a table. So, in the command bar, I did:

Though, every address in the table would return nil. (Yes, the group ID that I used had enemies.)

Simply put, **How do I retrieve values from a *Pages* object?**

Answer this question