Advertisement
KewlROBLOXExploiter

Size GUI (FE)

Feb 13th, 2019
2,533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. function giant(p, size)
  89. local pchar = p.Character
  90. if pchar then
  91. local function scale(chr,scl)
  92.  
  93. for _,v in pairs(pchar:GetChildren()) do
  94. if v:IsA("Hat") then
  95. v:Clone()
  96. v.Parent = game.Lighting
  97. end
  98. end
  99.  
  100. local Head = chr['Head']
  101. local Torso = chr['Torso']
  102. local LA = chr['Left Arm']
  103. local RA = chr['Right Arm']
  104. local LL = chr['Left Leg']
  105. local RL = chr['Right Leg']
  106. local HRP = chr['HumanoidRootPart']
  107.  
  108. wait(0.1)
  109.  
  110. Head.formFactor = 3
  111. Torso.formFactor = 3
  112. LA.formFactor = 3
  113. RA.formFactor = 3
  114. LL.formFactor = 3
  115. RL.formFactor = 3
  116. HRP.formFactor = 3
  117.  
  118. Head.Size = Vector3.new(scl * 2, scl, scl)
  119. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  120. LA.Size = Vector3.new(scl, scl * 2, scl)
  121. RA.Size = Vector3.new(scl, scl * 2, scl)
  122. LL.Size = Vector3.new(scl, scl * 2, scl)
  123. RL.Size = Vector3.new(scl, scl * 2, scl)
  124. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  125.  
  126. local Motor1 = Instance.new('Motor6D', Torso)
  127. Motor1.Part0 = Torso
  128. Motor1.Part1 = Head
  129. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  130. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  131. Motor1.Name = "Neck"
  132.  
  133. local Motor2 = Instance.new('Motor6D', Torso)
  134. Motor2.Part0 = Torso
  135. Motor2.Part1 = LA
  136. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  137. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  138. Motor2.Name = "Left Shoulder"
  139.  
  140. local Motor3 = Instance.new('Motor6D', Torso)
  141. Motor3.Part0 = Torso
  142. Motor3.Part1 = RA
  143. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  144. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  145. Motor3.Name = "Right Shoulder"
  146.  
  147. local Motor4 = Instance.new('Motor6D', Torso)
  148. Motor4.Part0 = Torso
  149. Motor4.Part1 = LL
  150. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  151. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  152. Motor4.Name = "Left Hip"
  153.  
  154. local Motor5 = Instance.new('Motor6D', Torso)
  155. Motor5.Part0 = Torso
  156. Motor5.Part1 = RL
  157. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  158. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  159. Motor5.Name = "Right Hip"
  160.  
  161. local Motor6 = Instance.new('Motor6D', HRP)
  162. Motor6.Part0 = HRP
  163. Motor6.Part1 = Torso
  164. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  165. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  166.  
  167. end
  168.  
  169. scale(pchar, size)
  170. pchar.Humanoid.WalkSpeed = 15 * size
  171.  
  172. for _,v in pairs(game.Lighting:GetChildren()) do
  173. if v:IsA("Hat") then
  174. v.Parent = pchar
  175. end
  176. end
  177. end
  178. end
  179.  
  180. local plr = owner
  181. giant(plr,1)
  182.  
  183.  
  184. local csize = 1
  185.  
  186. local sgui = Instance.new("ScreenGui", owner.PlayerGui)
  187. local base = Instance.new("Frame", sgui)
  188. base.BackgroundTransparency = 1
  189. base.Size = UDim2.new(0, 110, 0, 200)
  190. base.Position = UDim2.new(1, -120, 1, -180)
  191. local indicator = Instance.new("TextLabel", base)
  192. indicator.Size = UDim2.new(1, 0, 0, 25)
  193. indicator.TextColor3 = Color3.new(1, 1, 1)
  194. indicator.BackgroundTransparency = 0
  195. indicator.FontSize = Enum.FontSize.Size18
  196. indicator.Font = Enum.Font.SourceSans
  197. indicator.Text = "Current Size: 3"
  198. local PlusOne = Instance.new("TextButton", base)
  199. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  200. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  201. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  202. PlusOne.BorderSizePixel = 2
  203. PlusOne.Font = Enum.Font.SourceSansBold
  204. PlusOne.FontSize = Enum.FontSize.Size24
  205. PlusOne.Text = "+.1 Size"
  206. local MinusOne = Instance.new("TextButton", base)
  207. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  208. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  209. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  210. MinusOne.Text = "-.1 Size"
  211. MinusOne.BorderSizePixel = 2
  212. MinusOne.Font = Enum.Font.SourceSansBold
  213. MinusOne.FontSize = Enum.FontSize.Size24
  214.  
  215. PlusOne.MouseButton1Down:connect(function()
  216. csize = csize + .1
  217. giant(plr, csize)
  218. indicator.Text = "Current Size: "..tostring(csize)
  219. end)
  220.  
  221. MinusOne.MouseButton1Down:connect(function()
  222. csize = csize - .1
  223. giant(plr, csize)
  224. indicator.Text = "Current Size: "..tostring(csize)
  225. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement