phemzyx

Untitled

Jun 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. function mini(p, size)
  2. local pchar = p.Character
  3. if pchar then
  4. local function scale(chr,scl)
  5.  
  6. for _,v in pairs(pchar:GetChildren()) do
  7. if v:IsA("Hat") then
  8. v:Clone()
  9. v.Parent = game.Lighting
  10. end
  11. end
  12.  
  13. local Head = chr['Head']
  14. local Torso = chr['Torso']
  15. local LA = chr['Left Arm']
  16. local RA = chr['Right Arm']
  17. local LL = chr['Left Leg']
  18. local RL = chr['Right Leg']
  19. local HRP = chr['HumanoidRootPart']
  20.  
  21. wait(0.1)
  22.  
  23. Head.formFactor = 3
  24. Torso.formFactor = 3
  25. LA.formFactor = 3
  26. RA.formFactor = 3
  27. LL.formFactor = 3
  28. RL.formFactor = 3
  29. HRP.formFactor = 3
  30.  
  31. Head.Size = Vector3.new(scl * 2, scl, scl)
  32. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  33. LA.Size = Vector3.new(scl, scl * 2, scl)
  34. RA.Size = Vector3.new(scl, scl * 2, scl)
  35. LL.Size = Vector3.new(scl, scl * 2, scl)
  36. RL.Size = Vector3.new(scl, scl * 2, scl)
  37. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  38.  
  39. local Motor1 = Instance.new('Motor6D', Torso)
  40. Motor1.Part0 = Torso
  41. Motor1.Part1 = Head
  42. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  43. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  44. Motor1.Name = "Neck"
  45.  
  46. local Motor2 = Instance.new('Motor6D', Torso)
  47. Motor2.Part0 = Torso
  48. Motor2.Part1 = LA
  49. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  50. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  51. Motor2.Name = "Left Shoulder"
  52.  
  53. local Motor3 = Instance.new('Motor6D', Torso)
  54. Motor3.Part0 = Torso
  55. Motor3.Part1 = RA
  56. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  57. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  58. Motor3.Name = "Right Shoulder"
  59.  
  60. local Motor4 = Instance.new('Motor6D', Torso)
  61. Motor4.Part0 = Torso
  62. Motor4.Part1 = LL
  63. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  64. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  65. Motor4.Name = "Left Hip"
  66.  
  67. local Motor5 = Instance.new('Motor6D', Torso)
  68. Motor5.Part0 = Torso
  69. Motor5.Part1 = RL
  70. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  71. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  72. Motor5.Name = "Right Hip"
  73.  
  74. local Motor6 = Instance.new('Motor6D', HRP)
  75. Motor6.Part0 = HRP
  76. Motor6.Part1 = Torso
  77. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  78. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  79.  
  80. end
  81.  
  82. scale(pchar, size)
  83. pchar.Humanoid.WalkSpeed = 15 * size
  84.  
  85. for _,v in pairs(game.Lighting:GetChildren()) do
  86. if v:IsA("Hat") then
  87. v.Parent = pchar
  88. end
  89. end
  90. end
  91. end
  92. mini(game.Players.LocalPlayer, 0.6)
  93.  
  94. local plr = game.Players.LocalPlayer.Character
  95. --Animations Destruction
  96.  
  97. local walk = plr.Animate.walk:GetChildren()
  98. for i = 1, #walk do
  99. walk[i]:Destroy()
  100. end
  101.  
  102.  
  103. local idle = plr.Animate.idle:GetChildren()
  104. for i = 1, #idle do
  105. idle[i]:Destroy()
  106. end
  107.  
  108. local jump = plr.Animate.jump:GetChildren()
  109. for i = 1, #jump do
  110. jump[i]:Destroy()
  111. end
  112.  
  113.  
  114.  
  115.  
  116. --Custom animations
  117.  
  118. local walknew = Instance.new("Animation")
  119. local idlenew = Instance.new("Animation")
  120. local jumpnew = Instance.new("Animation")
  121.  
  122. walknew.Parent = plr.Animate.walk
  123. idlenew.Parent = plr.Animate.idle
  124. jumpnew.Parent = plr.Animate.jump
  125.  
  126. walknew.AnimationId = "rbxassetid://1961274576"
  127. idlenew.AnimationId = "rbxassetid://1961692138"
  128. jumpnew.AnimationId = "rbxassetid://1961725857"
Advertisement
Add Comment
Please, Sign In to add comment