Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
- ]]
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local Workspace = game:GetService("Workspace")
- local angle = 1
- local radius = 10
- local blackHoleActive = false
- local function setupPlayer()
- local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local Folder = Instance.new("Folder", Workspace)
- local Part = Instance.new("Part", Folder)
- local Attachment1 = Instance.new("Attachment", Part)
- Part.Anchored = true
- Part.CanCollide = false
- Part.Transparency = 1
- return humanoidRootPart, Attachment1
- end
- local humanoidRootPart, Attachment1 = setupPlayer()
- if not getgenv().Network then
- getgenv().Network = {
- BaseParts = {},
- Velocity = Vector3.new(14.46262424, 14.46262424, 14.46262424)
- }
- Network.RetainPart = function(part)
- if typeof(part) == "Instance" and part:IsA("BasePart") and part:IsDescendantOf(Workspace) then
- table.insert(Network.BaseParts, part)
- part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- part.CanCollide = false
- end
- end
- local function EnablePartControl()
- LocalPlayer.ReplicationFocus = Workspace
- RunService.Heartbeat:Connect(function()
- sethiddenproperty(LocalPlayer, "SimulationRadius", math.huge)
- for _, part in pairs(Network.BaseParts) do
- if part:IsDescendantOf(Workspace) then
- part.Velocity = Network.Velocity
- end
- end
- end)
- end
- EnablePartControl()
- end
- local function ForcePart(v)
- if v:IsA("Part") and not v.Anchored and not v.Parent:FindFirstChild("Humanoid") and not v.Parent:FindFirstChild("Head") and v.Name ~= "Handle" then
- for _, x in next, v:GetChildren() do
- if x:IsA("BodyAngularVelocity") or x:IsA("BodyForce") or x:IsA("BodyGyro") or x:IsA("BodyPosition") or x:IsA("BodyThrust") or x:IsA("BodyVelocity") or x:IsA("RocketPropulsion") then
- x:Destroy()
- end
- end
- if v:FindFirstChild("Attachment") then
- v:FindFirstChild("Attachment"):Destroy()
- end
- if v:FindFirstChild("AlignPosition") then
- v:FindFirstChild("AlignPosition"):Destroy()
- end
- if v:FindFirstChild("Torque") then
- v:FindFirstChild("Torque"):Destroy()
- end
- v.CanCollide = false
- local Torque = Instance.new("Torque", v)
- Torque.Torque = Vector3.new(1000000, 1000000, 1000000)
- local AlignPosition = Instance.new("AlignPosition", v)
- local Attachment2 = Instance.new("Attachment", v)
- Torque.Attachment0 = Attachment2
- AlignPosition.MaxForce = math.huge
- AlignPosition.MaxVelocity = math.huge
- AlignPosition.Responsiveness = 500
- AlignPosition.Attachment0 = Attachment2
- AlignPosition.Attachment1 = Attachment1
- end
- end
- local function toggleBlackHole()
- blackHoleActive = not blackHoleActive
- if blackHoleActive then
- for _, v in next, Workspace:GetDescendants() do
- ForcePart(v)
- end
- Workspace.DescendantAdded:Connect(function(v)
- if blackHoleActive then
- ForcePart(v)
- end
- end)
- spawn(function()
- while blackHoleActive and RunService.RenderStepped:Wait() do
- angle = angle + math.rad(2)
- local offsetX = math.cos(angle) * radius
- local offsetZ = math.sin(angle) * radius
- Attachment1.WorldCFrame = humanoidRootPart.CFrame * CFrame.new(offsetX, 0, offsetZ)
- end
- end)
- else
- Attachment1.WorldCFrame = CFrame.new(0, -1000, 0)
- end
- end
- LocalPlayer.CharacterAdded:Connect(function()
- humanoidRootPart, Attachment1 = setupPlayer()
- if blackHoleActive then
- toggleBlackHole()
- end
- end)
- local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/miroeramaa/TurtleLib/main/TurtleUiLib.lua"))()
- local window = library:Window("Projeto LKB")
- window:Slider("Radius Blackhole",1,100,10, function(Value)
- radius = Value
- end)
- window:Toggle("Blackhole", true, function(Value)
- if Value then
- toggleBlackHole()
- else
- blackHoleActive = false
- end
- end)
- spawn(function()
- while true do
- RunService.RenderStepped:Wait()
- if blackHoleActive then
- angle = angle + math.rad(angleSpeed)
- end
- end
- end)
- toggleBlackHole()
Add Comment
Please, Sign In to add comment