MaxproGlitcher

Bring Stuff .lua

Nov 6th, 2024 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. -- Better Bring Parts Ui
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local TweenService = game:GetService("TweenService")
  6. local Workspace = game:GetService("Workspace")
  7.  
  8. -- Create Modern GUI
  9. local Gui = Instance.new("ScreenGui")
  10. Gui.Name = "Gui"
  11. Gui.Parent = gethui()
  12. Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. -- Main Frame
  15. local Main = Instance.new("Frame")
  16. Main.Name = "Main"
  17. Main.Size = UDim2.new(0, 320, 0, 180)
  18. Main.Position = UDim2.new(0.5, -160, 0.5, -90)
  19. Main.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
  20. Main.BorderSizePixel = 0
  21. Main.Active = true
  22. Main.Draggable = true
  23. Main.Parent = Gui
  24.  
  25. -- Add rounded corners
  26. local UICorner = Instance.new("UICorner")
  27. UICorner.CornerRadius = UDim.new(0, 8)
  28. UICorner.Parent = Main
  29.  
  30. -- Title Bar
  31. local Label = Instance.new("TextLabel")
  32. Label.Name = "Label"
  33. Label.Size = UDim2.new(1, 0, 0, 40)
  34. Label.BackgroundColor3 = Color3.fromRGB(40, 40, 45)
  35. Label.BorderSizePixel = 0
  36. Label.Text = "Bring Parts | t.me/arceusxscripts"
  37. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  38. Label.TextSize = 16
  39. Label.Font = Enum.Font.GothamBold
  40. Label.Parent = Main
  41.  
  42. local UICorner_2 = Instance.new("UICorner")
  43. UICorner_2.CornerRadius = UDim.new(0, 8)
  44. UICorner_2.Parent = Label
  45.  
  46. -- Player Input Box
  47. local Box = Instance.new("TextBox")
  48. Box.Name = "Box"
  49. Box.Size = UDim2.new(0.85, 0, 0, 40)
  50. Box.Position = UDim2.new(0.075, 0, 0.3, 0)
  51. Box.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
  52. Box.BorderSizePixel = 0
  53. Box.PlaceholderText = "Player here"
  54. Box.Text = ""
  55. Box.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. Box.PlaceholderColor3 = Color3.fromRGB(180, 180, 180)
  57. Box.TextSize = 14
  58. Box.Font = Enum.Font.GothamSemibold
  59. Box.Parent = Main
  60.  
  61. local UICorner_3 = Instance.new("UICorner")
  62. UICorner_3.CornerRadius = UDim.new(0, 6)
  63. UICorner_3.Parent = Box
  64.  
  65. -- Toggle Button
  66. local Button = Instance.new("TextButton")
  67. Button.Name = "Button"
  68. Button.Size = UDim2.new(0.85, 0, 0, 40)
  69. Button.Position = UDim2.new(0.075, 0, 0.65, 0)
  70. Button.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
  71. Button.BorderSizePixel = 0
  72. Button.Text = "Bring | Off"
  73. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. Button.TextSize = 16
  75. Button.Font = Enum.Font.GothamBold
  76. Button.Parent = Main
  77.  
  78. local UICorner_4 = Instance.new("UICorner")
  79. UICorner_4.CornerRadius = UDim.new(0, 6)
  80. UICorner_4.Parent = Button
  81.  
  82. -- Core Variables
  83. local LocalPlayer = Players.LocalPlayer
  84. local character
  85. local humanoidRootPart
  86.  
  87. -- Toggle Visibility
  88. mainStatus = true
  89. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  90. if input.KeyCode == Enum.KeyCode.RightControl and not gameProcessedEvent then
  91. mainStatus = not mainStatus
  92. Main.Visible = mainStatus
  93. end
  94. end)
  95.  
  96. -- Setup Network
  97. local Folder = Instance.new("Folder", Workspace)
  98. local Part = Instance.new("Part", Folder)
  99. local Attachment1 = Instance.new("Attachment", Part)
  100. Part.Anchored = true
  101. Part.CanCollide = false
  102. Part.Transparency = 1
  103.  
  104. if not getgenv().Network then
  105. getgenv().Network = {
  106. BaseParts = {},
  107. Velocity = Vector3.new(14.46262424, 14.46262424, 14.46262424)
  108. }
  109.  
  110. Network.RetainPart = function(Part)
  111. if Part:IsA("BasePart") and Part:IsDescendantOf(Workspace) then
  112. table.insert(Network.BaseParts, Part)
  113. Part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  114. Part.CanCollide = false
  115. end
  116. end
  117.  
  118. local function EnablePartControl()
  119. LocalPlayer.ReplicationFocus = Workspace
  120. RunService.Heartbeat:Connect(function()
  121. sethiddenproperty(LocalPlayer, "SimulationRadius", math.huge)
  122. for _, Part in pairs(Network.BaseParts) do
  123. if Part:IsDescendantOf(Workspace) then
  124. Part.Velocity = Network.Velocity
  125. end
  126. end
  127. end)
  128. end
  129.  
  130. EnablePartControl()
  131. end
  132.  
  133. local function ForcePart(v)
  134. if v:IsA("BasePart") and not v.Anchored and not v.Parent:FindFirstChildOfClass("Humanoid") and not v.Parent:FindFirstChild("Head") and v.Name ~= "Handle" then
  135. for _, x in ipairs(v:GetChildren()) do
  136. if x:IsA("BodyMover") or x:IsA("RocketPropulsion") then
  137. x:Destroy()
  138. end
  139. end
  140. if v:FindFirstChild("Attachment") then
  141. v:FindFirstChild("Attachment"):Destroy()
  142. end
  143. if v:FindFirstChild("AlignPosition") then
  144. v:FindFirstChild("AlignPosition"):Destroy()
  145. end
  146. if v:FindFirstChild("Torque") then
  147. v:FindFirstChild("Torque"):Destroy()
  148. end
  149. v.CanCollide = false
  150. local Torque = Instance.new("Torque", v)
  151. Torque.Torque = Vector3.new(100000, 100000, 100000)
  152. local AlignPosition = Instance.new("AlignPosition", v)
  153. local Attachment2 = Instance.new("Attachment", v)
  154. Torque.Attachment0 = Attachment2
  155. AlignPosition.MaxForce = math.huge
  156. AlignPosition.MaxVelocity = math.huge
  157. AlignPosition.Responsiveness = 200
  158. AlignPosition.Attachment0 = Attachment2
  159. AlignPosition.Attachment1 = Attachment1
  160. end
  161. end
  162.  
  163. local blackHoleActive = false
  164. local DescendantAddedConnection
  165.  
  166. local function toggleBlackHole()
  167. blackHoleActive = not blackHoleActive
  168. if blackHoleActive then
  169. Button.Text = "Bring Parts | On"
  170. Button.BackgroundColor3 = Color3.fromRGB(0, 180, 0)
  171. for _, v in ipairs(Workspace:GetDescendants()) do
  172. ForcePart(v)
  173. end
  174.  
  175. DescendantAddedConnection = Workspace.DescendantAdded:Connect(function(v)
  176. if blackHoleActive then
  177. ForcePart(v)
  178. end
  179. end)
  180.  
  181. spawn(function()
  182. while blackHoleActive and RunService.RenderStepped:Wait() do
  183. Attachment1.WorldCFrame = humanoidRootPart.CFrame
  184. end
  185. end)
  186. else
  187. Button.Text = "Bring Parts | Off"
  188. Button.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
  189. if DescendantAddedConnection then
  190. DescendantAddedConnection:Disconnect()
  191. end
  192. end
  193. end
  194.  
  195. local function getPlayer(name)
  196. local lowerName = string.lower(name)
  197. for _, p in pairs(Players:GetPlayers()) do
  198. local lowerPlayer = string.lower(p.Name)
  199. if string.find(lowerPlayer, lowerName) then
  200. return p
  201. elseif string.find(string.lower(p.DisplayName), lowerName) then
  202. return p
  203. end
  204. end
  205. end
  206.  
  207. local player = nil
  208.  
  209. local function VDOYZQL_fake_script() -- Box.Script
  210. local script = Instance.new('Script', Box)
  211.  
  212. script.Parent.FocusLost:Connect(function(enterPressed)
  213. if enterPressed then
  214. player = getPlayer(Box.Text)
  215. if player then
  216. Box.Text = player.Name
  217. print("Player found:", player.Name)
  218. else
  219. print("Player not found")
  220. end
  221. end
  222. end)
  223. end
  224. coroutine.wrap(VDOYZQL_fake_script)()
  225.  
  226. local function JUBNQKI_fake_script() -- Button.Script
  227. local script = Instance.new('Script', Button)
  228.  
  229. script.Parent.MouseButton1Click:Connect(function()
  230. if player then
  231. character = player.Character or player.CharacterAdded:Wait()
  232. humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  233. toggleBlackHole()
  234. else
  235. print("Player is not selected")
  236. end
  237. end)
  238. end
  239. coroutine.wrap(JUBNQKI_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment