Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- game.Workspace.SpawnLocation:Destroy()
- local player = game.Players.LocalPlayer
- local chr = player.Character
- local humanoid = player.Character.Humanoid
- local UIS = game:GetService("UserInputService")
- local cam = game.Workspace.CurrentCamera
- local mouse = player:GetMouse()
- chr.Parent = script
- Model = Instance.new("Model")
- Model.Parent = game.Workspace
- Model.Name = player.Name,"Ragdoll"
- for i,v in pairs(chr:GetChildren()) do
- v:Clone()
- v.Parent = Model
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.CanCollide = true
- end
- end
- for i,child in pairs(Model:GetDescendants()) do
- if child:IsA("Motor6D") or child.Name == "HumanoidRootPart" then
- child:Destroy()
- end
- end
- bottom = game.Workspace.bottom
- cam.CameraSubject = Model.LowerTorso
- Model.Head.Parent = Model
- Model.LowerTorso.Parent = Model
- Model.UpperTorso.Parent = Model
- Model.LeftUpperArm.Parent = Model
- Model.LeftLowerArm.Parent = Model
- Model.LeftHand.Parent = Model
- Model.RightUpperArm.Parent = Model
- Model.RightLowerArm.Parent = Model
- Model.RightHand.Parent = Model
- Model.LeftUpperLeg.Parent = Model
- Model.LeftLowerLeg.Parent = Model
- Model.LeftFoot.Parent = Model
- Model.RightUpperLeg.Parent = Model
- Model.RightLowerLeg.Parent = Model
- Model.RightFoot.Parent = Model
- Neck = Instance.new("BallSocketConstraint",Model.UpperTorso)
- Waist = Instance.new("BallSocketConstraint",Model.LowerTorso)
- LeftShoulder = Instance.new("BallSocketConstraint",Model.UpperTorso)
- RightShoulder = Instance.new("BallSocketConstraint",Model.UpperTorso)
- LeftHip = Instance.new("BallSocketConstraint",Model.LowerTorso)
- RightHip = Instance.new("BallSocketConstraint",Model.LowerTorso)
- LeftElbow = Instance.new("BallSocketConstraint",Model.UpperTorso)
- RightElbow = Instance.new("BallSocketConstraint",Model.UpperTorso)
- LeftKnee = Instance.new("BallSocketConstraint",Model.LowerTorso)
- RightKnee = Instance.new("BallSocketConstraint",Model.LowerTorso)
- LeftWrist = Instance.new("BallSocketConstraint",Model.UpperTorso)
- RightWrist = Instance.new("BallSocketConstraint",Model.UpperTorso)
- RightAnkle = Instance.new("BallSocketConstraint",Model.LowerTorso)
- LeftAnkle = Instance.new("BallSocketConstraint",Model.LowerTorso)
- Neck.Attachment0 = Model.UpperTorso.NeckRigAttachment
- Neck.Attachment1 = Model.Head.NeckRigAttachment
- Neck.LimitsEnabled = true
- Waist.Attachment0 = Model.LowerTorso.WaistRigAttachment
- Waist.Attachment1 = Model.UpperTorso.WaistRigAttachment
- Waist.LimitsEnabled = true
- LeftShoulder.Attachment0 = Model.UpperTorso.LeftShoulderRigAttachment
- LeftShoulder.Attachment1 = Model.LeftUpperArm.LeftShoulderRigAttachment
- LeftShoulder.LimitsEnabled = true
- RightShoulder.Attachment0 = Model.UpperTorso.RightShoulderRigAttachment
- RightShoulder.Attachment1 = Model.RightUpperArm.RightShoulderRigAttachment
- RightShoulder.LimitsEnabled = true
- LeftHip.Attachment0 = Model.LowerTorso.LeftHipRigAttachment
- LeftHip.Attachment1 = Model.LeftUpperLeg.LeftHipRigAttachment
- LeftHip.LimitsEnabled = true
- RightHip.Attachment0 = Model.LowerTorso.LeftHipRigAttachment
- RightHip.Attachment1 = Model.RightUpperLeg.RightHipRigAttachment
- RightHip.LimitsEnabled = true
- LeftElbow.Attachment0 = Model.LeftUpperArm.LeftElbowRigAttachment
- LeftElbow.Attachment1 = Model.LeftLowerArm.LeftElbowRigAttachment
- LeftElbow.LimitsEnabled = true
- RightElbow.Attachment0 = Model.RightUpperArm.RightElbowRigAttachment
- RightElbow.Attachment1 = Model.RightLowerArm.RightElbowRigAttachment
- RightElbow.LimitsEnabled = true
- LeftKnee.Attachment0 = Model.LeftUpperLeg.LeftKneeRigAttachment
- LeftKnee.Attachment1 = Model.LeftLowerLeg.LeftKneeRigAttachment
- LeftKnee.LimitsEnabled = true
- RightKnee.Attachment0 = Model.RightUpperLeg.RightKneeRigAttachment
- RightKnee.Attachment1 = Model.RightLowerLeg.RightKneeRigAttachment
- RightKnee.LimitsEnabled = true
- LeftWrist.Attachment0 = Model.LeftLowerArm.LeftWristRigAttachment
- LeftWrist.Attachment1 = Model.LeftHand.LeftWristRigAttachment
- LeftWrist.LimitsEnabled = true
- RightWrist.Attachment0 = Model.RightLowerArm.RightWristRigAttachment
- RightWrist.Attachment1 = Model.RightHand.RightWristRigAttachment
- RightWrist.LimitsEnabled = true
- LeftAnkle.Attachment0 = Model.LeftLowerLeg.LeftAnkleRigAttachment
- LeftAnkle.Attachment1 = Model.LeftFoot.LeftAnkleRigAttachment
- LeftAnkle.LimitsEnabled = true
- RightAnkle.Attachment0 = Model.RightLowerLeg.RightAnkleRigAttachment
- RightAnkle.Attachment1 = Model.RightFoot.RightAnkleRigAttachment
- RightAnkle.LimitsEnabled = true
Advertisement
Add Comment
Please, Sign In to add comment