You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I’m trying to create a plugin that creates a folder in replicated storage and automatically moves all remote events into the folder.
What is the issue? Idk what the issue is, there are no console errors or obvious mistakes to me.
local uselessVariable
-- Create a new toolbar section titled "Custom Script Tools"
local toolbar = plugin:CreateToolbar("Rep Storage Auto Org")
-- Add a toolbar button named "Create Empty Script"
local newFolderButton = toolbar:CreateButton("Organize", "Organize", "rbxassetid://2112677849")
local function onNewScriptButtonClicked()
local newFolder1 = Instance.new("Folder")
newFolder1.Name = "Remote Events"
newFolder1.Parent = game:GetService("ReplicatedStorage")
while uselessVariable == true do
local tables = {}
local othertables = {}
for _, item in pairs(game:GetService("ReplicatedStorage")) do
if item:IsA("RemoteEvent") then
table.Insert(othertables, item)
end
end
if tables[game:GetService("ReplicatedStorage"):FindFirstChildWhichIsA("RemoteEvent")] then
if tables == othertables then
break
end
else
table.Insert(tables, game:GetService("ReplicatedStorage"):FindFirstChildWhichIsA("RemoteEvent"))
end
end
game:GetService("ReplicatedStorage"):FindFirstChildWhichIsA("RemoteEvent")
local newFolder2 = Instance.new("Folder")
newFolder2.Name = "StoredItems"
newFolder2.Parent = game:GetService("ReplicatedStorage")
end
newFolderButton.Click:Connect(onNewScriptButtonClicked)

1 comment
All remote events in the game or just in one service and/or selection?