Advertisement
Baldeagle22

grtmoe

Sep 25th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.41 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60.  
  61. function giant(p, size)
  62. local pchar = p.Character
  63. if pchar then
  64. local function scale(chr,scl)
  65.  
  66. for _,v in pairs(pchar:GetChildren()) do
  67. if v:IsA("Hat") then
  68. v:Clone()
  69. v.Parent = game.Lighting
  70. end
  71. end
  72.  
  73. local Head = chr['Head']
  74. local Torso = chr['Torso']
  75. local LA = chr['Left Arm']
  76. local RA = chr['Right Arm']
  77. local LL = chr['Left Leg']
  78. local RL = chr['Right Leg']
  79. local HRP = chr['HumanoidRootPart']
  80.  
  81. wait(0.1)
  82.  
  83. Head.formFactor = 3
  84. Torso.formFactor = 3
  85. LA.formFactor = 3
  86. RA.formFactor = 3
  87. LL.formFactor = 3
  88. RL.formFactor = 3
  89. HRP.formFactor = 3
  90.  
  91. Head.Size = Vector3.new(scl * 2, scl, scl)
  92. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  93. LA.Size = Vector3.new(scl, scl * 2, scl)
  94. RA.Size = Vector3.new(scl, scl * 2, scl)
  95. LL.Size = Vector3.new(scl, scl * 2, scl)
  96. RL.Size = Vector3.new(scl, scl * 2, scl)
  97. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  98.  
  99. local Motor1 = Instance.new('Motor6D', Torso)
  100. Motor1.Part0 = Torso
  101. Motor1.Part1 = Head
  102. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  103. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  104. Motor1.Name = "Neck"
  105.  
  106. local Motor2 = Instance.new('Motor6D', Torso)
  107. Motor2.Part0 = Torso
  108. Motor2.Part1 = LA
  109. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  110. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  111. Motor2.Name = "Left Shoulder"
  112.  
  113. local Motor3 = Instance.new('Motor6D', Torso)
  114. Motor3.Part0 = Torso
  115. Motor3.Part1 = RA
  116. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  117. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  118. Motor3.Name = "Right Shoulder"
  119.  
  120. local Motor4 = Instance.new('Motor6D', Torso)
  121. Motor4.Part0 = Torso
  122. Motor4.Part1 = LL
  123. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  124. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  125. Motor4.Name = "Left Hip"
  126.  
  127. local Motor5 = Instance.new('Motor6D', Torso)
  128. Motor5.Part0 = Torso
  129. Motor5.Part1 = RL
  130. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  131. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  132. Motor5.Name = "Right Hip"
  133.  
  134. local Motor6 = Instance.new('Motor6D', HRP)
  135. Motor6.Part0 = HRP
  136. Motor6.Part1 = Torso
  137. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  138. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  139.  
  140. end
  141.  
  142. scale(pchar, size)
  143. pchar.Humanoid.WalkSpeed = 15 * size
  144.  
  145. for _,v in pairs(game.Lighting:GetChildren()) do
  146. if v:IsA("Hat") then
  147. v.Parent = pchar
  148. end
  149. end
  150. end
  151. end
  152.  
  153. local plr = owner
  154. giant(plr,1)
  155.  
  156.  
  157. local csize = 1
  158.  
  159. local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  160. local base = Instance.new("Frame", sgui)
  161. base.BackgroundTransparency = 1
  162. base.Size = UDim2.new(0, 110, 0, 200)
  163. base.Position = UDim2.new(1, -120, 1, -180)
  164. local indicator = Instance.new("TextLabel", base)
  165. indicator.Size = UDim2.new(1, 0, 0, 25)
  166. indicator.TextColor3 = Color3.new(1, 1, 1)
  167. indicator.BackgroundTransparency = 0
  168. indicator.FontSize = Enum.FontSize.Size18
  169. indicator.Font = Enum.Font.SourceSans
  170. indicator.Text = "Current Size: 3"
  171. local PlusOne = Instance.new("TextButton", base)
  172. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  173. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  174. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  175. PlusOne.BorderSizePixel = 2
  176. PlusOne.Font = Enum.Font.SourceSansBold
  177. PlusOne.FontSize = Enum.FontSize.Size24
  178. PlusOne.Text = "+.1 Size"
  179. local MinusOne = Instance.new("TextButton", base)
  180. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  181. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  182. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  183. MinusOne.Text = "-.1 Size"
  184. MinusOne.BorderSizePixel = 2
  185. MinusOne.Font = Enum.Font.SourceSansBold
  186. MinusOne.FontSize = Enum.FontSize.Size24
  187.  
  188. PlusOne.MouseButton1Down:connect(function()
  189. csize = csize + .1
  190. giant(plr, csize)
  191. indicator.Text = "Current Size: "..tostring(csize)
  192. end)
  193.  
  194. MinusOne.MouseButton1Down:connect(function()
  195. csize = csize - .1
  196. giant(plr, csize)
  197. indicator.Text = "Current Size: "..tostring(csize)
  198. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement