Let's make the toolbox a better place in roblox studio
In this video. you'll learn in depth how to make a simple yet effective toolbox model cleaner. that will clean all the scripts and viruses inside it with only 1 click! Now you can use whatever map or building you want from the toolbox without worrying about hidden scripts!! And the best thing is that you'll make it yourself so you don't install someone else plugin that can contain viruses itself!
ROBLOX API: https://developer.roblox.com/en-us/api-reference/class/Plugin
Install the toolbox cleaner plugin that we created in the video: https://www.roblox.com/library/5750695133/Toolbox-Cleaner-Plugin
Install the toolbox cleaner plugin toolbox model that we created in the video (.RBXM): https://www.roblox.com/library/5750764102/CleanerPlugin
Material Icons (100 Robux by ZacBytes): https://www.roblox.com/library/3604859495/Material-Icons
Source Code:
local SelectionService = game:GetService("Selection") local ChangeHistoryService = game:GetService("ChangeHistoryService")
local Toolbar = plugin:CreateToolbar("ToolboxCleaner") local CleanScriptsButton = Toolbar:CreateButton("CleanScripts", "Select a model to clean all it's descendant scripts", "rbxassetid://3610247188")
local function CleanScriptsButtonClicked() local Selection = SelectionService:Get() for i, SelectedInstance in pairs(Selection) do ChangeHistoryService:SetWaypoint("Scripts cleaning") for i, element in pairs(SelectedInstance:GetDescendants()) do if element:IsA("BaseScript") then element:Destroy() end end ChangeHistoryService:SetWaypoint("Scripts cleaned") end end
CleanScriptsButton.Click:Connect(CleanScriptsButtonClicked)
My discord server (Creative Brains): https://discord.gg/mxqM4hf
Support me by donating in PayPal so i can make videos more frequently! https://www.paypal.com/paypalme/CodesOtaku
Thank you for watching! ... https://www.youtube.com/watch?v=dA647-8bFS0
121146101 Bytes