Advertisement
SigmaBoy456

Private GUI 4 Bing

Sep 19th, 2024 (edited)
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local localroot = character:WaitForChild("HumanoidRootPart")
  4. local humanoid = character:WaitForChild("Humanoid")
  5.  
  6. local function noclip()
  7. for _, v in pairs(character:GetDescendants()) do
  8. if v:IsA("BasePart") and v.CanCollide then
  9. v.CanCollide = false
  10. end
  11. end
  12. end
  13.  
  14. -- Step 1: Go to the NPC to get 'Ya' if not present in the backpack
  15. local function GetBox()
  16. for _, v in pairs(game.Workspace["บ้านเมือง"]["ส่ง"]:GetDescendants()) do
  17. if v:IsA("BasePart") and v.Name == "ToolGiver" then
  18. local prox = v:FindFirstChildOfClass("ProximityPrompt")
  19. if prox then
  20. localroot.CFrame = v.CFrame * CFrame.new(0, 0, 5)
  21. wait(6)
  22. fireproximityprompt(prox)
  23. wait(5)
  24. end
  25. end
  26. end
  27. end
  28.  
  29. local function GetYa()
  30. for _, v in pairs(game.Workspace["ส่ง"]:GetDescendants()) do
  31. if v:IsA("BasePart") and v.Name == "ToolGiver" then
  32. local prox = v:FindFirstChildOfClass("ProximityPrompt")
  33. if prox then
  34. localroot.CFrame = v.CFrame * CFrame.new(0, 0, 5)
  35. wait(6)
  36. fireproximityprompt(prox)
  37. wait(5)
  38. end
  39. end
  40. end
  41. end
  42.  
  43. -- Step 2: Equip 'Ya' if it's in the backpack but not equipped
  44. local function EquipBoxOrYa()
  45. local backpack = player.Backpack
  46. for _, v in pairs(backpack:GetChildren()) do
  47. if v:IsA("Tool") and (v.Name == "Box" or v.Name == "Ya") and v.Parent ~= character then
  48. v.Parent = character
  49. end
  50. end
  51. end
  52.  
  53. -- Step 3: Go to NPC and sell 'Ya'
  54. local function FarmBox()
  55. for _, v in pairs(game.Workspace["บ้านเมือง"]["รับ"]:GetDescendants()) do
  56. if v:IsA("BasePart") and v.Name == "ToolTaker" then
  57. local prox = v:FindFirstChildOfClass("ProximityPrompt")
  58. if prox then
  59. localroot.CFrame = v.CFrame * CFrame.new(0, 0, 5)
  60. wait(6)
  61. fireproximityprompt(prox)
  62. wait(5)
  63. end
  64. end
  65. end
  66. end
  67.  
  68. local function FarmYa()
  69. for _, v in pairs(game.Workspace["งาน"]["รับ"]:GetDescendants()) do
  70. if v:IsA("BasePart") and v.Name == "ToolTaker" then
  71. local prox = v:FindFirstChildOfClass("ProximityPrompt")
  72. if prox then
  73. localroot.CFrame = v.CFrame * CFrame.new(0, 0, 5)
  74. wait(6)
  75. fireproximityprompt(prox)
  76. wait(5)
  77. end
  78. end
  79. end
  80. end
  81.  
  82. -- Function to perform actions with the target models
  83. local function P_X(target)
  84. local targetname = target
  85. for _, v in pairs(game.Workspace["เมือง"][tostring(targetname)]:GetDescendants()) do
  86. if v:IsA("MeshPart") and v.Name == "engine" then
  87. local prox = v:FindFirstChildOfClass("ProximityPrompt")
  88. if prox then
  89. localroot.CFrame = v.CFrame
  90. wait(6)
  91. fireproximityprompt(prox)
  92. wait(5)
  93. end
  94. end
  95. end
  96. end
  97.  
  98. -- User Interface and Loop Control
  99. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/lime"))()
  100. local w = Library:Window("4 Bing AutoFarm")
  101.  
  102. -- AutoFarm for target locations
  103. local isOn = false
  104. w:Toggle("AutoFarm", function(v)
  105. isOn = v
  106. if isOn then
  107. while isOn do
  108. noclip()
  109. P_X("โรงเรียนกนก")
  110. wait(0.1)
  111. P_X("ราชสิทธาราม")
  112. wait(0.1)
  113. P_X("ปทุม")
  114. wait(0.1)
  115. P_X("รร ประชาชื่น")
  116. wait(0.1)
  117. P_X("โรงเรียนบู")
  118. wait(0.1)
  119. P_X("อิน")
  120. if not isOn or humanoid.Health <= 0 then
  121. break
  122. end
  123. end
  124. end
  125. end)
  126.  
  127. -- AutoFarm 'Ya'
  128. local ToggleOn = false
  129. w:Toggle("AutoFarm Box", function(state)
  130. ToggleOn = state
  131. if ToggleOn then
  132. while ToggleOn do
  133. noclip()
  134. wait(0.1)
  135. GetBox() -- Step 1: Get 'Ya'
  136. wait(0.1)
  137. EquipBoxOrYa() -- Step 2: Equip 'Ya'
  138. wait(0.1)
  139. FarmBox() -- Step 3: Sell 'Ya'
  140. wait(0.1)
  141. if not ToggleOn or humanoid.Health <= 0 then
  142. break
  143. end
  144. end
  145. end
  146. end)
  147.  
  148. local No = false
  149. w:Toggle("Farm Ya", function(yes)
  150. No = yes
  151. if No then
  152. while No do
  153. noclip()
  154. wait(0.1)
  155. GetYa()
  156. wait(0.1)
  157. EquipBoxOrYa()
  158. wait(0.1)
  159. FarmYa()
  160. wait(0.1)
  161. if not No or humanoid.Health <= 0 then
  162. break
  163. end
  164. end
  165. end
  166. end)
  167.  
  168. local All = false
  169.  
  170. w:Toggle("All 3 AutoFarm", function(h)
  171. All = h
  172. if All then
  173. while All do
  174. noclip()
  175. wait(1)
  176. P_X("โรงเรียนกนก")
  177. wait(1)
  178. P_X("ราชสิทธาราม")
  179. wait(1)
  180. P_X("ปทุม")
  181. wait(1)
  182. P_X("รร ประชาชื่น")
  183. wait(1)
  184. P_X("โรงเรียนบู")
  185. wait(1)
  186. P_X("อิน")
  187. wait(1)
  188. GetBox() -- Step 1: Get 'Ya'
  189. wait(1)
  190. EquipBoxOrYa() -- Step 2: Equip 'Ya'
  191. wait(1)
  192. FarmBox()
  193. wait(1)
  194.  
  195. GetYa()
  196. wait(1)
  197. EquipBoxOrYa()
  198. wait(1)
  199. FarmYa()
  200. wait(1)
  201.  
  202. if not All or humanoid.Health <= 0 then
  203. break
  204. end
  205. end
  206. end
  207. end)
  208.  
  209. w:Button("Mod Gun(no explosion)", function()
  210. loadstring(game:HttpGet("https://pastebin.com/raw/yChVKD0k"))()
  211. end)
  212.  
  213. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  214. character = char
  215. localroot = character:WaitForChild("HumanoidRootPart")
  216. humanoid = character:WaitForChild("Humanoid")
  217. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement