Limited Simulator 2
4.3k Views
15 Executions

autobuy

Limited Simulator 2
fvvw
fvvwPublished 25
4 years ago
Please login to perform these actions:

autobuy is a Limited Simulator 2 script for Roblox, uploaded to ScriptBlox on Aug 27, 2022.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

you have to click on the item for it to buy

Updates

  1. Script edited: Create script

View Raw
local plr = game.Players.LocalPlayer

local holder = plr.PlayerGui.Notifications.NotifHolder
local robux = plr.PlayerRobux

local s, e = pcall(function()
   _G.magnet:Disconnect()
   _G.magnet = nil
end)

if e == nil then
   warn("AUTOBUY WAS RESET")
else
   warn("AUTOBUY WAS LOADED")
end

_G.magnet = holder.ChildAdded:Connect(function(v)
   if v:WaitForChild("Holder"):WaitForChild("PurchaseDecor"):WaitForChild("TextLabel").Text ~= "New Item!" then
       return
   end
   
   local item = plr.PlayerGui.Main.Frames.Store.ItemPreview.ItemDetails
   local button = item.Item.Purchase.TextButton
   local yes = item.Parent.Prompt.MainPrompt.Yes
   local stock = string.gsub(v:WaitForChild("Holder"):WaitForChild("Stock").Text, "%D", "")
   
   repeat task.wait() until item.Item.Stock.TextLabel.Text:find(stock)
   
   local split = button.Text:split("$")        
   local num = split[2]
   local split = num:split(",")
   local required
   
   for i,v in pairs(split) do
       if required == nil then
           required = v
       else
           required = required .. v
       end
   end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!