Hi, I’ve been trying to follow the official Roblox Lua style guide: (Roblox Lua Style guide) and am having an issue with one part in particular under the “Requires” heading when it comes to importing modules from a different package.
I’ve tried accessing the CorePackaging service myself, and then a package “Basics” I have loaded in-game (i.e it’s listed under “Packages” in the game explorer):
local CorePackages = game:GetService("CorePackages")
local Basics = require(CorePackages.Basics)
I forgot to include this in my reply, but if you were to grab Roact for instance, don’t copy the Roact.lua file directly, I believe the main module for Roact is located here
Studio Version Folder → Extra Content → Lua Packages → Packages → _Index → roblox_roact
Same goes for the other packages.
Edit:
Or just grab them directly from the Roblox Github