Advertisement
GamesNando

trade simulator

Jan 13th, 2022
1,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. local mt = getrawmetatable(game)
  2. local backup = mt.__namecall
  3. if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
  4.  
  5. mt.__namecall = newcclosure(function(...)
  6. local method = getnamecallmethod()
  7. local args = {...}
  8. if method == 'FireServer' or method == 'InvokeServer' and tostring(args[1]) == 'AFK' then
  9. args[2] = false
  10. return backup(unpack(args))
  11. end
  12. return backup(...)
  13. end)
  14.  
  15. local ItemsYouWant = {
  16. ['ROBLOX World Tour Hot Air Balloon'] = true,
  17. ['Darkseed the Fallen'] = true,
  18. ['Poisoned Horns of the Toxic Wasteland'] = true
  19. }
  20.  
  21. spawn(function()
  22. while wait(2) do
  23. game.ReplicatedStorage.Events.OpenCase:InvokeServer'Starter'
  24. end
  25. end)
  26.  
  27. spawn(function()
  28. while wait(.1) do
  29. game.ReplicatedStorage.Events.ClientClick:FireServer()
  30. end
  31. end)
  32.  
  33. while wait(30) do
  34. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Inventory.SubInventory.Holder.List:GetChildren()) do
  35. if v:IsA('Frame') and not ItemsYouWant[v.Name] then
  36. pcall(function()
  37. amount, garbage = string.gsub(v.Amount.Text, 'x', '')
  38. game.ReplicatedStorage.Events.InventoryActions:InvokeServer(
  39. 'QuickSell',
  40. v.Name,
  41. tonumber(amount)
  42. )
  43. wait()
  44. end)
  45. end
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement