Programming Tools
Programming Tools is a plugin based off of IFTTT. The plugin allows the user to create scripts that interact with objects. Below is a demonstration on the plugin:
We need you to create more triggers!
Here is an example of a trigger:
-- "Touched"
["Part Touched"] = {
["Name"] = "Part Touched",
["AllowedInstances"] = {"BasePart"},
["Start"] = "local Part = " .. Part,
["Middle"] = "\n\n" .. "Part.Touched:Connect(function(Hit)",
["End"] = "end)"
},
Current list of triggers
Triggers.AvailableTriggers = {
-- "Touched"
["Part Touched"] = {
["Name"] = "Part Touched",
["AllowedInstances"] = {"BasePart"},
["Start"] = "local Part = " .. Part,
["Middle"] = "\n\n" .. "Part.Touched:Connect(function(Hit)",
["End"] = "end)"
},
-- "ClickDetector:MouseClick"
["ClickDetector Clicked"] = {
["Name"] = "ClickDetector Clicked",
["AllowedInstances"] = {"ClickDetector"},
["Start"] = "local ClickDetector = " .. Part,
["Middle"] = "\n\n" .."ClickDetector.MouseClick:Connect(function(Player)",
["End"] = "end)"
},
-- "MouseButton1Click"
["GuiButton Clicked"] = {
["Name"] = "GuiButton Clicked",
["AllowedInstances"] = {"TextButton", "ImageButton"},
["Start"] = "local Button = " .. Part,
["Middle"] = "\n\n" .. "Button.MouseButton1Click:Connect(function()",
["End"] = "end)"
},
}
To create a new trigger, use the following format:
["GuiButton Clicked"] = { -- Name of trigger
["Name"] = "GuiButton Clicked", -- Name of trigger
["AllowedInstances"] = {"TextButton", "ImageButton"}, -- Instance allowed
["Start"] = "local Button = " .. Part,
["Middle"] = "\n\n" .. "Button.MouseButton1Click:Connect(function()",
-- ^^ This should be the first line of the function
-- And make sure to include what it returns in the (function(here)
["End"] = "end)"
},
Actions
Here is an example of an action:
local Action = {}
Action.Id = "Respawn Character" -- Name of action
Action.AllowedTriggers = {"ClickDetector Clicked"} -- Which triggers the action is compatible with
Action.Script = "Player:LoadCharacter()" -- The action itself. This exact string will be in the script.
Action.ScriptLocation = game.ServerScriptService -- Location of the script
return Action
Contribute here: https://github.com/UndecidedSource/Programming-Tools/blob/master/README.md