0% found this document useful (0 votes)
7 views1 page

Plugin

The document describes creating a toolbar plugin button that executes the selected script as a plugin security script when clicked by printing the identity and loading and executing the source of the selected script.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Plugin

The document describes creating a toolbar plugin button that executes the selected script as a plugin security script when clicked by printing the identity and loading and executing the source of the selected script.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

if script:IsDescendantOf(game) then return end

local PluginToolbar = plugin:CreateToolbar('Executor')


local ExecuteAsPlugin = PluginToolbar:CreateButton('Execute Selected', 'executes
the selected script as a plugin security script', 'rbxassetid://7072977798')

ExecuteAsPlugin.ClickableWhenViewportHidden = true
ExecuteAsPlugin.Click:Connect(function()
printidentity()

local Selected = game:GetService('Selection'):Get()[1]


if not Selected then
warn'nothing selected bozo'

return
end

local Executable = loadstring(Selected.Source)

setfenv(Executable, getfenv())

Executable()
end)

You might also like