What does require("@rbx") even do? ( @rbx )

Current Trying to figure out what require(“@rbx”) does and how to use it.
Screenshot 2026-06-10 181805

Answer 2

@ before anything in typescript is when you define a custom path to something, so I guess they implemented the same in roblox

In this case it references the rbx folder under PlatformLibraries

If you try to access it manually you dont have permissions

  18:31:44.889  > print(game.PlatformLibraries)  -  Studio
  18:31:44.897  Current thread doesn't have permissions to access child PlatformLibraries of class DataModel 
2 Likes

8 > print(game.PlatformLibraries) - Studio
15:57:50.803 PlatformLibraries is not a valid member of DataModel “Place1” - Edit
15:57:50.803 Stack Begin - Studio
15:57:50.803 Script ‘CommandBar’, Line 1 - Studio
15:57:50.803 Stack End - Studio
15:57:50.814 PlatformLibraries is not a valid member of DataModel “Place1” - Studio

Lol, Im pretty sure its because its in command bar, but I dont know lol :sob::victory_hand::wilted_flower:

Its only there when you play the game

ohh, lol, yeah, I just realized that

As @happya_x puts it best, it refers to the Roblox platform libraries hidden object. The only object in it currently is the AvatarAbilities module.

how the heck are you guys even seeing that module. Im not even able to see it
Screenshot 2026-06-10 201811

2 Likes

super cool now I have a bit more information on the services too

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.