Advertisement
Guest User

roblox-shrink/growscript

a guest
Jun 4th, 2019
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. function giant(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. scale(pchar, size)
  86. pchar.Humanoid.JumpPower = 50 * size
  87.  
  88. for _,v in pairs(game.Lighting:GetChildren()) do
  89. if v:IsA("Hat") then
  90. v.Parent = pchar
  91. end
  92. end
  93. end
  94. end
  95.  
  96. local plr = game.Players.LocalPlayer
  97. giant(plr,1)
  98.  
  99.  
  100. local csize = 1
  101.  
  102. local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  103. local base = Instance.new("Frame", sgui)
  104. base.BackgroundTransparency = 1
  105. base.Size = UDim2.new(0, 110, 0, 200)
  106. base.Position = UDim2.new(1, -120, 1, -180)
  107. local indicator = Instance.new("TextLabel", base)
  108. indicator.Size = UDim2.new(1, 0, 0, 25)
  109. indicator.TextColor3 = Color3.new(1, 1, 1)
  110. indicator.BackgroundTransparency = 0
  111. indicator.FontSize = Enum.FontSize.Size18
  112. indicator.Font = Enum.Font.SourceSans
  113. indicator.Text = "Current Size: 3"
  114. local PlusOne = Instance.new("TextButton", base)
  115. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  116. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  117. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  118. PlusOne.BorderSizePixel = 2
  119. PlusOne.Font = Enum.Font.SourceSansBold
  120. PlusOne.FontSize = Enum.FontSize.Size24
  121. PlusOne.Text = "+.1 Size"
  122. local MinusOne = Instance.new("TextButton", base)
  123. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  124. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  125. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  126. MinusOne.Text = "-.1 Size"
  127. MinusOne.BorderSizePixel = 2
  128. MinusOne.Font = Enum.Font.SourceSansBold
  129. MinusOne.FontSize = Enum.FontSize.Size24
  130.  
  131. PlusOne.MouseButton1Down:connect(function()
  132. csize = csize + .1
  133. giant(plr, csize)
  134. indicator.Text = "Current Size: "..tostring(csize)
  135. end)
  136.  
  137. MinusOne.MouseButton1Down:connect(function()
  138. csize = csize - .1
  139. giant(plr, csize)
  140. indicator.Text = "Current Size: "..tostring(csize)
  141. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement