How do you use the Region3 functon?
I'm trying to create my own stamper, and I need an Region3 argument for the area to stamp in. I'm stuck on this part. Anyone know to use Region3? Thanks.
Below is my custom stamper tool code.
01 | local RbxStamper = LoadLibrary( "RbxStamper" ) |
02 | local InsertService = game:GetService( "InsertService" ) |
04 | local dispenser = game.workspace.Part |
05 | local player = game.Players.LocalPlayer |
06 | local mouse = player:GetMouse() |
08 | local regionModule = require(game.workspace.RegionModule) |
14 | for _, base in pairs (game.workspace [ "Building Zones" ] :GetChildren()) do |
15 | if base:IsA( "Model" ) and base.Player.Value = = player.Name then |
21 | function setupDragger() |
24 | stampControl = RbxStamper.SetupStamperDragger(dispenser,mouse, nil ,Region 3. new( Vector 3. new( 1 , 1 , 1 ), Vector 3. new( 9 , 9 , 9 ) )) |
26 | warn( "Cannot find your building base." ) |
33 | stampControl.Stamped.Changed:connect( function (value) |
34 | stampControl.ReloadModel() |
38 | script.Parent.Equipped:connect( function () |
45 | script.Parent.Unequipped:connect( function () |
46 | if stampControl then stampControl.Destroy() pBase = nil end |