Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --XelXel
- file = game:HttpGet("https://pastebin.com/raw/T2DqUf4y", true)
- file = file:gsub("\n", "\0")
- data = {}
- for line in file:gmatch("%Z+") do
- local name = line:match("Name = (.-),")
- local id = line:match("ID = (%d+),")
- local price = line:match("Price = (%d+)")
- item = {Name = name, ID = tonumber(id), Price = tonumber(price)}
- if item.Price < 1 then break end --Change number to suit your needs
- table.insert(data, item)
- end
- player = game.Players.LocalPlayer
- inventory = player.Inventory
- root = player.Character.HumanoidRootPart
- active = true
- spawn(function()
- while true do
- for _, item in pairs(data) do
- while true do
- while not active do wait() end
- local object = workspace.Spawners:FindFirstChild(item.Name, true)
- if not object then break end
- root.CFrame = object.HitBox.CFrame
- wait(.1)
- object.InteractEvent:FireServer()
- wait(.05)
- object.InteractEvent:FireServer()
- wait(.05)
- object.InteractEvent:FireServer()
- root.CFrame = CFrame.new(1105, 93, -3135)
- wait(.2)
- game.ReplicatedStorage.Events.SellShop:FireServer(item.ID, Workspace.Shops.SellersTwo, 1)
- end
- end
- wait(4)
- end
- end)
- UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(input, processed)
- if input.KeyCode == Enum.KeyCode.LeftControl then
- active = not active
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement