xvc200

dont

Sep 28th, 2025
1,703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer;
  2. local rs = game:GetService("RunService")
  3. local uis = game:GetService("UserInputService")
  4. local heartbeatRate = 0.5;
  5. local function safeCall(func, ...)
  6. local s, e = pcall(func, ...)
  7. return s
  8. end;
  9. local function findDescendantIgnoreCase(parent, name)
  10. name = string.lower(name)
  11. for _, obj in pairs(parent:GetDescendants()) do
  12. if string.lower(obj.Name) == name then
  13. return obj
  14. end
  15. end;
  16. return nil
  17. end;
  18. local function hasStealPrompt(parent)
  19. for _, obj in pairs(parent:GetDescendants()) do
  20. if obj:IsA("ProximityPrompt") and string.lower(obj.Name) == "steal" then
  21. return obj
  22. end
  23. end;
  24. return nil
  25. end;
  26. local function fireStealPrompt(prompt)
  27. safeCall(function()
  28. fireproximityprompt(prompt)
  29. end)
  30. end;
  31. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  32. ScreenGui.Name = ""
  33. local MainFrame = Instance.new("Frame", ScreenGui)
  34. MainFrame.Size = UDim2.new(0, 320, 0, 400)
  35. MainFrame.Position = UDim2.new(0, 50, 0, 50)
  36. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  37. MainFrame.BorderSizePixel = 0;
  38. local Scroll = Instance.new("ScrollingFrame", MainFrame)
  39. Scroll.Size = UDim2.new(1, -10, 1, -10)
  40. Scroll.Position = UDim2.new(0, 5, 0, 5)
  41. Scroll.BackgroundTransparency = 1;
  42. Scroll.ScrollBarThickness = 8;
  43. local UIList = Instance.new("UIListLayout", Scroll)
  44. UIList.Padding = UDim.new(0, 5)
  45. UIList.SortOrder = Enum.SortOrder.LayoutOrder;
  46. UIList.HorizontalAlignment = Enum.HorizontalAlignment.Center;
  47. UIList.VerticalAlignment = Enum.VerticalAlignment.Top;
  48. local brainrotFrames = {}
  49. local lastUpdate = 0;
  50. local dragging = false;
  51. local dragInput, dragStart, startPos;
  52. local function updatePosition(input)
  53. local delta = input.Position - dragStart;
  54. MainFrame.Position = UDim2.new(0, startPos.X.Offset + delta.X, 0, startPos.Y.Offset + delta.Y)
  55. end;
  56. safeCall(function()
  57. MainFrame.InputBegan:Connect(function(input)
  58. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  59. dragging = true;
  60. dragStart = input.Position;
  61. startPos = MainFrame.Position;
  62. input.Changed:Connect(function()
  63. if input.UserInputState == Enum.UserInputState.End then
  64. dragging = false
  65. end
  66. end)
  67. end
  68. end)
  69. MainFrame.InputChanged:Connect(function(input)
  70. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  71. dragInput = input
  72. end
  73. end)
  74. uis.InputChanged:Connect(function(input)
  75. if input == dragInput and dragging then
  76. updatePosition(input)
  77. end
  78. end)
  79. end)
  80. local function updateBrainrots()
  81. safeCall(function()
  82. if not workspace:FindFirstChild("Brainrots") then
  83. return
  84. end;
  85. for br, btn in pairs(brainrotFrames) do
  86. if not br or not br.Parent then
  87. btn:Destroy()
  88. brainrotFrames[br] = nil
  89. end
  90. end;
  91. local totalHeight = 0;
  92. for _, candidate in pairs(workspace.Brainrots:GetDescendants()) do
  93. if candidate:IsA("Model") then
  94. local infoGui = findDescendantIgnoreCase(candidate, "infogui")
  95. local frame = infoGui and findDescendantIgnoreCase(infoGui, "frame")
  96. local charCash = frame and findDescendantIgnoreCase(frame, "charcash")
  97. local cashText = charCash and charCash.Text;
  98. local stealPrompt = hasStealPrompt(candidate)
  99. if cashText and stealPrompt then
  100. if not brainrotFrames[candidate] then
  101. local btn = Instance.new("TextButton", Scroll)
  102. btn.Size = UDim2.new(1, -10, 0, 50)
  103. btn.Text = cashText;
  104. btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  105. btn.BorderSizePixel = 0;
  106. btn.TextScaled = true;
  107. btn.MouseButton1Click:Connect(function()
  108. safeCall(function()
  109. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  110. local targetPart = stealPrompt.Parent;
  111. if targetPart and targetPart:IsA("BasePart") then
  112. plr.Character.HumanoidRootPart.CFrame = targetPart.CFrame
  113. task.wait(0.3)
  114. fireStealPrompt(stealPrompt)
  115. task.delay(1.5, function()
  116. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.Bases[game.Players.LocalPlayer:GetAttribute("Base")].Container.Spawn.CFrame
  117. end)
  118. end
  119. end
  120. end)
  121. end)
  122. brainrotFrames[candidate] = btn
  123. else
  124. brainrotFrames[candidate].Text = cashText
  125. end;
  126. totalHeight = totalHeight + 55
  127. end
  128. end
  129. end;
  130. Scroll.CanvasSize = UDim2.new(0, 0, 0, totalHeight)
  131. end)
  132. end;
  133. rs.RenderStepped:Connect(function()
  134. if tick() - lastUpdate >= heartbeatRate then
  135. lastUpdate = tick()
  136. updateBrainrots()
  137. end
  138. end)
Advertisement
Add Comment
Please, Sign In to add comment