Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SynapseX Decompiler
- local Fb4b487, i52d97bb5fb3, N9a6e29b1fb, k82d08c, v5fa82d74, K0523ef0ea4
- do
- local Cec078839 = {}
- local P99a4e = function(oecd29ab9d)
- local C3e6f1f3dec = Instance.new("BallSocketConstraint")
- C3e6f1f3dec.Name = "RagdollNeck"
- C3e6f1f3dec.Attachment0 = oecd29ab9d.UpperTorso.NeckRigAttachment
- C3e6f1f3dec.Attachment1 = oecd29ab9d.Head.NeckRigAttachment
- C3e6f1f3dec.LimitsEnabled = true
- C3e6f1f3dec.UpperAngle = 25
- C3e6f1f3dec.Enabled = false
- C3e6f1f3dec.Parent = oecd29ab9d
- local i3fe4b3 = Instance.new("BallSocketConstraint")
- i3fe4b3.Name = "RagdollWaist"
- i3fe4b3.Attachment0 = oecd29ab9d.LowerTorso.WaistRigAttachment
- i3fe4b3.Attachment1 = oecd29ab9d.UpperTorso.WaistRigAttachment
- i3fe4b3.LimitsEnabled = true
- i3fe4b3.UpperAngle = 5
- i3fe4b3.Enabled = false
- i3fe4b3.Parent = oecd29ab9d
- local H7914375518 = Instance.new("HingeConstraint")
- H7914375518.Name = "RagdollLeftWrist"
- H7914375518.Attachment0 = oecd29ab9d.LeftLowerArm.LeftWristRigAttachment
- H7914375518.Attachment1 = oecd29ab9d.LeftHand.LeftWristRigAttachment
- H7914375518.Enabled = false
- H7914375518.Parent = oecd29ab9d
- local V33e09c9d39b = Instance.new("HingeConstraint")
- V33e09c9d39b.Name = "RagdollRightWrist"
- V33e09c9d39b.Attachment0 = oecd29ab9d.RightLowerArm.RightWristRigAttachment
- V33e09c9d39b.Attachment1 = oecd29ab9d.RightHand.RightWristRigAttachment
- V33e09c9d39b.Enabled = false
- V33e09c9d39b.Parent = oecd29ab9d
- local s2bf39 = Instance.new("HingeConstraint")
- s2bf39.Name = "RagdollLeftKnee"
- s2bf39.Attachment0 = oecd29ab9d.LeftUpperLeg.LeftKneeRigAttachment
- s2bf39.Attachment1 = oecd29ab9d.LeftLowerLeg.LeftKneeRigAttachment
- s2bf39.LimitsEnabled = true
- s2bf39.UpperAngle = 15
- s2bf39.LowerAngle = -45
- s2bf39.Enabled = false
- s2bf39.Parent = oecd29ab9d
- local A5c72eb2 = Instance.new("HingeConstraint")
- A5c72eb2.Name = "RagdollRightKnee"
- A5c72eb2.Attachment0 = oecd29ab9d.RightUpperLeg.RightKneeRigAttachment
- A5c72eb2.Attachment1 = oecd29ab9d.RightLowerLeg.RightKneeRigAttachment
- A5c72eb2.LimitsEnabled = true
- A5c72eb2.UpperAngle = 15
- A5c72eb2.LowerAngle = -45
- A5c72eb2.Enabled = false
- A5c72eb2.Parent = oecd29ab9d
- local w5e2cce = Instance.new("HingeConstraint")
- w5e2cce.Name = "RagdollLeftAnkle"
- w5e2cce.Attachment0 = oecd29ab9d.LeftLowerLeg.LeftAnkleRigAttachment
- w5e2cce.Attachment1 = oecd29ab9d.LeftFoot.LeftAnkleRigAttachment
- w5e2cce.LimitsEnabled = true
- w5e2cce.UpperAngle = 15
- w5e2cce.LowerAngle = -45
- w5e2cce.Enabled = false
- w5e2cce.Parent = oecd29ab9d
- local fcc5884c297 = Instance.new("HingeConstraint")
- fcc5884c297.Name = "RagdollRightAnkle"
- fcc5884c297.Attachment0 = oecd29ab9d.RightLowerLeg.RightAnkleRigAttachment
- fcc5884c297.Attachment1 = oecd29ab9d.RightFoot.RightAnkleRigAttachment
- fcc5884c297.LimitsEnabled = true
- fcc5884c297.UpperAngle = 15
- fcc5884c297.LowerAngle = -45
- fcc5884c297.Enabled = false
- fcc5884c297.Parent = oecd29ab9d
- local R398ceeda782 = Instance.new("BallSocketConstraint")
- R398ceeda782.Name = "RagdollLeftShoulder"
- R398ceeda782.Attachment0 = oecd29ab9d.UpperTorso.LeftShoulderRigAttachment
- R398ceeda782.Attachment1 = oecd29ab9d.LeftUpperArm.LeftShoulderRigAttachment
- R398ceeda782.Enabled = false
- R398ceeda782.Parent = oecd29ab9d
- local p38e0505ce0 = Instance.new("BallSocketConstraint")
- p38e0505ce0.Name = "RagdollRightShoulder"
- p38e0505ce0.Attachment0 = oecd29ab9d.UpperTorso.RightShoulderRigAttachment
- p38e0505ce0.Attachment1 = oecd29ab9d.RightUpperArm.RightShoulderRigAttachment
- p38e0505ce0.Enabled = false
- p38e0505ce0.Parent = oecd29ab9d
- local R179b46a04f = Instance.new("BallSocketConstraint")
- R179b46a04f.Name = "RagdollLeftElbow"
- R179b46a04f.Attachment0 = oecd29ab9d.LeftUpperArm.LeftElbowRigAttachment
- R179b46a04f.Attachment1 = oecd29ab9d.LeftLowerArm.LeftElbowRigAttachment
- R179b46a04f.Enabled = false
- R179b46a04f.Parent = oecd29ab9d
- local Xf99bf = Instance.new("BallSocketConstraint")
- Xf99bf.Name = "RagdollRightElbow"
- Xf99bf.Attachment0 = oecd29ab9d.RightUpperArm.RightElbowRigAttachment
- Xf99bf.Attachment1 = oecd29ab9d.RightLowerArm.RightElbowRigAttachment
- Xf99bf.Enabled = false
- Xf99bf.Parent = oecd29ab9d
- local Ha731ffa8aaf = Instance.new("BallSocketConstraint")
- Ha731ffa8aaf.Name = "RagdollLeftHip"
- Ha731ffa8aaf.Attachment0 = oecd29ab9d.LowerTorso.LeftHipRigAttachment
- Ha731ffa8aaf.Attachment1 = oecd29ab9d.LeftUpperLeg.LeftHipRigAttachment
- Ha731ffa8aaf.Enabled = false
- Ha731ffa8aaf.Parent = oecd29ab9d
- local P8ef208 = Instance.new("BallSocketConstraint")
- P8ef208.Name = "RagdollRightHip"
- P8ef208.Attachment0 = oecd29ab9d.LowerTorso.RightHipRigAttachment
- P8ef208.Attachment1 = oecd29ab9d.RightUpperLeg.RightHipRigAttachment
- P8ef208.Enabled = false
- P8ef208.Parent = oecd29ab9d
- end
- local geb023 = function(z2121366d0, B04f1ba3)
- for O1bc48f87, A4d7eb in next, Enum.HumanoidStateType:GetEnumItems() do
- if A4d7eb ~= Enum.HumanoidStateType.None and A4d7eb ~= Enum.HumanoidStateType.Dead then
- z2121366d0:SetStateEnabled(A4d7eb, B04f1ba3)
- end
- end
- end
- function Fb4b487(G18f0fd8be0)
- local x94e95f8e30 = G18f0fd8be0:FindFirstChild("Humanoid")
- if not x94e95f8e30 then
- return
- end
- local F3e5d09fd3 = G18f0fd8be0:FindFirstChild("HumanoidRootPart")
- if not F3e5d09fd3 then
- return
- end
- local Zf84a51d2a = G18f0fd8be0:FindFirstChild("UpperTorso")
- if not Zf84a51d2a then
- return
- end
- local b6e842 = workspace.CurrentCamera
- b6e842.CameraSubject = Zf84a51d2a
- geb023(x94e95f8e30, false)
- x94e95f8e30:ChangeState(Enum.HumanoidStateType.FallingDown)
- F3e5d09fd3.CanCollide = true
- end
- function i52d97bb5fb3(f6ee93c87161)
- local x208b05 = f6ee93c87161:FindFirstChild("Humanoid")
- if not x208b05 then
- return
- end
- local Bd8eb08f35c = workspace.CurrentCamera
- Bd8eb08f35c.CameraSubject = x208b05
- geb023(x208b05, true)
- x208b05:ChangeState(Enum.HumanoidStateType.GettingUp)
- end
- function N9a6e29b1fb(ida99fd3f76)
- local Zf37c69 = ida99fd3f76.Name
- local t0f908c = ida99fd3f76.Character
- if not t0f908c then
- return
- end
- local ab6afc456a6 = t0f908c:FindFirstChild("Humanoid")
- if not ab6afc456a6 then
- return
- end
- if ab6afc456a6.Sit then
- return
- end
- local U62ce2b70183 = t0f908c:FindFirstChild("HumanoidRootPart")
- if not U62ce2b70183 then
- return
- end
- local Le1b4bbc39d = t0f908c:FindFirstChild("UpperTorso")
- if not Le1b4bbc39d then
- return
- end
- Le1b4bbc39d.Velocity = U62ce2b70183.Velocity * 3
- Le1b4bbc39d.RotVelocity = U62ce2b70183.Velocity * 0.5
- local B93189c0a868 = Cec078839[Zf37c69]
- if not B93189c0a868 then
- B93189c0a868 = {}
- Cec078839[Zf37c69] = B93189c0a868
- end
- if not U62ce2b70183.Anchored then
- pcall(function()
- t0f908c.UpperTorso:SetNetworkOwner(ida99fd3f76)
- end)
- end
- for U7e3fb7a, keacb55ff01 in next, t0f908c:GetChildren() do
- if keacb55ff01:IsA("BasePart") then
- for G298a5ff8, Ea700dbca in next, keacb55ff01:GetChildren() do
- if Ea700dbca:IsA("Motor") then
- B93189c0a868[Ea700dbca] = Ea700dbca.Parent
- Ea700dbca.Parent = nil
- end
- end
- elseif keacb55ff01:IsA("Accessory") then
- keacb55ff01.Handle.CanCollide = false
- end
- end
- local Wddfb7641064 = t0f908c:FindFirstChild("RagdollNeck")
- if not Wddfb7641064 then
- P99a4e(t0f908c)
- end
- for F4ad199b26a, X0d78a027 in next, t0f908c:GetChildren() do
- if X0d78a027:IsA("Constraint") then
- X0d78a027.Enabled = true
- end
- end
- end
- function k82d08c(Rb6111e)
- local i9f5c637d2 = Rb6111e.Name
- local Wca1505705dc = Rb6111e.Character
- if not Wca1505705dc then
- return
- end
- local of3d405e27b = Wca1505705dc:FindFirstChild("RagdollNeck")
- if not of3d405e27b then
- return
- end
- local E7d5712d916 = Cec078839[i9f5c637d2]
- if not E7d5712d916 then
- return
- end
- local ee08e713 = Wca1505705dc:FindFirstChild("Humanoid")
- if not ee08e713 then
- return
- end
- local e91a0f4 = Wca1505705dc:FindFirstChild("HumanoidRootPart")
- if not e91a0f4 then
- return
- end
- local D20aea = Wca1505705dc:FindFirstChild("UpperTorso")
- if not D20aea then
- return
- end
- e91a0f4.CFrame = D20aea.CFrame
- e91a0f4.Velocity = Vector3.new(0, 0, 0)
- for T7528d6239, I47c78 in next, E7d5712d916, nil do
- T7528d6239.Parent = I47c78
- end
- Cec078839[i9f5c637d2] = nil
- for hadceac9, i635a21b5 in next, Wca1505705dc:GetChildren() do
- if i635a21b5:IsA("Constraint") then
- i635a21b5:Destroy()
- end
- end
- return true
- end
- function v5fa82d74(G2a5c7a89e3)
- Cec078839[G2a5c7a89e3] = nil
- end
- function K0523ef0ea4(Wae20e0)
- local S87337 = Wae20e0.Character
- if not S87337 then
- return false
- end
- local qa58fb8bc = S87337:FindFirstChild("RagdollNeck")
- if not qa58fb8bc then
- return false
- end
- if not qa58fb8bc.Enabled then
- return false
- end
- return true
- end
- end
- return {
- Ragdoll = Fb4b487,
- Unragdoll = i52d97bb5fb3,
- RagdollServer = N9a6e29b1fb,
- UnragdollServer = k82d08c,
- PlayerRemoving = v5fa82d74,
- IsRagdoll = K0523ef0ea4
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement