SeanBlox

cash grabber script

Apr 24th, 2025 (edited)
1,783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. -- GUI + Grab + Anti-AFK + Anti-Lag Toggle Script (LocalScript)
  2.  
  3. local Players = game:GetService("Players")
  4. local LocalPlayer = Players.LocalPlayer
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local GrabButton = Instance.new("TextButton")
  9. local AntiAFKButton = Instance.new("TextButton")
  10. local AntiLagButton = Instance.new("TextButton")
  11. local CloseButton = Instance.new("TextButton")
  12. local CreditLabel = Instance.new("TextLabel")
  13.  
  14. local isGrabbing = false
  15. local isAntiAFK = false
  16. local isAntiLag = false
  17. local grabThread = nil
  18. local afkThread = nil
  19.  
  20. ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  21. ScreenGui.Name = "CashGrabGUI"
  22. ScreenGui.ResetOnSpawn = false
  23.  
  24. MainFrame.Name = "MainFrame"
  25. MainFrame.Parent = ScreenGui
  26. MainFrame.Size = UDim2.new(0, 180, 0, 190)
  27. MainFrame.Position = UDim2.new(0, 30, 0, 100)
  28. MainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  29. MainFrame.BorderSizePixel = 0
  30. MainFrame.Active = true
  31. MainFrame.Draggable = true
  32.  
  33. GrabButton.Parent = MainFrame
  34. GrabButton.Size = UDim2.new(0, 140, 0, 35)
  35. GrabButton.Position = UDim2.new(0, 20, 0, 25)
  36. GrabButton.Text = "Grab Cash"
  37. GrabButton.BackgroundColor3 = Color3.fromRGB(35, 200, 100)
  38. GrabButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  39. GrabButton.Font = Enum.Font.SourceSansBold
  40. GrabButton.TextSize = 18
  41.  
  42. AntiAFKButton.Parent = MainFrame
  43. AntiAFKButton.Size = UDim2.new(0, 140, 0, 35)
  44. AntiAFKButton.Position = UDim2.new(0, 20, 0, 70)
  45. AntiAFKButton.Text = "Anti-AFK"
  46. AntiAFKButton.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
  47. AntiAFKButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. AntiAFKButton.Font = Enum.Font.SourceSansBold
  49. AntiAFKButton.TextSize = 18
  50.  
  51. -- Anti-Lag Toggle Button
  52. AntiLagButton.Parent = MainFrame
  53. AntiLagButton.Size = UDim2.new(0, 140, 0, 30)
  54. AntiLagButton.Position = UDim2.new(0, 20, 0, 115)
  55. AntiLagButton.Text = "Enable Anti-Lag"
  56. AntiLagButton.BackgroundColor3 = Color3.fromRGB(255, 180, 50)
  57. AntiLagButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. AntiLagButton.Font = Enum.Font.SourceSansBold
  59. AntiLagButton.TextSize = 16
  60.  
  61. -- Credit Label
  62. CreditLabel.Parent = MainFrame
  63. CreditLabel.Size = UDim2.new(0, 160, 0, 20)
  64. CreditLabel.Position = UDim2.new(0, 10, 0, 155)
  65. CreditLabel.Text = "YT:SeanBlox"
  66. CreditLabel.BackgroundTransparency = 1
  67. CreditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. CreditLabel.Font = Enum.Font.SourceSans
  69. CreditLabel.TextSize = 14
  70.  
  71. -- Close Button
  72. CloseButton.Parent = MainFrame
  73. CloseButton.Size = UDim2.new(0, 20, 0, 20)
  74. CloseButton.Position = UDim2.new(1, -25, 0, 5)
  75. CloseButton.Text = "X"
  76. CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
  77. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. CloseButton.Font = Enum.Font.SourceSansBold
  79. CloseButton.TextSize = 14
  80.  
  81. -- Grab Cash Logic
  82. GrabButton.MouseButton1Click:Connect(function()
  83. isGrabbing = not isGrabbing
  84. if isGrabbing then
  85. GrabButton.Text = "Stop Grab"
  86. grabThread = task.spawn(function()
  87. while isGrabbing do
  88. local args = { [1] = "150kM" }
  89. game:GetService("ReplicatedStorage"):WaitForChild("Rewards"):WaitForChild("Claim"):FireServer(unpack(args))
  90. task.wait()
  91. end
  92. end)
  93. else
  94. GrabButton.Text = "Grab Cash"
  95. end
  96. end)
  97.  
  98. -- Anti-AFK Logic
  99. AntiAFKButton.MouseButton1Click:Connect(function()
  100. isAntiAFK = not isAntiAFK
  101. if isAntiAFK then
  102. AntiAFKButton.Text = "Stop AFK"
  103. afkThread = task.spawn(function()
  104. local vu = game:GetService("VirtualUser")
  105. LocalPlayer.Idled:Connect(function()
  106. if isAntiAFK then
  107. vu:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
  108. task.wait(1)
  109. vu:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
  110. end
  111. end)
  112. end)
  113. else
  114. AntiAFKButton.Text = "Anti-AFK"
  115. end
  116. end)
  117.  
  118. -- Anti-Lag Functions
  119. local function removeEffects()
  120. for _, obj in ipairs(workspace:GetDescendants()) do
  121. if obj:IsA("ParticleEmitter") or obj:IsA("Trail") or obj:IsA("Smoke") or obj:IsA("Fire") then
  122. obj.Enabled = false
  123. elseif obj:IsA("Explosion") then
  124. obj:Destroy()
  125. end
  126. end
  127. end
  128.  
  129. local function lowGraphics()
  130. settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
  131. end
  132.  
  133. local function removeTextures()
  134. for _, obj in ipairs(workspace:GetDescendants()) do
  135. if obj:IsA("Texture") or obj:IsA("Decal") then
  136. obj:Destroy()
  137. end
  138. end
  139. end
  140.  
  141. local function simplifyLighting()
  142. local lighting = game:GetService("Lighting")
  143. lighting.GlobalShadows = false
  144. lighting.FogEnd = 1000000
  145. lighting.Brightness = 1
  146. end
  147.  
  148. local function stopAllAnimations()
  149. for _, model in ipairs(workspace:GetDescendants()) do
  150. if model:IsA("Model") then
  151. local humanoid = model:FindFirstChildOfClass("Humanoid")
  152. if humanoid then
  153. for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
  154. track:Stop()
  155. end
  156. end
  157. end
  158. end
  159. end
  160.  
  161. local function blockAnimationLoading()
  162. for _, character in ipairs(workspace:GetDescendants()) do
  163. local animator = character:FindFirstChildWhichIsA("Animator", true)
  164. if animator then
  165. animator.AnimationPlayed:Connect(function(track)
  166. track:Stop()
  167. end)
  168. end
  169. end
  170. end
  171.  
  172. -- Anti-Lag Toggle Logic
  173. AntiLagButton.MouseButton1Click:Connect(function()
  174. isAntiLag = not isAntiLag
  175. if isAntiLag then
  176. AntiLagButton.Text = "Anti-Lag ON"
  177. removeEffects()
  178. removeTextures()
  179. simplifyLighting()
  180. lowGraphics()
  181. stopAllAnimations()
  182. blockAnimationLoading()
  183. else
  184. AntiLagButton.Text = "Enable Anti-Lag"
  185. end
  186. end)
  187.  
  188. -- Close Logic
  189. CloseButton.MouseButton1Click:Connect(function()
  190. isGrabbing = false
  191. isAntiAFK = false
  192. if grabThread then coroutine.close(grabThread) end
  193. if afkThread then coroutine.close(afkThread) end
  194. ScreenGui:Destroy()
  195. end)
Advertisement
Add Comment
Please, Sign In to add comment