NukeVsCity

Auto sell for yba

Jun 9th, 2021 (edited)
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. _G.autosell = true -- change it to true in case you want to enable it
  2. _G.ItemsToSell = {
  3. ["Rokakaka"] = true, -- set to false to the items you don't want | this must be in autoexec folder
  4. ["Gold Coin"] = false,
  5. ["Mysterious Arrow"] = true,
  6. ["Diamond"] = false ,
  7. ["Zepellin's Headband"] = false ,
  8. ["Quinton's Glove"] = false,
  9. ["Ancient Scroll"] = false ,
  10. ["DEO's Diary"] = false ,
  11. ["Steel Ball"] = false,
  12. ["Rib Cage of The Saint's Corpse"] = false ,
  13. ["Pure Rokakaka"] = false ,
  14. ["Stone Mask"] = false
  15. }
  16.  
  17. local function start()
  18. fireproximityprompt(workspace.Dialogues["ShiftPlox, The Travelling Merchant"].ProximityPrompt, 0)
  19. wait()
  20. end
  21. local function sellitem()
  22. local A_1 = "EndDialogue"
  23. local A_2 =
  24. {
  25. ["NPC"] = "Merchant",
  26. ["Option"] = "Option2",
  27. ["Dialogue"] = "Dialogue1"
  28. }
  29. local Event = game:GetService("Players").LocalPlayer.Character.RemoteEvent
  30. Event:FireServer(A_1, A_2)
  31.  
  32. local A_1 = "EndDialogue"
  33. local A_2 =
  34. {
  35. ["NPC"] = "Merchant",
  36. ["Option"] = "Option2",
  37. ["Dialogue"] = "Dialogue5"
  38. }
  39. local Event = game:GetService("Players").LocalPlayer.Character.RemoteEvent
  40. Event:FireServer(A_1, A_2)
  41. end
  42. while _G.autosell do wait(1) pcall(function()
  43. if _G.autosell == false then return end
  44. local plr = game:GetService("Players").LocalPlayer
  45. if plr and plr.Character then
  46. for i ,v in pairs( _G.ItemsToSell) do
  47. if i and v == true then
  48. plr.Character:FindFirstChild("Humanoid"):EquipTool(plr.Backpack:FindFirstChild(i))
  49. start()
  50. sellitem()
  51. end
  52. end
  53. end
  54. end )
  55. end
Add Comment
Please, Sign In to add comment