Advertisement
Guest User

2

a guest
Feb 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. --XelXel
  2. file = game:HttpGet("https://pastebin.com/raw/T2DqUf4y", true)
  3. file = file:gsub("\n", "\0")
  4. data = {}
  5.  
  6. for line in file:gmatch("%Z+") do
  7. local name = line:match("Name = (.-),")
  8. local id = line:match("ID = (%d+),")
  9. local price = line:match("Price = (%d+)")
  10. item = {Name = name, ID = tonumber(id), Price = tonumber(price)}
  11. if item.Price < 1 then break end --Change number to suit your needs
  12. table.insert(data, item)
  13. end
  14.  
  15. player = game.Players.LocalPlayer
  16. inventory = player.Inventory
  17. root = player.Character.HumanoidRootPart
  18. active = true
  19.  
  20. spawn(function()
  21. while true do
  22. for _, item in pairs(data) do
  23. while true do
  24. while not active do wait() end
  25. local object = workspace.Spawners:FindFirstChild(item.Name, true)
  26. if not object then break end
  27. root.CFrame = object.HitBox.CFrame
  28. wait(.1)
  29. object.InteractEvent:FireServer()
  30. wait(.05)
  31. object.InteractEvent:FireServer()
  32. wait(.05)
  33. object.InteractEvent:FireServer()
  34. root.CFrame = CFrame.new(1105, 93, -3135)
  35. wait(.2)
  36. game.ReplicatedStorage.Events.SellShop:FireServer(item.ID, Workspace.Shops.SellersTwo, 1)
  37. end
  38. end
  39. wait(4)
  40. end
  41. end)
  42.  
  43. UIS = game:GetService("UserInputService")
  44.  
  45. UIS.InputBegan:connect(function(input, processed)
  46. if input.KeyCode == Enum.KeyCode.LeftControl then
  47. active = not active
  48. end
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement