One key -> "Save as Local Plugin..."

Plugin: Select Object By Path → Get Plugin

Set path to the object that you want to select:


Set shortcut for the plugin action:


Set shortcut for “Save as Local Plugin…”


Use macro/hotkey software of your choice to fire the shortcuts in order. I use autohotkey:


#SingleInstance force
#Persistent
#NoEnv
SetTitleMatchMode, 2
SendMode Input

F16:: SaveRobloxStudioPlugin()

SaveRobloxStudioPlugin()
{
    IfWinExist ahk_exe RobloxStudioBeta.exe     ; Check if ahk_exe RobloxStudioBeta.exe is running
    {
        WinActivate, Roblox Studio
        WinWaitActive, Roblox Studio

        Send { F15 }                            ; Studio hotkey to select the object by path (set path in plugin)
        Sleep 300
        Send { F14 }                       		; Studio "Save as Local Plugin..." hotkey
        WinWaitActive, Save As Plugin, , 0.5    ; Wait 0.5 seconds for "Save As Plugin" window
        if ErrorLevel                           ; If the window didn't appear (timeout occurred)
        {
            return                              ; Stop
        }
        Send { Enter }                          ; Press Enter to confirm the save
        Sleep 200
        Send y                                  ; Confirm overwriting
    }
}
return

3 Likes