SebTDZ

Enum's Admin V1

Jul 9th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.80 KB | None | 0 0
  1. game:FindFirstChildOfClass("Players").Name = "Players"
  2. wait(0.3)
  3.  
  4. function NewMessage(msg)
  5.     plr = game.Workspace:WaitForChild(owner.Name)
  6.     plrH = plr:WaitForChild('HumanoidRootPart')
  7.    
  8.     --New Folder
  9.     local NewFolder = Instance.new("Folder")
  10.     NewFolder.Parent = plrH
  11.     local Num = math.random(1,8)
  12.     if plrH:FindFirstChild("Item" .. Num) then
  13.         plrH:FindFirstChild("Item" .. Num):Remove()
  14.     end
  15.     NewFolder.Name = "Item" .. Num
  16.     --New Model
  17.     local NewModel = Instance.new("Model")
  18.     NewModel.Parent = NewFolder
  19.     NewModel.Name = msg
  20.     --New Humanoid
  21.     local NewHumanoid = Instance.new("Humanoid")
  22.     NewHumanoid.Parent = NewModel
  23.     --New Part
  24.     local NewPart = Instance.new("Part")
  25.     NewPart.Parent = NewModel
  26.     NewPart.Material = "ForceField"
  27.     NewPart.Position = plrH.Position
  28.     NewPart.BrickColor = BrickColor.new("Bright blue")
  29.     NewPart.Anchored = false
  30.     NewPart.CanCollide = false
  31.     NewPart.Size = Vector3.new(2, 2, 2)
  32.     NewPart.Name = "Head"
  33.     --BodyPos
  34.     local Places =
  35. {Vector3.new(5, 0, 5),Vector3.new(-5, 0, -5),Vector3.new(-5, 0, 0),Vector3.new(-5, 0, 5),Vector3.new(0, 0,  5),Vector3.new(5, 0, 5),Vector3.new(5, 0, 0),Vector3.new(5, 0, -5),Vector3.new(0, 0, -5)}
  36.    
  37.     local LocPos = Places[Num]
  38.     local Part = NewPart
  39.     local Body = Instance.new("BodyPosition")
  40.     Body.Parent = Part
  41.     Body.Position = plrH.Position + LocPos
  42.     Body. MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  43.    
  44.     local Body2 = Instance.new("BodyAngularVelocity")
  45.     Body2.Parent = Part
  46.     Body2.AngularVelocity = Vector3.new(1, 1, 1)
  47.    
  48.     game.Debris:AddItem(NewFolder,5)
  49.    
  50.     i = 0
  51.  
  52.     while i <= 50 do
  53.         Body.Position = plrH.Position + LocPos
  54.         i = i + 1
  55.         wait(0.1)
  56.     end
  57. end
  58.  
  59. owner.Chatted:connect(function(message)
  60.     local messageLow = string.lower(message)
  61.     if messageLow:sub(1, 5) == "!age " then
  62.         local TargetPlayer = FindPlayer(message:sub(6))
  63.         NewMessage("Age: " .. game.Players:FindFirstChild(TargetPlayer).AccountAge)
  64.     elseif messageLow:sub(1, 4) == "!re " then
  65.         local TargetPlayer = FindPlayer(message:sub(5))
  66.         local Pos = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame
  67.         game.Players:FindFirstChild(TargetPlayer):LoadCharacter()
  68.         game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame = Pos
  69.         NewMessage("Respawned " .. TargetPlayer)
  70.     elseif messageLow:sub(1, 4) == "!to " then
  71.         local TargetPlayer = FindPlayer(messageLow:sub(5))
  72.         local TPH = game.Players:FindFirstChild(TargetPlayer)
  73.         owner.Character:WaitForChild('HumanoidRootPart').CFrame = TPH.Character:WaitForChild('HumanoidRootPart').CFrame
  74.         NewMessage("Teleported to " .. TargetPlayer)
  75.     elseif messageLow:sub(1, 6) == "!here " then
  76.         local TargetPlayer = FindPlayer(messageLow:sub(7))
  77.         local TPH = game.Players:FindFirstChild(TargetPlayer)
  78.         TPH.Character:WaitForChild('HumanoidRootPart').CFrame = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  79.         NewMessage("Teleported " .. TargetPlayer .. " here")
  80.     elseif messageLow:sub(1, 6) == "!grav " then
  81.         game.Workspace.Gravity = tonumber(messageLow:sub(7))
  82.         NewMessage("Gravity Set to " .. tonumber(messageLow:sub(7)))
  83.     elseif messageLow:sub(1, 8) == "!fixgrav" then
  84.         game.Workspace.Gravity = 196.19999694824
  85.         NewMessage("Gravity Fixed")
  86.     elseif messageLow:sub(1, 8) == "!remove " then
  87.         local TargetPlayer = FindPlayer(message:sub(9))
  88.         game.Players:FindFirstChild(TargetPlayer).Character.Parent = nil
  89.         NewMessage("Removed " .. TargetPlayer .. "'s Character")
  90.     elseif messageLow:sub(1, 6) == "!kill " then
  91.         local TargetPlayer = FindPlayer(message:sub(7))
  92.         game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Health = 0
  93.         NewMessage("Killed " .. TargetPlayer)
  94.     elseif messageLow:sub(1, 5) == "!sit " then
  95.         local TargetPlayer = FindPlayer(message:sub(6))
  96.         game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Sit = true
  97.         NewMessage("Seated " .. TargetPlayer)
  98.     elseif messageLow:sub(1, 6) == "!jump " then
  99.         local TargetPlayer = FindPlayer(message:sub(7))
  100.         game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Jump = true
  101.         NewMessage("Made " .. TargetPlayer .. " Jump")
  102.     elseif messageLow:sub(1, 4) == "!ff " then
  103.         local TargetPlayer = FindPlayer(message:sub(5))
  104.         Instance.new("ForceField", game.Players:FindFirstChild(TargetPlayer).Character)
  105.         NewMessage("Gave  " .. TargetPlayer .. " ForceField")
  106.     elseif messageLow:sub(1, 6) == "!unff " then
  107.         local TargetPlayer = FindPlayer(message:sub(7))
  108.         for i,obj in pairs(game.Players:FindFirstChild(TargetPlayer).Character:GetChildren()) do
  109.             if obj.ClassName == "ForceField" then
  110.                 obj:Remove()
  111.             end
  112.         end
  113.         NewMessage("Removed  " .. TargetPlayer .. "'s ForceField")
  114.     elseif messageLow:sub(1, 4) == "!ex " then
  115.         local TargetPlayer = FindPlayer(message:sub(5))
  116.         local TPH = game.Players:FindFirstChild(TargetPlayer)
  117.         local Explosion = Instance.new("Explosion", TPH.Character)
  118.         Explosion.BlastRadius = 3
  119.         Explosion.Position = TPH.Character.HumanoidRootPart.Position
  120.         NewMessage("Exploded " .. TargetPlayer)
  121.     elseif messageLow:sub(1, 6) == "!stun " then
  122.         local TargetPlayer = FindPlayer(message:sub(7))
  123.         game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").PlatformStand = true
  124.         NewMessage("Studed " .. TargetPlayer)
  125.     elseif messageLow:sub(1, 8) == "!unstun " then
  126.         local TargetPlayer = FindPlayer(message:sub(9))
  127.         game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").PlatformStand = false
  128.         NewMessage("Unstuded " .. TargetPlayer)
  129.     elseif messageLow:sub(1, 7) == "!fling " then
  130.         local TargetPlayer = FindPlayer(message:sub(8))
  131.         local TPH = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart
  132.         local Body = Instance.new("BodyPosition")
  133.         Body.Parent = TPH
  134.         Body.Position = Vector3.new(999 * 999,999 * 999,999 * 999)
  135.         Body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  136.         NewMessage("Flinged " .. TargetPlayer)
  137.     elseif messageLow:sub(1, 3) == "!m " then
  138.         Message(message:sub(4))
  139.         NewMessage("Made Message")
  140.     elseif messageLow:sub(1, 5) == "!rag " then
  141.         local TargetPlayer = FindPlayer(message:sub(6))
  142.         local TP = game.Players:FindFirstChild(TargetPlayer)
  143.         if TP.Character then
  144.             TP.Character:BreakJoints()
  145.             ragdollkill(TP.Character)
  146.         end
  147.         NewMessage("Made " .. TargetPlayer .. " Ragdoll")
  148.     elseif messageLow:sub(1, 5) == "!fly " then
  149.         local TargetPlayer = FindPlayer(message:sub(6))
  150.         local TP = game.Players:FindFirstChild(TargetPlayer)
  151.         Fly(TP)
  152.         NewMessage("Asked " .. TargetPlayer .. " if she or he want's to fly | E=Up and Q=Stay")
  153.     end
  154. end)
  155.  
  156. function FindPlayer(FindUser)
  157.     local findUser = string.lower(FindUser)
  158.     local inputsize = string.len(findUser)
  159.     for i, v in pairs(game.Players:GetChildren()) do
  160.         local NameLow = string.lower(v.Name)
  161.         if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
  162.             return v.Name
  163.         end
  164.     end
  165. end
  166.  
  167. game.Players.ChildAdded:Connect(function(newPlayer)
  168.     NewMessage("Connected: " .. newPlayer.Name)
  169. end)
  170.  
  171. game.Players.ChildRemoved:Connect(function(removedPlayer)
  172.     NewMessage("Disconnected: " .. removedPlayer.Name)
  173. end)
  174.  
  175. function Message(message)
  176.     for i, player in pairs(game.Players:GetChildren()) do
  177.         -- Instances:
  178.         local Gui = Instance.new("ScreenGui")
  179.         local Text = Instance.new("TextLabel")
  180.         --Properties:
  181.         Gui.Name = "Message"
  182.         Gui.Parent = player:WaitForChild("PlayerGui")
  183.         Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  184.        
  185.         Text.Name = "Text"
  186.         Text.Text = message
  187.         Text.Parent = Gui
  188.         Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  189.         Text.BackgroundTransparency = 0.55000001192093
  190.         Text.BorderSizePixel = 0
  191.         Text.Size = UDim2.new(1, 0, 1, 0)
  192.         Text.Font = Enum.Font.SciFi
  193.         Text.TextColor3 = Color3.new(0, 0, 0)
  194.         Text.TextSize = 50
  195.         game.Debris:AddItem(Gui,5)
  196.     end
  197. end
  198.  
  199. function ragdollkill(character)
  200.     local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  201.     if not character:findFirstChild("UpperTorso") then
  202.         character.Archivable = true
  203.         for i,v in pairs(character:GetChildren()) do
  204.             if v.ClassName == "Sound" then
  205.                 v:remove()
  206.             end
  207.             for q,w in pairs(v:GetChildren()) do
  208.                 if w.ClassName == "Sound" then
  209.                     w:remove()
  210.                 end
  211.             end
  212.         end
  213.         local ragdoll = character:Clone()
  214.         ragdoll:findFirstChildOfClass("Humanoid").Health = "inf"
  215.         if ragdoll:findFirstChild("Health") then
  216.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  217.                 ragdoll:findFirstChild("Health").Disabled = true
  218.             end
  219.         end
  220.         for i,v in pairs(character:GetChildren()) do
  221.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  222.                 v:destroy()
  223.             end
  224.         end
  225.         for i,v in pairs(character:GetChildren()) do
  226.             if v.ClassName == "Accessory" then
  227.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  228.                 if attachment1 then
  229.                     for q,w in pairs(character:GetChildren()) do
  230.                         if w.ClassName == "Part" then
  231.                             local attachment2 = w:findFirstChild(attachment1.Name)
  232.                             if attachment2 then
  233.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  234.                                 hinge.Attachment0 = attachment1
  235.                                 hinge.Attachment1 = attachment2
  236.                                 hinge.LimitsEnabled = true
  237.                                 hinge.LowerAngle = 0
  238.                                 hinge.UpperAngle = 0
  239.                             end
  240.                         end
  241.                     end
  242.                 end
  243.             end
  244.         end
  245.         ragdoll.Parent = workspace
  246.         if ragdoll:findFirstChild("Right Arm") then
  247.             local glue = Instance.new("Glue", ragdoll.Torso)
  248.             glue.Part0 = ragdoll.Torso
  249.             glue.Part1 = ragdoll:findFirstChild("Right Arm")
  250.             glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  251.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  252.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  253.             limbcollider.Size = Vector3.new(1.4,1,1)
  254.             limbcollider.Shape = "Cylinder"
  255.             limbcollider.Transparency = 1
  256.             limbcollider.Name = "LimbCollider"
  257.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  258.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  259.             limbcolliderweld.Part1 = limbcollider
  260.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  261.         end
  262.         if ragdoll:findFirstChild("Left Arm") then
  263.             local glue = Instance.new("Glue", ragdoll.Torso)
  264.             glue.Part0 = ragdoll.Torso
  265.             glue.Part1 = ragdoll:findFirstChild("Left Arm")
  266.             glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  267.             glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  268.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  269.             limbcollider.Size = Vector3.new(1.4,1,1)
  270.             limbcollider.Shape = "Cylinder"
  271.             limbcollider.Name = "LimbCollider"
  272.             limbcollider.Transparency = 1
  273.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  274.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  275.             limbcolliderweld.Part1 = limbcollider
  276.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  277.         end
  278.         if ragdoll:findFirstChild("Left Leg") then
  279.             local glue = Instance.new("Glue", ragdoll.Torso)
  280.             glue.Part0 = ragdoll.Torso
  281.             glue.Part1 = ragdoll:findFirstChild("Left Leg")
  282.             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  283.             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  284.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  285.             limbcollider.Size = Vector3.new(1.4,1,1)
  286.             limbcollider.Shape = "Cylinder"
  287.             limbcollider.Name = "LimbCollider"
  288.             limbcollider.Transparency = 1
  289.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  290.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  291.             limbcolliderweld.Part1 = limbcollider
  292.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  293.         end
  294.         if ragdoll:findFirstChild("Right Leg") then
  295.             local glue = Instance.new("Glue", ragdoll.Torso)
  296.             glue.Part0 = ragdoll.Torso
  297.             glue.Part1 = ragdoll:findFirstChild("Right Leg")
  298.             glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  299.             glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  300.             local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  301.             limbcollider.Size = Vector3.new(1.4,1,1)
  302.             limbcollider.Shape = "Cylinder"
  303.             limbcollider.Name = "LimbCollider"
  304.             limbcollider.Transparency = 1
  305.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  306.             limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  307.             limbcolliderweld.Part1 = limbcollider
  308.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  309.         end
  310.         if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  311.             local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  312.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  313.             local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  314.             connection.LimitsEnabled = true
  315.             connection.Attachment0 = ragdoll.Torso.NeckAttachment
  316.             connection.Attachment1 = HeadAttachment
  317.             connection.UpperAngle = 60
  318.             connection.LowerAngle = -60
  319.         elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  320.             local hedweld = Instance.new("Weld", ragdoll.Torso)
  321.             hedweld.Part0 = ragdoll.Torso
  322.             hedweld.Part1 = ragdoll.Head
  323.             hedweld.C0 = CFrame.new(0,1.5,0)
  324.         end
  325.         game.Debris:AddItem(ragdoll, 30)
  326.         wait(0.7)
  327.         if ragdoll:findFirstChildOfClass("Humanoid") then
  328.             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  329.         end
  330.         if ragdoll:findFirstChild("HumanoidRootPart") then
  331.             ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  332.         end
  333.     elseif character:findFirstChild("UpperTorso") then
  334.         character.Archivable = true
  335.         for i,v in pairs(character:GetChildren()) do
  336.             if v.ClassName == "Sound" then
  337.                 v:remove()
  338.             end
  339.             for q,w in pairs(v:GetChildren()) do
  340.                 if w.ClassName == "Sound" then
  341.                     w:remove()
  342.                 end
  343.             end
  344.         end
  345.         local ragdoll = character:Clone()
  346.         ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  347.         if ragdoll:findFirstChild("Health") then
  348.             if ragdoll:findFirstChild("Health").ClassName == "Script" then
  349.                 ragdoll:findFirstChild("Health").Disabled = true
  350.             end
  351.         end
  352.         for i,v in pairs(character:GetChildren()) do
  353.             if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  354.                 v:destroy()
  355.             end
  356.         end
  357.         for i,v in pairs(character:GetChildren()) do
  358.             if v.ClassName == "Accessory" then
  359.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  360.                 if attachment1 then
  361.                     for q,w in pairs(character:GetChildren()) do
  362.                         if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  363.                             local attachment2 = w:findFirstChild(attachment1.Name)
  364.                             if attachment2 then
  365.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  366.                                 hinge.Attachment0 = attachment1
  367.                                 hinge.Attachment1 = attachment2
  368.                                 hinge.LimitsEnabled = true
  369.                                 hinge.LowerAngle = 0
  370.                                 hinge.UpperAngle = 0
  371.                             end
  372.                         end
  373.                     end
  374.                 end
  375.             end
  376.         end
  377.         ragdoll.Parent = workspace
  378.         local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  379.         Humanoid.PlatformStand = true
  380.         local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  381.             local connection = Instance.new('BallSocketConstraint', limb)
  382.             connection.LimitsEnabled = true
  383.             connection.Attachment0 = attachementone
  384.             connection.Attachment1 = attachmenttwo
  385.             connection.TwistLimitsEnabled = true
  386.             connection.TwistLowerAngle = twistlower
  387.             connection.TwistUpperAngle = twistupper
  388.             local limbcollider = Instance.new("Part", limb)
  389.             limbcollider.Size = Vector3.new(0.1,1,1)
  390.             limbcollider.Shape = "Cylinder"
  391.             limbcollider.Transparency = 1
  392.             limbcollider:BreakJoints()
  393.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  394.             limbcolliderweld.Part0 = limb
  395.             limbcolliderweld.Part1 = limbcollider
  396.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  397.         end
  398.         local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  399.             local connection = Instance.new('HingeConstraint', limb)
  400.             connection.LimitsEnabled = true
  401.             connection.Attachment0 = attachementone
  402.             connection.Attachment1 = attachmenttwo
  403.             connection.LimitsEnabled = true
  404.             connection.LowerAngle = lower
  405.             connection.UpperAngle = upper
  406.             local limbcollider = Instance.new("Part", limb)
  407.             limbcollider.Size = Vector3.new(0.1,1,1)
  408.             limbcollider.Shape = "Cylinder"
  409.             limbcollider.Transparency = 1
  410.             limbcollider:BreakJoints()
  411.             local limbcolliderweld = Instance.new("Weld", limbcollider)
  412.             limbcolliderweld.Part0 = limb
  413.             limbcolliderweld.Part1 = limbcollider
  414.             limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  415.         end
  416.         local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  417.         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  418.         makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  419.         makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  420.         makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  421.         makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  422.         makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  423.         --
  424.         makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  425.         makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  426.         makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  427.         --
  428.         makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  429.         makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  430.         makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  431.         --
  432.         makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  433.         makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  434.         makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  435.         for i,v in pairs(Humanoid.Parent:GetChildren()) do
  436.             if v.ClassName == "Accessory" then
  437.                 local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  438.                 if attachment1 then
  439.                     for q,w in pairs(Humanoid.Parent:GetChildren()) do
  440.                         if w.ClassName == "Part" then
  441.                             local attachment2 = w:findFirstChild(attachment1.Name)
  442.                             if attachment2 then
  443.                                 local hinge = Instance.new("HingeConstraint", v.Handle)
  444.                                 hinge.Attachment0 = attachment1
  445.                                 hinge.Attachment1 = attachment2
  446.                                 hinge.LimitsEnabled = true
  447.                                 hinge.LowerAngle = 0
  448.                                 hinge.UpperAngle = 0
  449.                             end
  450.                         end
  451.                     end
  452.                 end
  453.             end
  454.         end
  455.         for i,v in pairs(ragdoll:GetChildren()) do
  456.             for q,w in pairs(v:GetChildren()) do
  457.                 if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
  458.                     w:destroy()
  459.                 end
  460.             end
  461.         end
  462.         if ragdoll:findFirstChild("HumanoidRootPart") then
  463.             ragdoll.HumanoidRootPart.Anchored = true
  464.             ragdoll.HumanoidRootPart.CanCollide = false
  465.         end
  466.         if ragdoll:findFirstChildOfClass("Humanoid") then
  467.             ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  468.         end
  469.         game.Debris:AddItem(ragdoll, 30)
  470.     end
  471. end
  472.  
  473. function Fly(plr)
  474. NLS([[
  475. local velo = Instance.new("BodyVelocity", game.Players.LocalPlayer)
  476. velo.MaxForce = Vector3.new(0,math.huge,0)
  477. velo.Velocity = Vector3.new(0,60,0)
  478.  
  479. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  480.     if key == "e" then
  481.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  482.         velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  483.     elseif key == "q" then
  484.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  485.         velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  486.         velo.Velocity = Vector3.new(0,0.001,0)
  487.     end
  488. end)
  489.  
  490. game.Players.LocalPlayer:GetMouse().KeyUp:Connect(function(key)
  491.     if key == "e" then
  492.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  493.         velo.Parent = game.Players.LocalPlayer
  494.     elseif key == "q" then
  495.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  496.         velo.Parent = game.Players.LocalPlayer
  497.         velo.Velocity = Vector3.new(0,60,0)
  498.     end
  499. end)
  500. ]], plr.Character)
  501. end
  502.  
  503. NewMessage("Enum's Admin V1 Loaded")
Add Comment
Please, Sign In to add comment