Advertisement
CaliberMag

Untitled

Feb 6th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. getgenv().On = false
  4. LastSlot = "S20"
  5. Key = "J"
  6.  
  7. Slots = {
  8. ["S01"] = false;
  9. ["S02"] = false;
  10. ["S03"] = false;
  11. ["S04"] = false;
  12. ["S05"] = false;
  13. ["S06"] = false;
  14. ["S07"] = false;
  15. ["S08"] = true;
  16. ["S09"] = true;
  17. ["S10"] = true;
  18. ["S11"] = true;
  19. ["S12"] = true;
  20. ["S13"] = true;
  21. ["S14"] = true;
  22. ["S15"] = true;
  23. ["S16"] = true;
  24. ["S17"] = true;
  25. ["S18"] = true;
  26. ["S19"] = true;
  27. ["S20"] = true;
  28. }
  29.  
  30. --------------------------------------------------------------------------
  31.  
  32. local plr = game:GetService'Players'.LocalPlayer
  33.  
  34. spawn(function()
  35. function SellItems()
  36. if plr.Inventory[LastSlot].Value ~= 0 then
  37. for i = 1,25 do
  38. wait(.03)
  39. for i,v in pairs(plr.Inventory:GetChildren()) do
  40. if Slots[v.Name] then
  41. game:GetService'ReplicatedStorage'.Events.SellShop:FireServer(v.Value, workspace.Shops.Sellers, 1)
  42. end
  43. end
  44. end
  45. end
  46. end
  47.  
  48. function TpSell()
  49. if plr.Inventory[LastSlot].Value ~= 0 then
  50. plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(713.500122, 235.300568, -482.247925)
  51. wait(.15)
  52. plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(12531.5635, 251.514069, -2355.00903)
  53. end
  54. end
  55. end)
  56. ---
  57.  
  58. spawn(function()
  59. game:GetService'UserInputService'.InputBegan:connect(function(key, gameProcessedEvent)
  60. if key.KeyCode == Enum.KeyCode[Key] then
  61. if getgenv().On then
  62. getgenv().On = false
  63. elseif not getgenv().On then
  64. getgenv().On = true
  65. end
  66. end
  67. end)
  68. end)
  69. ---
  70.  
  71. spawn(function()
  72. while wait() do
  73. if getgenv().On then
  74. TpSell()
  75. SellItems()
  76. end
  77. end
  78. end)
  79. ---
  80.  
  81. local Pliyer = game.Players.LocalPlayer
  82.  
  83. while wait(0.2) do
  84. for i,v in pairs(workspace.Guttermouth.GuttermouthRoom4.Monsters:GetChildren()) do
  85. if (v:FindFirstChildOfClass("Humanoid") and v ~= Pliyer.Character) then
  86. v.Humanoid.Health = 0
  87. end
  88. end
  89. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement