get paid to paste

Arcade Island: Working Arcade Script | MEMORY...

local SelectedPlayer = "Player3" -- This is which side of the machine you're on
local path = workspace.Machines.MemoryRoyale -- Path to the machine
local cooldown = 0.3 -- The higher the cooldown the more likely it is to be solved with no error

local rawValues = {}

for _, child in ipairs(path.Patterns[SelectedPlayer]:GetChildren()) do
   local name = tonumber(child.Name)
   if name then
       local value = child.Value
       table.insert(rawValues, { name = "Button" .. tostring(name), value = value })
   end
end

table.sort(rawValues, function(a, b)
   return a.name < b.name
end)

for index, data in ipairs(rawValues) do
   local buttonToClick = path[SelectedPlayer].Buttons["Button" .. tostring(data.value)]
   if buttonToClick then
       local clickDetector = buttonToClick:FindFirstChild("ClickDetector")
       if clickDetector then
           task.wait(cooldown)
           fireclickdetector(clickDetector)
       end
   end
end

Pasted: Jul 12, 2023, 11:36:03 pm
Views: 66