This is a package that allows you to define regions in an experience out of BaseParts of any shape or size.
local region = ComplexRegions.createRegion(workspace.Region, {
Players.LocalPlayer.Character
})
region.entered:Connect(function(instance: Instance)
print(instance, "entered the region")
end)
region.left:Connect(function(instance: Instance)
print(instance, "left the region")
end)
Installing the package is quick and easy whether you use a package manager like Wally or work directly in Studio.
Add the following to your wally.toml
and run wally install
to download the package.
[dependencies]
ComplexRegions = "vocksel/[email protected]"
Make sure the resulting Packages
folder is synced into your experience using a tool like Rojo.
- Download a copy of the rbxm from the releases page under the Assets section.
- Drag and drop the file into Roblox Studio to add it to your experience.
You can find the documentation here.
See the contributing guide.