Guest User

FE size script

a guest
Mar 29th, 2019
4,878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 KB | None | 0 0
  1. -- READ THIS PART
  2. -- TO GET THIS TO WORK JUST PASTE IT AT THE TOP OF YOUR SCRIPT AND SAVE IT
  3. -- NOW DELETE THESE LINES IF YOU WANT
  4.  
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code by Mokiros, Edited by StarzoZero")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  56. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  57. end
  58. for _,t in pairs(CAS.Actions) do
  59. for _,k in pairs(t.Keys) do
  60. if k==io.KeyCode then
  61. t.Function(t.Name,io.UserInputState,io)
  62. end
  63. end
  64. end
  65. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  66. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  67. end
  68. end)
  69. Event.Parent = NLS([==[
  70. local Player = game:GetService("Players").LocalPlayer
  71. local Event = script:WaitForChild("UserInput_Event")
  72. local Mouse = Player:GetMouse()
  73. local UIS = game:GetService("UserInputService")
  74. local input = function(io,a)
  75. if a then return end
  76. --Since InputObject is a client-side instance, we create and pass table instead
  77. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  78. end
  79. UIS.InputBegan:Connect(input)
  80. UIS.InputEnded:Connect(input)
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then
  100. return typeof(s[k])=="function"
  101. and function(_,...)return s[k](s,...)end or s[k]
  102. end
  103. end,
  104. __newindex = function(self,k,v)
  105. local s = rawget(self,"_RealService")
  106. if s then s[k]=v end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return rawget(self,s) or _rg:GetService(s)
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. RunService = FakeService({
  125. _btrs = {},
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137. FakeService(g,game)
  138. --Changing owner to fake player object to support owner:GetMouse()
  139. game,owner = g,g.Players.LocalPlayer
  140. end
  141. function giant(p, size)
  142. local pchar = p.Character
  143. if pchar then
  144. local function scale(chr,scl)
  145.  
  146. for _,v in pairs(pchar:GetChildren()) do
  147. if v:IsA("Hat") then
  148. v:Clone()
  149. v.Parent = game.Lighting
  150. end
  151. end
  152.  
  153. local Head = chr['Head']
  154. local Torso = chr['Torso']
  155. local LA = chr['Left Arm']
  156. local RA = chr['Right Arm']
  157. local LL = chr['Left Leg']
  158. local RL = chr['Right Leg']
  159. local HRP = chr['HumanoidRootPart']
  160.  
  161. wait(0.1)
  162.  
  163. Head.formFactor = 3
  164. Torso.formFactor = 3
  165. LA.formFactor = 3
  166. RA.formFactor = 3
  167. LL.formFactor = 3
  168. RL.formFactor = 3
  169. HRP.formFactor = 3
  170.  
  171. Head.Size = Vector3.new(scl * 2, scl, scl)
  172. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  173. LA.Size = Vector3.new(scl, scl * 2, scl)
  174. RA.Size = Vector3.new(scl, scl * 2, scl)
  175. LL.Size = Vector3.new(scl, scl * 2, scl)
  176. RL.Size = Vector3.new(scl, scl * 2, scl)
  177. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  178.  
  179. local Motor1 = Instance.new('Motor6D', Torso)
  180. Motor1.Part0 = Torso
  181. Motor1.Part1 = Head
  182. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  183. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  184. Motor1.Name = "Neck"
  185.  
  186. local Motor2 = Instance.new('Motor6D', Torso)
  187. Motor2.Part0 = Torso
  188. Motor2.Part1 = LA
  189. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  190. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  191. Motor2.Name = "Left Shoulder"
  192.  
  193. local Motor3 = Instance.new('Motor6D', Torso)
  194. Motor3.Part0 = Torso
  195. Motor3.Part1 = RA
  196. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  197. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  198. Motor3.Name = "Right Shoulder"
  199.  
  200. local Motor4 = Instance.new('Motor6D', Torso)
  201. Motor4.Part0 = Torso
  202. Motor4.Part1 = LL
  203. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  204. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  205. Motor4.Name = "Left Hip"
  206.  
  207. local Motor5 = Instance.new('Motor6D', Torso)
  208. Motor5.Part0 = Torso
  209. Motor5.Part1 = RL
  210. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  211. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  212. Motor5.Name = "Right Hip"
  213.  
  214. local Motor6 = Instance.new('Motor6D', HRP)
  215. Motor6.Part0 = HRP
  216. Motor6.Part1 = Torso
  217. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  218. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  219.  
  220. end
  221.  
  222. scale(pchar, size)
  223. pchar.Humanoid.WalkSpeed = 15 * size
  224.  
  225. for _,v in pairs(game.Lighting:GetChildren()) do
  226. if v:IsA("Hat") then
  227. v.Parent = pchar
  228. end
  229. end
  230. end
  231. end
  232.  
  233. local plr = game.Players.LocalPlayer
  234. giant(plr,1)
  235.  
  236.  
  237. local csize = 1
  238.  
  239. local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  240. local base = Instance.new("Frame", sgui)
  241. base.BackgroundTransparency = 1
  242. base.Size = UDim2.new(0, 110, 0, 200)
  243. base.Position = UDim2.new(1, -120, 1, -180)
  244. local indicator = Instance.new("TextLabel", base)
  245. indicator.Size = UDim2.new(1, 0, 0, 25)
  246. indicator.TextColor3 = Color3.new(1, 1, 1)
  247. indicator.BackgroundTransparency = 0
  248. indicator.FontSize = Enum.FontSize.Size18
  249. indicator.Font = Enum.Font.SourceSans
  250. indicator.Text = "Current Size: 3"
  251. local PlusOne = Instance.new("TextButton", base)
  252. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  253. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  254. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  255. PlusOne.BorderSizePixel = 2
  256. PlusOne.Font = Enum.Font.SourceSansBold
  257. PlusOne.FontSize = Enum.FontSize.Size24
  258. PlusOne.Text = "+.1 Size"
  259. local MinusOne = Instance.new("TextButton", base)
  260. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  261. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  262. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  263. MinusOne.Text = "-.1 Size"
  264. MinusOne.BorderSizePixel = 2
  265. MinusOne.Font = Enum.Font.SourceSansBold
  266. MinusOne.FontSize = Enum.FontSize.Size24
  267.  
  268. PlusOne.MouseButton1Down:connect(function()
  269. csize = csize + .1
  270. giant(plr, csize)
  271. indicator.Text = "Current Size: "..tostring(csize)
  272. end)
  273.  
  274. MinusOne.MouseButton1Down:connect(function()
  275. csize = csize - .1
  276. giant(plr, csize)
  277. indicator.Text = "Current Size: "..tostring(csize)
  278. end)
Advertisement
Add Comment
Please, Sign In to add comment