How do you use arguments/variables in a location?
I am trying to make a plugin but it gives an error that says: "Mat" is not a valid Enum material. I have tried parentheses and quotations, parentheses, and quotations.
This is the code
01 | local plugin = PluginManager():CreatePlugin() |
02 | local toolbar = plugin:CreateToolbar( "Filling tools" ) |
03 | local button = toolbar:CreateButton( |
13 | _G.Changeblock = function (Mat) |
14 | Fillblock = Enum.Material.Mat |
18 | button.Click:connect( function () |
22 | print ( "Welcome to Warman13579's Fill plugin! Type in _G.help() to see the commands" ) |
24 | print ( "Select your material! The list of current materials is: Slate, Brick, WoodPlanks, Sand, Water, and concrete. Type _G.Changeblock(water) (water in quotations) for example." ) |
27 | plugin:Activate( false ) |
NOTE: Some functions are not implemented like _G.Help()