Advertisement
DanielSiqueira

Old

Jan 25th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. local function Weld(Char,Model)
  2. local ClonedModel = Model:Clone()
  3. ClonedModel.Parent = Char
  4. local ModelDescendants = ClonedModel:GetChildren()
  5. for i=1, #ModelDescendants do
  6. local W = Instance.new("Weld")
  7. W.Part0 = ClonedModel.Middle
  8. W.Part1 = ModelDescendants[i]
  9. local CJ = CFrame.new(ClonedModel.Middle.Position)
  10. local C0 = ClonedModel.Middle.CFrame:inverse()*CJ
  11. local C1 = ModelDescendants[i].CFrame:inverse()*CJ
  12. W.C0 = C0
  13. W.C1 = C1
  14. W.Parent = ClonedModel.Middle
  15. ClonedModel.Middle.Transparency = 1
  16.  
  17. ----------------------Belt------------------- 1
  18. if Model.Name == "Belt" then
  19. local Y = Instance.new("Weld")
  20. Y.Part0 = Char.LowerTorso
  21. Y.Part1 = ClonedModel.Middle
  22. Y.C0 = CFrame.new(0, 0, 0)
  23. Y.Parent = Y.Part0
  24. end
  25. -----------------------------------------------------------
  26.  
  27. ----------------------LeftLowerLeg------------------- 2
  28. if Model.Name == "LeftLowerLeg" then
  29. local Y = Instance.new("Weld")
  30. Y.Part0 = Char.LeftLowerLeg
  31. Y.Part1 = ClonedModel.Middle
  32. Y.C0 = CFrame.new(0, 0, 0)
  33. Y.Parent = Y.Part0
  34. end
  35. ----------------------RightUpperLeg------------------- 3
  36. if Model.Name == "RightUpperLeg" then
  37. local Y = Instance.new("Weld")
  38. Y.Part0 = Char.RightUpperLeg
  39. Y.Part1 = ClonedModel.Middle
  40. Y.C0 = CFrame.new(0, 0, 0)
  41. Y.Parent = Y.Part0
  42. end
  43. -----------------------------------------------------------
  44. ----------------------RightLowerLeg------------------- 4
  45. if Model.Name == "RightLowerLeg" then
  46. local Y = Instance.new("Weld")
  47. Y.Part0 = Char.RightLowerLeg
  48. Y.Part1 = ClonedModel.Middle
  49. Y.C0 = CFrame.new(0, 0, 0)
  50. Y.Parent = Y.Part0
  51. end
  52. -----------------------------------------------------------
  53. ----------------------LeftUpperLeg------------------- 5
  54. if Model.Name == "LeftUpperLeg" then
  55. local Y = Instance.new("Weld")
  56. Y.Part0 = Char.LeftUpperLeg
  57. Y.Part1 = ClonedModel.Middle
  58. Y.C0 = CFrame.new(0, 0, 0)
  59. Y.Parent = Y.Part0
  60. end
  61. ----------------------RightLowerArm------------------- 6
  62. if Model.Name == "RightLowerArm" then
  63. local Y = Instance.new("Weld")
  64. Y.Part0 = Char.RightLowerArm
  65. Y.Part1 = ClonedModel.Middle
  66. Y.C0 = CFrame.new(0, 0, 0)
  67. Y.Parent = Y.Part0
  68. end
  69. -----------------------------------------------------------
  70. ----------------------RightUpperArm------------------- 7
  71. if Model.Name == "RightUpperArm" then
  72. local Y = Instance.new("Weld")
  73. Y.Part0 = Char.RightUpperArm
  74. Y.Part1 = ClonedModel.Middle
  75. Y.C0 = CFrame.new(0, 0, 0)
  76. Y.Parent = Y.Part0
  77. end
  78. -----------------------------------------------------------
  79. ----------------------LeftUpperArm------------------- 8
  80. if Model.Name == "LeftUpperArm" then
  81. local Y = Instance.new("Weld")
  82. Y.Part0 = Char.LeftUpperArm
  83. Y.Part1 = ClonedModel.Middle
  84. Y.C0 = CFrame.new(0, 0, 0)
  85. Y.Parent = Y.Part0
  86. end
  87. -----------------------------------------------------------
  88. ----------------------LeftLowerArm------------------- 9
  89. if Model.Name == "LeftLowerArm" then
  90. local Y = Instance.new("Weld")
  91. Y.Part0 = Char.LeftLowerArm
  92. Y.Part1 = ClonedModel.Middle
  93. Y.C0 = CFrame.new(0, 0, 0)
  94. Y.Parent = Y.Part0
  95. end
  96. -----------------------------------------------------------
  97. ----------------------Torso------------------- 10
  98. if Model.Name == "Torso" then
  99. local Y = Instance.new("Weld")
  100. Y.Part0 = Char.UpperTorso
  101. Y.Part1 = ClonedModel.Middle
  102. Y.C0 = CFrame.new(0, 0, 0)
  103. Y.Parent = Y.Part0
  104. end
  105. -----------------------------------------------------------
  106. ----------------------WhitePart------------------- 11
  107. if Model.Name == "WhitePart" then
  108. local Y = Instance.new("Weld")
  109. Y.Part0 = Char.UpperTorso
  110. Y.Part1 = ClonedModel.Middle
  111. Y.C0 = CFrame.new(0, 0, 0)
  112. Y.Parent = Y.Part0
  113. end
  114. -----------------------------------------------------------
  115. local Finalize = ClonedModel:GetChildren()
  116. for i = 1,#Finalize do
  117. Finalize[i].Anchored = false
  118. Finalize[i].CanCollide = false
  119. end
  120. end
  121. end
  122.  
  123. game.Players.PlayerAdded:Connect(function(Player)
  124. Player.CharacterAdded:Connect(function(Character)
  125. if Character then Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.Belt) --1
  126. -- Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.Belt) ---- 2
  127. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.RightUpperLeg) ---- 2
  128. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.RightLowerLeg) ---- 3
  129. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.LeftUpperLeg) ---- 4
  130. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.LeftLowerLeg) ---- 5
  131. --Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.BeltStrap) ---- 6
  132. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.WhitePart) ---- 6
  133. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.Torso) ---- 7
  134. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.RightUpperArm) ---- 8
  135. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.RightLowerArm) ---- 9
  136. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.LeftUpperArm) ---- 10
  137. Weld(Character, game:GetService("ReplicatedStorage").Haori.HI1.LeftLowerArm) ---- 11
  138.  
  139. end
  140. end)
  141. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement