Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
- wait(1)
- character.Animate.Disabled = true
- for i,v in pairs(character.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- for i,v in pairs(character:GetDescendants()) do
- if v:IsA("Motor6D") then
- local socket = Instance.new("AlignPosition")
- local part0 = v.Part0
- local joint_name = v.Name
- local attachment0 = v.Parent:FindFirstChild(joint_name.."Attachment") or v.Parent:FindFirstChild(joint_name.."RigAttachment")
- local attachment1 = part0:FindFirstChild(joint_name.."Attachment") or part0:FindFirstChild(joint_name.."RigAttachment")
- if attachment0 and attachment1 then
- socket.Attachment0, socket.Attachment1 = attachment0, attachment1
- socket.Parent = v.Parent
- end
- local socket = Instance.new("AlignOrientation")
- local part0 = v.Part0
- local joint_name = v.Name
- local attachment0 = v.Parent:FindFirstChild(joint_name.."Attachment") or v.Parent:FindFirstChild(joint_name.."RigAttachment")
- local attachment1 = part0:FindFirstChild(joint_name.."Attachment") or part0:FindFirstChild(joint_name.."RigAttachment")
- if attachment0 and attachment1 then
- socket.Attachment0, socket.Attachment1 = attachment0, attachment1
- socket.Parent = v.Parent
- end
- end
- end
- for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
- if v:IsA("Motor6D") and v.Name ~= "Neck" then
- v:Destroy()
- end
- end
- end)
- if game.Players.LocalPlayer.Character then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
Add Comment
Please, Sign In to add comment