carlosname

Untitled

Apr 27th, 2020
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14
  2.  
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  4. do
  5.     script.Parent = owner.Character
  6.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7.     local function NewFakeEvent()
  8.         local Bind = Instance.new("BindableEvent")
  9.         local Fake;Fake = {Connections = {},
  10.         fakeEvent=true;
  11.         Connect=function(self,Func)
  12.             Bind.Event:connect(Func)
  13.             self.Connections[Bind] = true
  14.             return setmetatable({Connected = true},{
  15.             __index = function (self,Index)
  16.                 if Index:lower() == "disconnect" then
  17.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  18.                 end
  19.                 return Fake[Index]
  20.             end;
  21.             __tostring = function() return "Connection" end;
  22.         })
  23.         end}
  24.         Fake.connect = Fake.Connect;return Fake;
  25.     end
  26.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31.     local function TriggerEvent(self,Event,...)
  32.         local Trigger = Mouse[Event]
  33.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35.         end
  36.     end
  37.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  39.         if FiredBy.Name ~= owner.Name then return end
  40.         if Input.MouseEvent then
  41.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42.         else
  43.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45.             for _,Action in pairs(ContextActionService.Actions) do
  46.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47.             end
  48.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50.         end
  51.     end)
  52.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53.     Event.Parent = NLS([[
  54.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55.         local Input = function(Input,gameProcessedEvent)
  56.             if gameProcessedEvent then return end
  57.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58.         end
  59.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60.         local Hit,Target
  61.         while wait(1/30) do
  62.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64.             end
  65.         end
  66.     ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69.     __index = function (self,Index)
  70.         local Sandbox = function (Thing)
  71.             if Thing:IsA("Player") then
  72.                 local RealPlayer = Thing
  73.                 return setmetatable({},{
  74.                     __index = function (self,Index)
  75.                         local Type = type(RealPlayer[Index])
  76.                         if Type == "function" then
  77.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78.                                 return function (self)return InternalData["Mouse"] end
  79.                             end
  80.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81.                         end
  82.                         return RealPlayer[Index]
  83.                     end;
  84.                     __tostring = function(self) return RealPlayer.Name end
  85.                 })
  86.             end
  87.         end
  88.         if RealGame[Index] then
  89.             local Type = type(RealGame[Index])
  90.             if Type == "function" then
  91.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  92.                     return function (self,Service)
  93.                         local FakeServices = {
  94.                             ["players"] = function()
  95.                                 return setmetatable({},{
  96.                                     __index = function (self2,Index2)
  97.                                         local RealService = RealGame:GetService(Service)
  98.                                         local Type2 = type(Index2)
  99.                                         if Type2 == "function" then
  100.                                             return function (self,...) return RealService[Index2](RealService,...)end
  101.                                         else
  102.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103.                                             return RealService[Index2]
  104.                                         end
  105.                                     end;
  106.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  107.                                 })
  108.                             end;
  109.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111.                             ["runservice"] = function()
  112.                                 return setmetatable({},{
  113.                                     __index = function(self2,Index2)
  114.                                         local RealService = RealGame:GetService(Service)
  115.                                         local Type2 = type(Index2)
  116.                                         if Type2 == "function" then
  117.                                             return function (self,...) return RealService[Index2](RealService,...) end
  118.                                         else
  119.                                             local RunServices = {
  120.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  122.                                             }
  123.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124.                                             return RealService[Index2]
  125.                                         end
  126.                                     end
  127.                                 })
  128.                             end
  129.                         }
  130.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131.                         return RealGame:GetService(Service)
  132.                     end
  133.                 end
  134.                 return function (self,...) return RealGame[Index](RealGame,...) end
  135.             else
  136.                 if game:GetService(Index) then return game:GetService(Index) end
  137.                 return RealGame[Index]
  138.             end
  139.         end
  140.         return nil
  141.     end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  143.  
  144. owner = game.Players.LocalPlayer
  145.  
  146. script.Parent = game:GetService("ServerScriptService")
  147. cannotify = true
  148. canragdollkill = true
  149. function message(msg)
  150.     if cannotify then
  151.         local messagesound = Instance.new("Sound", workspace)
  152.         messagesound.SoundId = "rbxassetid://651986414"
  153.         messagesound.Volume = 5.999
  154.         messagesound:Play()
  155.         game.Debris:AddItem(messagesound, messagesound.TimeLength)
  156.         if owner.Character then
  157.             if owner.Character:findFirstChild("HumanoidRootPart") then
  158.                 local pos1 = math.random(-5,5)
  159.                 local pos2 = math.random(-5,5)
  160.                 local model = Instance.new("Model", owner.Character)
  161.                 model.Name = [[(Anti-Skid v4)
  162.                 ]]..msg
  163.                 local human0 = Instance.new("Humanoid", model)
  164.                 human0.Name = "MessageHuman0id"
  165.                 human0.MaxHealth = 0
  166.                 human0.Health = 0
  167.                 local part = Instance.new("Part", model)
  168.                 part.Size = Vector3.new(0,0,0)
  169.                 part.BrickColor = BrickColor.Random()
  170.                 part.Material = "ForceField"
  171.                 part:BreakJoints()
  172.                 part.CanCollide = false
  173.                 part.CFrame = owner.Character.HumanoidRootPart.CFrame
  174.                 part.Name = "Head"
  175.                 local bodyposition = Instance.new("BodyPosition", part)
  176.                 bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  177.                 bodyposition.Position = owner.Character.HumanoidRootPart.Position
  178.                 local function spinandpos()
  179.                     while wait() do
  180.                         if owner.Character:findFirstChild("HumanoidRootPart") then
  181.                             bodyposition.Position = owner.Character:findFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
  182.                         end
  183.                         part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0.02,0.02)
  184.                     end
  185.                 end
  186.                 local function resize()
  187.                     while wait() and part.Size.x < 1.5 do
  188.                         part.Size = part.Size + Vector3.new(0.05,0.05,0.05)
  189.                     end
  190.                     wait(4)
  191.                     for i = 1,30 do
  192.                         part.Size = part.Size - Vector3.new(0.05,0.05,0.05)
  193.                         part.Transparency = part.Transparency + 0.015
  194.                         wait()
  195.                     end
  196.                     model:destroy()
  197.                 end
  198.                 spawn(spinandpos)
  199.                 spawn(resize)
  200.             end
  201.         end
  202.     end
  203. end
  204. function punishplayer(character)
  205.     if not character:findFirstChild("pwned") then
  206.         Instance.new("BoolValue", character).Name = "pwned"
  207.         local function loopremove()
  208.             while wait() do
  209.                 for i,v in pairs(character:GetChildren()) do
  210.                     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  211.                         v.Disabled = true
  212.                     end
  213.                 end
  214.             end
  215.         end
  216.         spawn(loopremove)
  217.         local function thotbegone()
  218.             local punishrandom = math.random(1,7)
  219.             for i,v in pairs(character:GetChildren()) do
  220.                 if v.ClassName == "Sound" and v.Name ~= "JevilTheme" then
  221.                     v:destroy()
  222.                 end
  223.                 for q,w in pairs(v:GetChildren()) do
  224.                     if w.ClassName == "Sound" and w.Name ~= "JevilTheme" then
  225.                         w:destroy()
  226.                     end
  227.                 end
  228.             end
  229.             if punishrandom == 1 then
  230.                 for i = 1,10 do
  231.                     for q,w in pairs(character:GetChildren()) do
  232.                         if w.ClassName == "Part" then
  233.                             w.Transparency = w.Transparency + 0.1
  234.                         end
  235.                         if w.ClassName == "Accessory" then
  236.                             if w:findFirstChild("Handle") then
  237.                                 w.Handle.Transparency = w.Handle.Transparency + 0.1
  238.                             end
  239.                         end
  240.                         if w.Name == "Head" then
  241.                             if w:findFirstChildOfClass("Decal") then
  242.                                 w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.1
  243.                             end
  244.                         end
  245.                     end
  246.                     wait()
  247.                 end
  248.                 for q,w in pairs(character:GetChildren()) do
  249.                     if w.ClassName == "Part" or w.ClassName == "Accessory" then
  250.                         w:destroy()
  251.                     end
  252.                 end
  253.             elseif punishrandom == 2 then
  254.                 character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
  255.                 character:findFirstChildOfClass("Humanoid").JumpPower = 0
  256.                 local function addweld()
  257.                     if character:findFirstChild("Torso") then
  258.                         local heead = Instance.new("Weld", character.Torso)
  259.                         heead.Part0 = character.Torso
  260.                         heead.Part1 = character.Head
  261.                         heead.C0 = CFrame.new(0,1.5,0)
  262.                         heead.Name = "HeadWeld"
  263.                         wait(0.7)
  264.                         for i = 0,1 , 0.08 do
  265.                             heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  266.                             wait()
  267.                         end
  268.                         wait(0.7)
  269.                         while wait() do
  270.                             heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  271.                         end
  272.                     elseif character:findFirstChild("UpperTorso") then
  273.                         local heead = Instance.new("Weld", character.UpperTorso)
  274.                         heead.Part0 = character.UpperTorso
  275.                         heead.Part1 = character.Head
  276.                         heead.C0 = CFrame.new(0,1.5,0)
  277.                         heead.Name = "HeadWeld"
  278.                         wait(0.7)
  279.                         for i = 0,1 , 0.08 do
  280.                             heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  281.                             wait()
  282.                         end
  283.                         wait(0.7)
  284.                         while wait() do
  285.                             heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  286.                         end
  287.                     end
  288.                 end
  289.                 spawn(addweld)
  290.                 local banhamma = Instance.new("Part", character)
  291.                 banhamma.Size = Vector3.new(3, 10, 2)
  292.                 banhamma:BreakJoints()
  293.                 banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
  294.                 banhamma.Name = "ban"
  295.                 banhamma.Transparency = 1
  296.                 banhamma.Anchored = true
  297.                 local mesh = Instance.new("SpecialMesh", banhamma)
  298.                 mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  299.                 mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  300.                 local special = Instance.new("Sound", banhamma)
  301.                 special.SoundId = "rbxassetid://427090157"
  302.                 special.Volume = 2
  303.                 special:Play()
  304.                 for i = 1,20 do
  305.                     banhamma.Transparency = banhamma.Transparency - 0.05
  306.                     if character:findFirstChildOfClass("Humanoid") then
  307.                         character:findFirstChildOfClass("Humanoid").JumpPower = 0
  308.                         character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
  309.                     end
  310.                     wait()
  311.                 end
  312.                 local hammertime = Instance.new("Sound", banhamma)
  313.                 hammertime.SoundId = "rbxassetid://176192087"
  314.                 hammertime.Volume = 3
  315.                 hammertime:Play()
  316.                 wait(1)
  317.                 if character:findFirstChild("Head") then
  318.                     local scream = Instance.new("Sound", character.Head)
  319.                     scream.SoundId = "rbxassetid://176238381"
  320.                     scream.Volume = 2
  321.                     scream:Play()
  322.                     banhamma.Anchored = false
  323.                     local angularvel = Instance.new("BodyAngularVelocity", banhamma)
  324.                     angularvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  325.                     angularvel.AngularVelocity = banhamma.CFrame.rightVector * 20
  326.                     local touchedban = false
  327.                     local function touched(part)
  328.                         if part.Name == "Head" and part.Parent == character then
  329.                             touchedban = true
  330.                             local aaaaaaaa = Instance.new("Sound", banhamma)
  331.                             aaaaaaaa.SoundId = "rbxassetid://147722910"
  332.                             aaaaaaaa.Volume = 2
  333.                             aaaaaaaa:Play()
  334.                             angularvel:Destroy()
  335.                             banhamma.CanCollide = true
  336.                             for i,v in pairs(character:GetChildren()) do
  337.                                 if v.ClassName == "Part" and v.Name ~= "ban" or v.ClassName == "Accessory" then
  338.                                     v:destroy()
  339.                                 end
  340.                             end
  341.                         end
  342.                     end
  343.                     banhamma.Touched:connect(touched)
  344.                     wait(2)
  345.                     if not touchedban and character:findFirstChild("Head") then
  346.                         banhamma.CFrame = character:findFirstChild("Head").CFrame
  347.                     end
  348.                 end
  349.             elseif punishrandom == 3 then
  350.                 character:BreakJoints()
  351.                 character:findFirstChildOfClass("Humanoid").Health = 0
  352.                 local explo = Instance.new("Explosion", character)
  353.                 explo.Position = character.Head.Position
  354.                 explo.BlastPressure = 0
  355.                 local boom = Instance.new("Sound", character.Head)
  356.                 boom.SoundId = "rbxassetid://262562442"
  357.                 boom.Volume = 3
  358.                 boom.Name = "booom"
  359.                 boom:Play()
  360.                 for i,v in pairs(character:GetChildren()) do
  361.                     if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  362.                         local velocity = Instance.new("BodyVelocity", v)
  363.                         velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  364.                         velocity.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
  365.                         game.Debris:AddItem(velocity, 0.5)
  366.                     end
  367.                 end
  368.                 if canragdollkill then
  369.                     character:BreakJoints()
  370.                     ragdollkill(character)
  371.                 else
  372.                     if character:findFirstChild("Head") then
  373.                         wait(2)
  374.                         character:findFirstChild("Head"):destroy()
  375.                     end
  376.                 end
  377.             elseif punishrandom == 4 then
  378.                 character.Head:destroy()
  379.                 if character:findFirstChild("HumanoidRootPart") then
  380.                     local boom = Instance.new("Sound", character.HumanoidRootPart)
  381.                     boom.SoundId = "rbxassetid://775395533"
  382.                     boom.Volume = 1.5
  383.                     boom.Name = "chinese"
  384.                     boom:Play()
  385.                 end
  386.                 if canragdollkill then
  387.                     character:BreakJoints()
  388.                     ragdollkill(character)
  389.                 end
  390.             elseif punishrandom == 5 then
  391.                 local hahahahahah = Instance.new("Sound", workspace)
  392.                 hahahahahah.SoundId = "rbxassetid://807874496"
  393.                 hahahahahah.Volume = 1.5
  394.                 hahahahahah:Play()
  395.                 game.Debris:AddItem(hahahahahah, hahahahahah.TimeLength)
  396.                 if character:findFirstChild("HumanoidRootPart") then
  397.                     local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  398.                     humanoidrootpart.Part0 = character.HumanoidRootPart
  399.                     if character:findFirstChild("Torso") then
  400.                         humanoidrootpart.Part1 = character.Torso
  401.                     elseif character:findFirstChild("UpperTorso") then
  402.                         humanoidrootpart.Part1 = character.UpperTorso
  403.                     end
  404.                     humanoidrootpart.Name = "HumanoidRootPartWeld"
  405.                     local function rrreeeeee()
  406.                         while humanoidrootpart do
  407.                             humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.Angles(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  408.                             wait()
  409.                         end
  410.                     end
  411.                     spawn(rrreeeeee)
  412.                 end
  413.                 local function thot()
  414.                     for i = 1,20 do
  415.                         for q,w in pairs(character:GetChildren()) do
  416.                             if w.ClassName == "Part" then
  417.                                 w.Transparency = w.Transparency + 0.05
  418.                             end
  419.                             if w.ClassName == "Accessory" then
  420.                                 if w:findFirstChild("Handle") then
  421.                                     w.Handle.Transparency = w.Handle.Transparency + 0.05
  422.                                 end
  423.                             end
  424.                             if w.Name == "Head" then
  425.                                 if w:findFirstChildOfClass("Decal") then
  426.                                     w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.05
  427.                                 end
  428.                             end
  429.                         end
  430.                         wait()
  431.                     end
  432.                     for q,w in pairs(character:GetChildren()) do
  433.                         if w.ClassName == "Part" or w.ClassName == "Accessory" then
  434.                             w:destroy()
  435.                         end
  436.                     end
  437.                 end
  438.                 spawn(thot)
  439.             elseif punishrandom == 6 then
  440.                 for q,w in pairs(character:GetChildren()) do
  441.                     if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  442.                         w.Anchored = true
  443.                     end
  444.                     if w.Name == "Health" and w.ClassName == "Script" then
  445.                         w.Disabled = true
  446.                     end
  447.                 end
  448.                 local aaaaaaaaa = Instance.new("Sound", character.Head)
  449.                 aaaaaaaaa.SoundId = "rbxassetid://3181950107"
  450.                 aaaaaaaaa.Volume = 3
  451.                 aaaaaaaaa:Play()
  452.                 aaaaaaaaa.TimePosition = 2.9
  453.                 local hydraulicpress = Instance.new("Part", character)
  454.                 hydraulicpress.Size = Vector3.new(12,6,12)
  455.                 hydraulicpress.Anchored = true
  456.                 hydraulicpress.Material = "CorrodedMetal"
  457.                 hydraulicpress.CFrame = character.Head.CFrame * CFrame.new(0,20,0)
  458.                 local hydraulicpress2 = Instance.new("Part", character)
  459.                 hydraulicpress2.Size = Vector3.new(3,1000,3)
  460.                 hydraulicpress2.Anchored = true
  461.                 hydraulicpress2.Material = "CorrodedMetal"
  462.                 hydraulicpress2.CFrame = hydraulicpress.CFrame * CFrame.new(0,hydraulicpress2.Size.y/2,0)
  463.                 for i = 1,9 do
  464.                     hydraulicpress2.CFrame = hydraulicpress2.CFrame * CFrame.new(0,-2.4,0)
  465.                     hydraulicpress.CFrame = hydraulicpress.CFrame * CFrame.new(0,-2.4,0)
  466.                     game:GetService("RunService").Stepped:wait()
  467.                 end
  468.                 if character:findFirstChildOfClass("Humanoid") then
  469.                     character:findFirstChildOfClass("Humanoid").Health = 0.01
  470.                 end
  471.                 wait(3)
  472.                 character:BreakJoints()
  473.             elseif punishrandom == 7 then
  474.                 local congrats_pleb = Instance.new("Sound", character.Head)
  475.                 congrats_pleb.SoundId = "rbxassetid://360099761"
  476.                 congrats_pleb.Volume = 5.999
  477.                 congrats_pleb.Name = "congratzpleb"
  478.                 local notorbitalflutesound = Instance.new("Sound", character.Head)
  479.                 notorbitalflutesound.SoundId = "rbxassetid://225627419"
  480.                 notorbitalflutesound.Volume = 5.999
  481.                 notorbitalflutesound.Name = "congratzpleb1"
  482.                 notorbitalflutesound:Play()
  483.                 congrats_pleb:Play()
  484.                 game.Debris:AddItem(notorbitalflutesound, 0.3)
  485.                 game.Debris:AddItem(congrats_pleb, 3)
  486.                 -- Farewell Infortality.
  487.                 -- Version: 2.82
  488.                 -- Instances:
  489.                 local ScreenGui = Instance.new("ScreenGui")
  490.                 game.Debris:AddItem(ScreenGui,2.5)
  491.                 local h = Instance.new("TextLabel")
  492.                 --Properties:
  493.                 ScreenGui.Name = "ąęśżźółń"
  494.                 ScreenGui.Parent = game:GetService("Players"):findFirstChild(character.Name):findFirstChildOfClass("PlayerGui")
  495.                 ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  496.                
  497.                 h.Name = "h ę"
  498.                 h.Parent = ScreenGui
  499.                 h.BackgroundColor3 = Color3.new(1, 1, 1)
  500.                 h.BackgroundTransparency = 1
  501.                 h.Size = UDim2.new(1, 0, 1, 0)
  502.                 h.Font = Enum.Font.SourceSansLight
  503.                 h.TextColor3 = Color3.new(1, 1, 1)
  504.                 h.TextScaled = true
  505.                 h.TextSize = 14
  506.                 h.TextWrapped = true
  507.                 h.Text = "Congratulations,"
  508.                 wait(1)
  509.                 h.Text = "you played yourself."
  510.                 wait(0.8)
  511.                 if character:findFirstChild("Head") then
  512.                     --Converted with ttyyuu12345's model to script plugin v4
  513.                     local function sandbox(var,func)
  514.                         local env = getfenv(func)
  515.                         local newenv = setmetatable({},{
  516.                             __index = function(self,k)
  517.                                 if k=="script" then
  518.                                     return var
  519.                                 else
  520.                                     return env[k]
  521.                                 end
  522.                             end,
  523.                         })
  524.                         setfenv(func,newenv)
  525.                         return func
  526.                     end
  527.                     local cors = {}
  528.                     local mas = Instance.new("Model",game:GetService("Lighting"))
  529.                     local fluuute = Instance.new("Part")
  530.                     local SpecialMesh1 = Instance.new("SpecialMesh")
  531.                     fluuute.Name = "wooosh"
  532.                     fluuute.Parent = mas
  533.                     fluuute.Anchored = true
  534.                     fluuute.CFrame = CFrame.new(-9.54999828, 10.7131758, -2.17677665, 1, 0, 0, 0, 0.707106709, 0.707106709, 0, -0.707106709, 0.707106709)
  535.                     fluuute.Orientation = Vector3.new(-45, 0, 0)
  536.                     fluuute.Position = Vector3.new(-9.54999828, 10.7131758, -2.17677665)
  537.                     fluuute.Rotation = Vector3.new(-45, 0, 0)
  538.                     fluuute.Size = Vector3.new(0.099999927, 2.4000001, 0.0999999568)
  539.                     fluuute.BottomSurface = Enum.SurfaceType.Smooth
  540.                     fluuute.TopSurface = Enum.SurfaceType.Smooth
  541.                     fluuute.FormFactor = Enum.FormFactor.Custom
  542.                     fluuute.formFactor = Enum.FormFactor.Custom
  543.                     fluuute.CanCollide = false
  544.                     SpecialMesh1.Parent = fluuute
  545.                     SpecialMesh1.MeshId = "rbxassetid://223104924"
  546.                     SpecialMesh1.Scale = Vector3.new(0.25, 0.25, 0.25)
  547.                     SpecialMesh1.TextureId = "rbxassetid://223104978"
  548.                     SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  549.                     for i,v in pairs(mas:GetChildren()) do
  550.                         v.Parent = character
  551.                         pcall(function() v:MakeJoints() end)
  552.                     end
  553.                     mas:Destroy()
  554.                     for i,v in pairs(cors) do
  555.                         spawn(function()
  556.                             pcall(v)
  557.                         end)
  558.                     end
  559.                     fluuute.CFrame = character.Head.CFrame * CFrame.new(math.random(-600,600),600,math.random(-600,600))
  560.                     Instance.new("Fire", fluuute)
  561.                     local orbitalwoosh = Instance.new("Sound", fluuute)
  562.                     orbitalwoosh.SoundId = "rbxassetid://97179624"
  563.                     orbitalwoosh.Volume = 5.999
  564.                     orbitalwoosh:Play()
  565.                     orbitalwoosh.Looped = true
  566.                     orbitalwoosh.PlaybackSpeed = 0.9
  567.                     local canchase = true
  568.                     local function flyto()
  569.                         while game:GetService("RunService").Stepped:wait() and character do
  570.                             if character:findFirstChild("Head") then
  571.                                 if (character.Head.Position - fluuute.Position).magnitude > 1.5 and canchase then
  572.                                     fluuute.CFrame = CFrame.new(fluuute.Position, character:findFirstChild("Head").Position) * CFrame.Angles(-math.pi/2,0,0)
  573.                                     fluuute.CFrame = fluuute.CFrame * CFrame.new(0,1.5,0)
  574.                                     if fluuute:findFirstChild("ray") then
  575.                                         fluuute:findFirstChild("ray"):destroy()
  576.                                     end
  577.                                     local raye = Ray.new(fluuute.CFrame.p, fluuute.CFrame.upVector * 1000)
  578.                                     local hit, position = workspace:FindPartOnRayWithIgnoreList(raye, {fluuute})
  579.                                     local partte = Instance.new("Part", fluuute)
  580.                                     partte.Anchored = true
  581.                                     partte.CanCollide = false
  582.                                     partte.Material = "Neon"
  583.                                     partte.BrickColor = BrickColor.new("Really red")
  584.                                     partte.Name = "ray"
  585.                                     partte.Size = Vector3.new(0,0,(fluuute.Position - position).magnitude)
  586.                                     partte.CFrame = CFrame.new(fluuute.Position, position) * CFrame.new(0,0,-(fluuute.Position - position).magnitude/2)
  587.                                 else
  588.                                     if character then
  589.                                         if canchase and character:findFirstChild("Head") then
  590.                                             canchase = false
  591.                                             local Sound2 = Instance.new("Sound", workspace)
  592.                                             Sound2.Name = "Explosion"
  593.                                             Sound2.SoundId = "rbxassetid://55224766"
  594.                                             Sound2:Play()
  595.                                             orbitalwoosh:Stop()
  596.                                             fluuute.Transparency = 1
  597.                                             if fluuute:FindFirstChildOfClass("Fire") then
  598.                                                 fluuute:FindFirstChildOfClass("Fire"):destroy()
  599.                                             end
  600.                                             game.Debris:AddItem(Sound2, Sound2.TimeLength)
  601.                                             game.Debris:AddItem(fluuute, Sound2.TimeLength)
  602.                                             local boom = Instance.new("Explosion", workspace)
  603.                                             boom.BlastRadius = 0
  604.                                             boom.Position = character.Head.Position
  605.                                             character:BreakJoints()
  606.                                             for i,v in pairs(character:GetChildren()) do
  607.                                                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  608.                                                     v.BrickColor = BrickColor.new("Black")
  609.                                                     Instance.new("Fire", v)
  610.                                                 end
  611.                                             end
  612.                                             if canragdollkill then
  613.                                                 ragdollkill(character)
  614.                                             end
  615.                                         end
  616.                                     end
  617.                                 end
  618.                             end
  619.                         end
  620.                     end
  621.                     local function higherpitch()
  622.                         orbitalwoosh.PlaybackSpeed = orbitalwoosh.PlaybackSpeed + 0.2
  623.                     end
  624.                     orbitalwoosh.DidLoop:connect(higherpitch)
  625.                     spawn(flyto)
  626.                 end
  627.             end
  628.         end
  629.         spawn(thotbegone)
  630.     end
  631. end
  632. function scan()
  633.     while wait() do
  634.         for i,w in pairs(workspace:GetChildren()) do
  635.             if w.ClassName == "Sound" and w.Name ~= "Sound" and not w:findFirstChild("muted") then
  636.                 if w.Volume >= 6 then
  637.                     Instance.new("BoolValue", w).Name = "muted"
  638.                     local function lolriplmao()
  639.                         while game:GetService("RunService").Stepped:wait() do
  640.                             w.Volume = 1
  641.                         end
  642.                     end
  643.                     spawn(lolriplmao)
  644.                     message("Detected loud audio coming from workspace")
  645.                 end
  646.             end
  647.         end
  648.         for i,v in pairs(game:GetService("Players"):GetChildren()) do
  649.             if v.ClassName == "Sound" then
  650.                 v:destroy()
  651.             end
  652.             if v.Character then
  653.                 if not v.Character:findFirstChild("pwned") then
  654.                     --fat remote
  655.                     if v.Character:findFirstChild("Remote") then
  656.                         if v.Character:findFirstChild("Remote"):findFirstChild("Handle") then
  657.                             if v.Character:findFirstChild("Remote"):findFirstChild("Handle"):findFirstChild("p4") then
  658.                                 v.Character:findFirstChild("Remote"):findFirstChild("Handle"):destroy()
  659.                                 v.Character:findFirstChild("Remote"):destroy()
  660.                                 punishplayer(v.Character)
  661.                                 message(v.Name.." has used fat remote.")
  662.                             end
  663.                         end
  664.                     end
  665.                     --fat banisher
  666.                     if v.Character:findFirstChild("Adds") then
  667.                         v.Character:findFirstChild("Adds"):destroy()
  668.                         punishplayer(v.Character)
  669.                         v:LoadCharacter()
  670.                         message(v.Name.." fat skid has probably used a banisher.")
  671.                     end
  672.                     --gay ass eggdog
  673.                     if v.Character:findFirstChild("EggDog") then
  674.                         punishplayer(v.Character)
  675.                         message(v.Name.." has used Egg-Dog script.")
  676.                     end
  677.                     --abuse bazooka
  678.                     if v.Character:findFirstChild("Banzai Bazooka") then
  679.                         punishplayer(v.Character)
  680.                         message(v.Name.." has used Banzai Bazooka.")
  681.                     end
  682.                     --shini
  683.                     if v.Character:findFirstChild("Shini-G4-MI") then
  684.                         punishplayer(v.Character)
  685.                         message(v.Name.." has used Shini-G4-MI.")
  686.                     end
  687.                     --flamingo meme moment
  688.                     if v.Character:findFirstChild("OofHead") then
  689.                         punishplayer(v.Character)
  690.                         message(v.Name.." has used a script from the worm familiy.")
  691.                     end
  692.                     --white shiny flying unkillable dominus thing
  693.                     if v.Character:findFirstChild("Control.mp3") then
  694.                         punishplayer(v.Character)
  695.                         v:LoadCharacter()
  696.                         message(v.Name.." has used a script that has 'Controlmp3'' in it.")
  697.                     end
  698.                     --ultra instict 2019
  699.                     if v.Character:findFirstChild("Hair") then
  700.                         if v.Character.Hair:findFirstChild("Mesh") then
  701.                             if v.Character.Hair.Mesh.MeshId == "rbxassetid://455100513" then
  702.                                 local function uncol()
  703.                                     while game:GetService("RunService").Stepped:wait() do
  704.                                         if v.Character:findFirstChild("Hair") then
  705.                                             v.Character.Hair.CanCollide = false
  706.                                         end
  707.                                     end
  708.                                 end
  709.                                 spawn(uncol)
  710.                                 for q,w in pairs(v.Character:GetChildren()) do
  711.                                     if w.Name == "NewPart" then
  712.                                         w.CanCollide = false
  713.                                     end
  714.                                 end
  715.                                 punishplayer(v.Character)
  716.                                 message(v.Name.." has used Ultra Instict.")
  717.                             end
  718.                         end
  719.                     end
  720.                     --nahid Chara
  721.                     if v.Character:findFirstChild("Blob") then
  722.                         if v.Character:findFirstChild("Name") then
  723.                             if v.Character:findFirstChild("Name"):findFirstChild("TextLabel") then
  724.                                 v.Character:findFirstChild("Name").TextLabel.Text = "lol skid"
  725.                                 punishplayer(v.Character)
  726.                                 message(v.Name.." has used nahid Chara/Jevil.")
  727.                             end
  728.                         end
  729.                     end
  730.                     --star glitcher
  731.                     if v.Character:findFirstChild("Head") then
  732.                         if v.Character.Head:findFirstChild("ModeName") then
  733.                             if v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel") then
  734.                                 v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
  735.                                 punishplayer(v.Character)
  736.                                 message(v.Name.." has used Star Glitcher.")
  737.                             end
  738.                         end
  739.                     end
  740.                     if v.Character:findFirstChildOfClass("Sound") then
  741.                         if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://614032233" or v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://415898123" or v.Character:findFirstChildOfClass("Sound").Name == "wrecked" then
  742.                             punishplayer(v.Character)
  743.                             message(v.Name.." has used Star Glitcher.")
  744.                         end
  745.                     end
  746.                     --big ban theory
  747.                     if v.Character:findFirstChild("Hammer") then
  748.                         v.Character:findFirstChild("Hammer"):destroy()
  749.                         punishplayer(v.Character)
  750.                         message(v.Name.." probably used Big Ban Theory.")
  751.                     end
  752.                     --dual doom
  753.                     if v.Character:findFirstChild("Dual Doom") then
  754.                         v.Character:findFirstChild("Dual Doom"):destroy()
  755.                         if v.Character:findFirstChild("Dual Doom") then
  756.                             v.Character:findFirstChild("Dual Doom"):destroy()
  757.                         end
  758.                         punishplayer(v.Character)
  759.                         message(v.Name.." used Dual Doom.")
  760.                     end
  761.                     --jevil
  762.                     if v.Character:findFirstChild("Torso") then
  763.                         if v.Character.Torso:findFirstChild("JevilTheme") then
  764.                             v.Character.Torso:findFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670"
  765.                             v.Character.Torso:findFirstChild("JevilTheme").TimePosition = 5
  766.                             v.Character.Torso:findFirstChild("JevilTheme"):Play()
  767.                             punishplayer(v.Character)
  768.                             message(v.Name.." has used Jevil.")
  769.                         end
  770.                     end
  771.                     --dead gun
  772.                     if v.Character:findFirstChild("Torso") then
  773.                         if v.Character.Torso:findFirstChild("Sound") then
  774.                             if v.Character.Torso:findFirstChild("Sound").SoundId == "rbxassetid://318812395" then
  775.                                 v.Character.Torso:findFirstChild("Sound").SoundId = "rbxassetid://775395533"
  776.                                 punishplayer(v.Character)
  777.                                 message(v.Name.." has used Dead Gun.")
  778.                             end
  779.                         end
  780.                     end
  781.                     --guest glitcher
  782.                     if v.Character:findFirstChild("wreckeda") then
  783.                         punishplayer(v.Character)
  784.                         message(v.Name.." has used Guest Glitcher/Galaxy Glitcher.")
  785.                     end
  786.                     --xester
  787.                     if v.Character:findFirstChild("Head") then
  788.                         if v.Character.Head:findFirstChild("eyo1") then
  789.                             punishplayer(v.Character)
  790.                             message(v.Name.." has used Xester.")
  791.                         end
  792.                     end
  793.                     --the switcher
  794.                     if v.Character:findFirstChild("_status") then
  795.                         if v.Character["_status"]:findFirstChildOfClass("TextLabel") then
  796.                             v.Character["_status"]:findFirstChildOfClass("TextLabel").Text = "epic skid moment woooooo"
  797.                             punishplayer(v.Character)
  798.                             message(v.Name.." has used an auto added annoying script.")
  799.                         end
  800.                     end
  801.                     --chaotic glicher
  802.                     if v.Character:findFirstChild("_status") then
  803.                         if v.Character["_status"]:findFirstChild("TextLabel") then
  804.                             if string.sub(v.Character["_status"]:findFirstChild("TextLabel").Text,1,5) == "Lunar" then
  805.                                 v.Character["_status"]:findFirstChild("TextLabel").Text = "rip chaotic lol"
  806.                                 punishplayer(v.Character)
  807.                                 message(v.Name.." has used Chaotic Glicher.")
  808.                             end
  809.                         end
  810.                     end
  811.                 end
  812.             end
  813.         end
  814.     end
  815. end
  816. spawn(scan)
  817. function commands(chat)
  818.     if string.sub(chat, 1,8) == ",ragdoll" then
  819.         if string.sub(chat, 10,11) == "on" then
  820.             canragdollkill = true
  821.             message("Ragdoll on!")
  822.         end
  823.         if string.sub(chat, 10,12) == "off" then
  824.             message("Ragdoll off!")
  825.             canragdollkill = false
  826.         end
  827.     end
  828.     if string.sub(chat, 1,7) == ",notify" then
  829.         if string.sub(chat, 9,10) == "on" then
  830.             cannotify = true
  831.             message("Notifications on!")
  832.         end
  833.         if string.sub(chat, 9,11)--[[ << coincidence?]] == "off" then
  834.             message("Notifications off!")
  835.             cannotify = false
  836.         end
  837.     end
  838.     if string.sub(chat, 1,5) == ",stop" then
  839.         local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 7))
  840.         if ply then
  841.             if ply.Name == "Rufus14" then
  842.                 message("get out")
  843.                 punishplayer(owner.Character)
  844.             else
  845.                 if ply.Character then
  846.                     punishplayer(ply.Character)
  847.                     message("Punished "..ply.Name..".")
  848.                 else
  849.                     message("Player isnt even spawned.")
  850.                 end
  851.             end
  852.         else
  853.             message("Cannot find the player named '"..string.sub(chat, 10).."'.")
  854.         end
  855.     end
  856.     if string.sub(chat, 1,10) == ",unsandbox" then
  857.         local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 12))
  858.         if ply then
  859.             local lool = Instance.new("BoolValue", ply)
  860.             lool.Name = "stopsandboxing"
  861.             game.Debris:AddItem(lool, 0.5)
  862.             message("Unsandboxed "..ply.Name..".")
  863.         else
  864.             message("Cannot find the player named '"..string.sub(chat, 12).."'.")
  865.         end
  866.     end
  867.     if string.sub(chat, 1,8) == ",sandbox" then
  868.         if string.sub(chat, 10,12) == "all" then
  869.             for i,v in pairs(game:GetService("Players"):GetChildren()) do
  870.                 if v.Character then
  871.                     local ply = v
  872.                     modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  873.                     modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  874.                     local scamhumanoid = Instance.new("Humanoid", modell)
  875.                     modell2 = Instance.new("Model", modell)
  876.                     modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  877.                     ply.Character.Parent = modell2
  878.                     ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  879.                     local function checkifnil()
  880.                         if ply.Character:findFirstChild("HumanoidRootPart") then
  881.                             if ply:findFirstChild("humrootpos") then
  882.                                 ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  883.                             else
  884.                                 local posnow = Instance.new("CFrameValue", ply)
  885.                                 posnow.Value = ply.Character.HumanoidRootPart.CFrame
  886.                                 posnow.Name = "humrootpos"
  887.                             end
  888.                         end
  889.                         while wait() and not ply:findFirstChild("stopsandboxing") do
  890.                             if ply.Character then
  891.                                 if ply.Character:findFirstChild("HumanoidRootPart") then
  892.                                     if ply:findFirstChild("humrootpos") then
  893.                                         ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  894.                                     else
  895.                                         local posnow = Instance.new("CFrameValue", ply)
  896.                                         posnow.Value = ply.Character.HumanoidRootPart.CFrame
  897.                                         posnow.Name = "humrootpos"
  898.                                     end
  899.                                 end
  900.                             end
  901.                             if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
  902.                                 ply:LoadCharacter()
  903.                                 while not ply.Character do
  904.                                     game:GetService("RunService").Stepped:wait()
  905.                                 end
  906.                                 ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
  907.                                 wait()
  908.                                 modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  909.                                 modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  910.                                 local scamhumanoid = Instance.new("Humanoid", modell)
  911.                                 modell2 = Instance.new("Model", modell)
  912.                                 modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  913.                                 ply.Character.Parent = modell2
  914.                                 ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  915.                             end
  916.                         end
  917.                         print("stopped")
  918.                         ply:LoadCharacter()
  919.                         while not ply.Character do
  920.                             game:GetService("RunService").Stepped:wait()
  921.                         end
  922.                         ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
  923.                         ply:findFirstChild("humrootpos"):destroy()
  924.                     end
  925.                     spawn(checkifnil)
  926.                     message("Separated every player from workspace.")
  927.                 end
  928.             end
  929.         else
  930.             local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 10))
  931.             if ply then
  932.                 if ply.Character then
  933.                     modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  934.                     modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  935.                     local scamhumanoid = Instance.new("Humanoid", modell)
  936.                     modell2 = Instance.new("Model", modell)
  937.                     modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  938.                     ply.Character.Parent = modell2
  939.                     ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  940.                     local function checkifnil()
  941.                         if ply.Character:findFirstChild("HumanoidRootPart") then
  942.                             if ply:findFirstChild("humrootpos") then
  943.                                 ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  944.                             else
  945.                                 local posnow = Instance.new("CFrameValue", ply)
  946.                                 posnow.Value = ply.Character.HumanoidRootPart.CFrame
  947.                                 posnow.Name = "humrootpos"
  948.                             end
  949.                         end
  950.                         while wait() and not ply:findFirstChild("stopsandboxing") do
  951.                             if ply.Character then
  952.                                 if ply.Character:findFirstChild("HumanoidRootPart") then
  953.                                     if ply:findFirstChild("humrootpos") then
  954.                                         ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  955.                                     else
  956.                                         local posnow = Instance.new("CFrameValue", ply)
  957.                                         posnow.Value = ply.Character.HumanoidRootPart.CFrame
  958.                                         posnow.Name = "humrootpos"
  959.                                     end
  960.                                 end
  961.                             end
  962.                             if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
  963.                                 ply:LoadCharacter()
  964.                                 while not ply.Character do
  965.                                     game:GetService("RunService").Stepped:wait()
  966.                                 end
  967.                                 ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
  968.                                 wait()
  969.                                 modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  970.                                 modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  971.                                 local scamhumanoid = Instance.new("Humanoid", modell)
  972.                                 modell2 = Instance.new("Model", modell)
  973.                                 modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  974.                                 ply.Character.Parent = modell2
  975.                                 ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  976.                             end
  977.                         end
  978.                         print("stopped")
  979.                         ply:LoadCharacter()
  980.                         while not ply.Character do
  981.                             game:GetService("RunService").Stepped:wait()
  982.                         end
  983.                         ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
  984.                         ply:findFirstChild("humrootpos"):destroy()
  985.                     end
  986.                     spawn(checkifnil)
  987.                     message("Separated "..ply.Name.." from workspace.")
  988.                 else
  989.                     message("Player didnt spawn yet.")
  990.                 end
  991.             else
  992.                 message("Cannot find the player named '"..string.sub(chat, 10).."'.")
  993.             end
  994.         end
  995.     end
  996. end
  997. owner.Chatted:connect(commands)
  998. function ragdollkill(character)
  999.     local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  1000.     if character:findFirstChild("wooosh") then
  1001.         character:findFirstChild("wooosh"):destroy()
  1002.     end
  1003.     if not character:findFirstChild("UpperTorso") then
  1004.         character.Archivable = true
  1005.         for i,v in pairs(character:GetChildren()) do
  1006.             if v.ClassName == "Sound" then
  1007.                 v:remove()
  1008.             end
  1009.             for q,w in pairs(v:GetChildren()) do
  1010.                 if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then
  1011.                     w:remove()
  1012.                 end
  1013.             end
  1014.         end
  1015.         local ragdoll = character:Clone()
  1016.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1017.         if ragdoll:findFirstChild("Health") then
  1018.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1019.                 ragdoll:findFirstChild("Health").Disabled = true
  1020.             end
  1021.         end
  1022.         for i,v in pairs(character:GetChildren()) do
  1023.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1024.                 v:destroy()
  1025.             end
  1026.         end
  1027.         for i,v in pairs(character:GetChildren()) do
  1028.             if v.ClassName == "Accessory" then
  1029.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1030.                 if attachment1 then
  1031.                     for q,w in pairs(character:GetChildren()) do
  1032.                         if w.ClassName == "Part" then
  1033.                             local attachment2 = w:findFirstChild(attachment1.Name)
  1034.                             if attachment2 then
  1035.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  1036.                                 hinge.Attachment0 = attachment1
  1037.                                 hinge.Attachment1 = attachment2
  1038.                                 hinge.LimitsEnabled = true
  1039.                                 hinge.LowerAngle = 0
  1040.                                 hinge.UpperAngle = 0
  1041.                             end
  1042.                         end
  1043.                     end
  1044.                 end
  1045.             end
  1046.         end
  1047.         ragdoll.Parent = workspace
  1048.         if ragdoll:findFirstChild("Right Arm") then
  1049.             local glue = Instance.new("Glue", ragdoll.Torso)
  1050.             glue.Part0 = ragdoll.Torso
  1051.             glue.Part1 = ragdoll:findFirstChild("Right Arm")
  1052.             glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1053.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1054.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  1055.             limbcollider.Size = Vector3.new(1.4,1,1)
  1056.             limbcollider.Shape = "Cylinder"
  1057.             limbcollider.Transparency = 1
  1058.             limbcollider.Name = "LimbCollider"
  1059.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1060.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  1061.             limbcolliderweld.Part1 = limbcollider
  1062.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1063.         end
  1064.         if ragdoll:findFirstChild("Left Arm") then
  1065.             local glue = Instance.new("Glue", ragdoll.Torso)
  1066.             glue.Part0 = ragdoll.Torso
  1067.             glue.Part1 = ragdoll:findFirstChild("Left Arm")
  1068.             glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1069.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1070.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  1071.             limbcollider.Size = Vector3.new(1.4,1,1)
  1072.             limbcollider.Shape = "Cylinder"
  1073.             limbcollider.Name = "LimbCollider"
  1074.             limbcollider.Transparency = 1
  1075.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1076.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  1077.             limbcolliderweld.Part1 = limbcollider
  1078.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1079.         end
  1080.         if ragdoll:findFirstChild("Left Leg") then
  1081.             local glue = Instance.new("Glue", ragdoll.Torso)
  1082.             glue.Part0 = ragdoll.Torso
  1083.             glue.Part1 = ragdoll:findFirstChild("Left Leg")
  1084.             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1085.             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1086.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  1087.             limbcollider.Size = Vector3.new(1.4,1,1)
  1088.             limbcollider.Shape = "Cylinder"
  1089.             limbcollider.Name = "LimbCollider"
  1090.             limbcollider.Transparency = 1
  1091.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1092.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  1093.             limbcolliderweld.Part1 = limbcollider
  1094.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1095.         end
  1096.         if ragdoll:findFirstChild("Right Leg") then
  1097.             local glue = Instance.new("Glue", ragdoll.Torso)
  1098.             glue.Part0 = ragdoll.Torso
  1099.             glue.Part1 = ragdoll:findFirstChild("Right Leg")
  1100.             glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1101.             glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1102.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  1103.             limbcollider.Size = Vector3.new(1.4,1,1)
  1104.             limbcollider.Shape = "Cylinder"
  1105.             limbcollider.Name = "LimbCollider"
  1106.             limbcollider.Transparency = 1
  1107.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1108.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  1109.             limbcolliderweld.Part1 = limbcollider
  1110.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1111.         end
  1112.         if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  1113.             local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  1114.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1115.             local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  1116.             connection.LimitsEnabled = true
  1117.             connection.Attachment0 = ragdoll.Torso.NeckAttachment
  1118.             connection.Attachment1 = HeadAttachment
  1119.             connection.UpperAngle = 60
  1120.             connection.LowerAngle = -60
  1121.         elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  1122.             local hedweld = Instance.new("Weld", ragdoll.Torso)
  1123.             hedweld.Part0 = ragdoll.Torso
  1124.             hedweld.Part1 = ragdoll.Head
  1125.             hedweld.C0 = CFrame.new(0,1.5,0)
  1126.         end
  1127.         game.Debris:AddItem(ragdoll, 5)
  1128.         local function aaaalol()
  1129.             wait(0.2)
  1130.             local function searchforvelocity(wot)
  1131.                 for i,v in pairs(wot:GetChildren()) do
  1132.                     searchforvelocity(v)
  1133.                     if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1134.                         v:destroy()
  1135.                     end
  1136.                 end
  1137.             end
  1138.             searchforvelocity(ragdoll)
  1139.             wait(0.5)
  1140.             if ragdoll:findFirstChildOfClass("Humanoid") then
  1141.                 ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1142.             end
  1143.             if ragdoll:findFirstChild("HumanoidRootPart") then
  1144.                 ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  1145.             end
  1146.         end
  1147.         spawn(aaaalol)
  1148.     elseif character:findFirstChild("UpperTorso") then
  1149.         character.Archivable = true
  1150.         for i,v in pairs(character:GetChildren()) do
  1151.             if v.ClassName == "Sound" then
  1152.                 v:remove()
  1153.             end
  1154.             for q,w in pairs(v:GetChildren()) do
  1155.                 if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then
  1156.                     w:remove()
  1157.                 end
  1158.             end
  1159.         end
  1160.         local ragdoll = character:Clone()
  1161.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1162.         if ragdoll:findFirstChild("Health") then
  1163.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1164.                 ragdoll:findFirstChild("Health").Disabled = true
  1165.             end
  1166.         end
  1167.         for i,v in pairs(character:GetChildren()) do
  1168.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  1169.                 v:destroy()
  1170.             end
  1171.         end
  1172.         for i,v in pairs(character:GetChildren()) do
  1173.             if v.ClassName == "Accessory" then
  1174.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1175.                 if attachment1 then
  1176.                     for q,w in pairs(character:GetChildren()) do
  1177.                         if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  1178.                             local attachment2 = w:findFirstChild(attachment1.Name)
  1179.                             if attachment2 then
  1180.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  1181.                                 hinge.Attachment0 = attachment1
  1182.                                 hinge.Attachment1 = attachment2
  1183.                                 hinge.LimitsEnabled = true
  1184.                                 hinge.LowerAngle = 0
  1185.                                 hinge.UpperAngle = 0
  1186.                             end
  1187.                         end
  1188.                     end
  1189.                 end
  1190.             end
  1191.         end
  1192.         ragdoll.Parent = workspace
  1193.         local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  1194.         Humanoid.PlatformStand = true
  1195.         local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  1196.             local connection = Instance.new('BallSocketConstraint', limb)
  1197.             connection.LimitsEnabled = true
  1198.             connection.Attachment0 = attachementone
  1199.             connection.Attachment1 = attachmenttwo
  1200.             connection.TwistLimitsEnabled = true
  1201.             connection.TwistLowerAngle = twistlower
  1202.             connection.TwistUpperAngle = twistupper
  1203.             local limbcollider = Instance.new("Part", limb)
  1204.             limbcollider.Size = Vector3.new(0.1,1,1)
  1205.             limbcollider.Shape = "Cylinder"
  1206.             limbcollider.Transparency = 1
  1207.             limbcollider:BreakJoints()
  1208.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1209.             limbcolliderweld.Part0 = limb
  1210.             limbcolliderweld.Part1 = limbcollider
  1211.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1212.         end
  1213.         local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  1214.             local connection = Instance.new('HingeConstraint', limb)
  1215.             connection.LimitsEnabled = true
  1216.             connection.Attachment0 = attachementone
  1217.             connection.Attachment1 = attachmenttwo
  1218.             connection.LimitsEnabled = true
  1219.             connection.LowerAngle = lower
  1220.             connection.UpperAngle = upper
  1221.             local limbcollider = Instance.new("Part", limb)
  1222.             limbcollider.Size = Vector3.new(0.1,1,1)
  1223.             limbcollider.Shape = "Cylinder"
  1224.             limbcollider.Transparency = 1
  1225.             limbcollider:BreakJoints()
  1226.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  1227.             limbcolliderweld.Part0 = limb
  1228.             limbcolliderweld.Part1 = limbcollider
  1229.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1230.         end
  1231.         if Humanoid.Parent:findFirstChild("Head") then
  1232.             HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  1233.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1234.         end
  1235.         if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  1236.             makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  1237.         end
  1238.         makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  1239.         makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  1240.         makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  1241.         makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  1242.         --
  1243.         makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  1244.         makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  1245.         makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  1246.         --
  1247.         makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  1248.         makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  1249.         makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  1250.         --
  1251.         makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  1252.         makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  1253.         makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  1254.         for i,v in pairs(Humanoid.Parent:GetChildren()) do
  1255.             if v.ClassName == "Accessory" then
  1256.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1257.                 if attachment1 then
  1258.                     for q,w in pairs(Humanoid.Parent:GetChildren()) do
  1259.                         if w.ClassName == "Part" then
  1260.                             local attachment2 = w:findFirstChild(attachment1.Name)
  1261.                             if attachment2 then
  1262.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  1263.                                 hinge.Attachment0 = attachment1
  1264.                                 hinge.Attachment1 = attachment2
  1265.                                 hinge.LimitsEnabled = true
  1266.                                 hinge.LowerAngle = 0
  1267.                                 hinge.UpperAngle = 0
  1268.                             end
  1269.                         end
  1270.                     end
  1271.                 end
  1272.             end
  1273.         end
  1274.         for i,v in pairs(ragdoll:GetChildren()) do
  1275.             for q,w in pairs(v:GetChildren()) do
  1276.                 if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  1277.                     w:destroy()
  1278.                 end
  1279.             end
  1280.         end
  1281.         if ragdoll:findFirstChild("HumanoidRootPart") then
  1282.             ragdoll.HumanoidRootPart.Anchored = true
  1283.             ragdoll.HumanoidRootPart.CanCollide = false
  1284.         end
  1285.         if ragdoll:findFirstChildOfClass("Humanoid") then
  1286.             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1287.         end
  1288.         local function waitfordatmoment()
  1289.             wait(0.2)
  1290.             local function searchforvelocity(wot)
  1291.                 for i,v in pairs(wot:GetChildren()) do
  1292.                     searchforvelocity(v)
  1293.                     if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1294.                         v:destroy()
  1295.                     end
  1296.                 end
  1297.             end
  1298.             searchforvelocity(ragdoll)
  1299.         end
  1300.         spawn(waitfordatmoment)
  1301.         game.Debris:AddItem(ragdoll, 5)
  1302.     end
  1303. end
  1304. print("commands:")
  1305. print(",ragdoll on/off - toggles ragdoll death on punishments")
  1306. print(",notify on/off - toggles notify bricks")
  1307. print(",sandbox (player name) - changes player's parent from workspace to terrain")
  1308. print(",unsandbox (player name) - changes player's parent from terrain to workspace")
  1309. print(",stop (player name) - manual punishment")
  1310. message("Rufus14's Anti-Skid v4 executed successfully. (ADDED MORE COMMANDS AND PUNISHMENTS)")
Advertisement
Add Comment
Please, Sign In to add comment