2P1ooo1P2

Toilet

Jun 18th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. local _ENV = getfenv() or _ENV
  2. local a,b,c,d,e,f,g,h,i = game, "LocalPlayer", "HumanoidRootPart", "Particles", "MeshPart", "Humanoid", "WalkSpeed", "Auto Grab Toggle", "Made by ScriptBox"
  3.  
  4. local p = a:GetService("Players")[b]
  5. local s = Instance.new("ScreenGui", p:WaitForChild("PlayerGui"))
  6. s.ResetOnSpawn = false
  7. s.Name = "UI_"..math.random(1000,9999)
  8.  
  9. local m = Instance.new("Frame", s)
  10. m.Size = UDim2.new(0,220,0,170)
  11. m.Position = UDim2.new(0,100,0,100)
  12. m.BackgroundColor3 = Color3.fromRGB(25,25,25)
  13. m.Active = true
  14. m.Draggable = true
  15.  
  16. local t = Instance.new("TextLabel", m)
  17. t.Size = UDim2.new(1, 0, 0, 30)
  18. t.Text = h
  19. t.TextColor3 = Color3.new(1,1,1)
  20. t.BackgroundTransparency = 1
  21. t.Font = Enum.Font.SourceSansBold
  22. t.TextSize = 20
  23.  
  24. local u = Instance.new("TextButton", m)
  25. u.Size = UDim2.new(0,180,0,40)
  26. u.Position = UDim2.new(0,20,0,35)
  27. u.Text = "Grab: OFF"
  28. u.BackgroundColor3 = Color3.fromRGB(100,0,0)
  29. u.TextColor3 = Color3.new(1,1,1)
  30. u.Font = Enum.Font.SourceSansBold
  31. u.TextSize = 18
  32.  
  33. local x = Instance.new("TextBox", m)
  34. x.Size = UDim2.new(0,180,0,30)
  35. x.Position = UDim2.new(0,20,0,85)
  36. x.PlaceholderText = "Enter Speed"
  37. x.Text = "16"
  38. x.BackgroundColor3 = Color3.fromRGB(35,35,35)
  39. x.TextColor3 = Color3.new(1,1,1)
  40. x.Font = Enum.Font.SourceSans
  41. x.TextSize = 16
  42.  
  43. local cr = Instance.new("TextLabel", m)
  44. cr.Size = UDim2.new(1,0,0,30)
  45. cr.Position = UDim2.new(0,0,0,130)
  46. cr.Text = i
  47. cr.TextColor3 = Color3.fromRGB(200,200,200)
  48. cr.BackgroundTransparency = 1
  49. cr.Font = Enum.Font.SourceSans
  50. cr.TextSize = 16
  51.  
  52. local q, j, k = false, false, 0.15
  53. local l = 5
  54. local y = tonumber(x.Text) or 16
  55.  
  56. local function getHRP()
  57. local ch = p.Character
  58. return ch and ch:FindFirstChild(c)
  59. end
  60.  
  61. local function run()
  62. if j then return end
  63. j = true
  64. while q do
  65. local hrp = getHRP()
  66. if not hrp then task.wait(0.5) continue end
  67. local F = workspace:FindFirstChild(d)
  68. if not F then task.wait(0.5) continue end
  69. for _,v in pairs(F:GetChildren()) do
  70. if not q then break end
  71. if v:IsA(e) and v:IsDescendantOf(workspace) then
  72. if (v.Position - hrp.Position).Magnitude > l then
  73. v.CFrame = CFrame.new(hrp.Position + Vector3.new(math.random(-2,2), 1, math.random(-2,2)))
  74. end
  75. end
  76. task.wait(k)
  77. end
  78. task.wait(0.3)
  79. end
  80. j = false
  81. end
  82.  
  83. u.MouseButton1Click:Connect(function()
  84. q = not q
  85. u.Text = q and "Grab: ON" or "Grab: OFF"
  86. u.BackgroundColor3 = q and Color3.fromRGB(0,150,0) or Color3.fromRGB(100,0,0)
  87. if q then run() end
  88. end)
  89.  
  90. x.FocusLost:Connect(function()
  91. local n = tonumber(x.Text)
  92. if n then
  93. y = n
  94. local h = p.Character and p.Character:FindFirstChildOfClass(f)
  95. if h then h[g] = y end
  96. end
  97. end)
  98.  
  99. p.CharacterAdded:Connect(function(ch)
  100. ch:WaitForChild(c)
  101. local h = ch:WaitForChild(f)
  102. h[g] = y
  103. if q then run() end
  104. end)
  105.  
  106. task.wait(1)
  107. local h = p.Character and p.Character:FindFirstChildOfClass(f)
  108. if h then h[g] = y end
Advertisement
Add Comment
Please, Sign In to add comment