ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
--script meant to run once per mid-round\r\n\r\nlocal Plrs = game:GetService(\"Players\")\r\nlocal LP = Plrs.LocalPlayer\r\n\r\nlocal Whitelist = {'adakban'} --type lowercases\r\nlocal Parts = {} -- array\r\ndo\r\n \r\n for _, Obj in pairs(workspace:WaitForChild(\"Structure\"):GetDescendants()) do -- searching for parts\r\n if Obj:IsA(\"BasePart\") or Obj:IsA(\"Part\") then\r\n --Obj.CanTouch = false\r\n Parts[#Parts+1] = {Obj, false} -- adding parts\r\n end\r\n end\r\n getgenv().CheckForMore = workspace.Structure.DescendantAdded:Connect(function(Obj) -- checking for more parts\r\n if Obj:IsA(\"BasePart\") or Obj:IsA(\"Part\") then\r\n --Obj.CanTouch = false\r\n if Parts == nil then getgenv().CheckForMore:Disconnect() return end\r\n table.insert(Parts, {Obj, false}) -- if there are no parts then just say there isn't any.\r\n end\r\n end)\r\n \r\n local function IfDestroy(Parent, Name)\r\n if Parent:FindFirstChild(Name) then\r\n Parent[Name]:Destroy() -- yeahhh i dunno what the hecc this does sorry\r\n end\r\n end\r\n IfDestroy(workspace.Tower, 'Windows')\r\n IfDestroy(LP.Character, 'FallDamageScript') -- fall from a trillion meters and NOT DIE!\r\n local Myhum = LP.Character.Humanoid\r\n Myhum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) -- goodbye ragdoll\r\n Myhum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) -- goodbye ragdoll\r\n Myhum:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false) -- goodbye ragdoll\r\n \r\n print'run'\r\nend\r\n\r\nlocal function KillPlr(Part, PlayerHum)\r\n repeat\r\n Part.CanCollide = false\r\n task.wait()\r\n Part.Velocity = (PlayerHum.Position-Part.Position).Unit*(600) -- (PlayerHum.Position.Magnitude-Part.Position.Magnitude)*(PlayerHum.Position.Magnitude-Part.Position.Magnitude) <---- ignore this please\r\n until isnetworkowner(Part) == false or PlayerHum.Parent == nil or PlayerHum.Parent.Humanoid.Health <= 0 -- the teacher: i'll wait until you stop ______ing.\r\n Part.CanCollide = true\r\nend\r\n\r\nwhile #Parts > 2 do\r\n local i = 0\r\n for Int, Tab in pairs(Parts) do\r\n local Part = Tab[1]\r\n i=i+1\r\n if i%120 == 0 then task.wait() sethiddenproperty(game.Players.LocalPlayer,\"SimulationRadius\",1000);sethiddenproperty(game.Players.LocalPlayer,\"MaxSimulationRadius\",1000) task.wait(0.1) end -- uhhh yes roblox i own these parts btw kthxbai\r\n if Part == nil or Part.Parent == nil then\r\n Parts[Int] = nil\r\n else\r\n if Part:IsGrounded() == false and isnetworkowner(Part) and Tab[2] == false then\r\n Tab[2] = true\r\n local PrevClosest = 1000 -- check 4 mfers!\r\n local PlayerHum\r\n for _, Plr in ipairs(Plrs:GetChildren()) do\r\n if Plr:IsA(\"Player\") and not table.find(Whitelist, Plr.Name:lower()) and Plr.Character ~= nil and Plr.Character:FindFirstChild(\"HumanoidRootPart\") and Plr.Character:FindFirstChild(\"Humanoid\") and Plr.Character.Humanoid.Health > 0 then\r\n local Hum = Plr.Character.HumanoidRootPart\r\n\r\n local dis = (Hum.Position-Part.Position).Magnitude\r\n if dis < PrevClosest then\r\n PrevClosest = dis\r\n PlayerHum = Hum\r\n end\r\n end\r\n end\r\n PrevClosest = nil\r\n --PlayerHum = game.Players[''].Character:FindFirstChild(\"HumanoidRootPart\")\r\n if PlayerHum then\r\n local bambam = Instance.new(\"BodyThrust\")\r\n bambam.Parent = Part\r\n bambam.Force = Vector3.new(99999,99999*10,99999) -- if you are a fling script maker you know damn well what this does\r\n bambam.Location = Part.Position\r\n Part.CanCollide = false\r\n coroutine.wrap(function()\r\n KillPlr(Part, PlayerHum)\r\n Tab[2] = false\r\n return\r\n end)() --idk how to use the args\r\n task.wait()\r\n end\r\n end\r\n end\r\n end\r\n task.wait(0)\r\nend\r\n\r\ngetgenv().CheckForMore:Disconnect()\r\nPlayerHums, Parts, Plrs, viewPart, Whitelist, KillPlr = nil\r\nerror(\"disconnected script\")
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel