Advertisement
Ban43_GodOfEdits

shrnkzzs

Aug 5th, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.35 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. function giant(p, size)
  145. local pchar = p.Character
  146. if pchar then
  147. local function scale(chr,scl)
  148.  
  149. for _,v in pairs(pchar:GetChildren()) do
  150. if v:IsA("Hat") then
  151. v:Clone()
  152. v.Parent = game.Lighting
  153. end
  154. end
  155.  
  156. local Head = chr['Head']
  157. local Torso = chr['Torso']
  158. local LA = chr['Left Arm']
  159. local RA = chr['Right Arm']
  160. local LL = chr['Left Leg']
  161. local RL = chr['Right Leg']
  162. local HRP = chr['HumanoidRootPart']
  163.  
  164. wait(0.1)
  165.  
  166. Head.formFactor = 3
  167. Torso.formFactor = 3
  168. LA.formFactor = 3
  169. RA.formFactor = 3
  170. LL.formFactor = 3
  171. RL.formFactor = 3
  172. HRP.formFactor = 3
  173.  
  174. Head.Size = Vector3.new(scl * 2, scl, scl)
  175. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  176. LA.Size = Vector3.new(scl, scl * 2, scl)
  177. RA.Size = Vector3.new(scl, scl * 2, scl)
  178. LL.Size = Vector3.new(scl, scl * 2, scl)
  179. RL.Size = Vector3.new(scl, scl * 2, scl)
  180. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  181.  
  182. local Motor1 = Instance.new('Motor6D', Torso)
  183. Motor1.Part0 = Torso
  184. Motor1.Part1 = Head
  185. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  186. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  187. Motor1.Name = "Neck"
  188.  
  189. local Motor2 = Instance.new('Motor6D', Torso)
  190. Motor2.Part0 = Torso
  191. Motor2.Part1 = LA
  192. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  193. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  194. Motor2.Name = "Left Shoulder"
  195.  
  196. local Motor3 = Instance.new('Motor6D', Torso)
  197. Motor3.Part0 = Torso
  198. Motor3.Part1 = RA
  199. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  200. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  201. Motor3.Name = "Right Shoulder"
  202.  
  203. local Motor4 = Instance.new('Motor6D', Torso)
  204. Motor4.Part0 = Torso
  205. Motor4.Part1 = LL
  206. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  207. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  208. Motor4.Name = "Left Hip"
  209.  
  210. local Motor5 = Instance.new('Motor6D', Torso)
  211. Motor5.Part0 = Torso
  212. Motor5.Part1 = RL
  213. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  214. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  215. Motor5.Name = "Right Hip"
  216.  
  217. local Motor6 = Instance.new('Motor6D', HRP)
  218. Motor6.Part0 = HRP
  219. Motor6.Part1 = Torso
  220. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  221. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  222.  
  223. end
  224.  
  225. scale(pchar, size)
  226. pchar.Humanoid.WalkSpeed = 15 * size
  227.  
  228. for _,v in pairs(game.Lighting:GetChildren()) do
  229. if v:IsA("Hat") then
  230. v.Parent = pchar
  231. end
  232. end
  233. end
  234. end
  235.  
  236. local plr = game.Players.LocalPlayer
  237. giant(plr,1)
  238.  
  239.  
  240. local csize = 1
  241.  
  242. local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  243. local base = Instance.new("Frame", sgui)
  244. base.BackgroundTransparency = 1
  245. base.Size = UDim2.new(0, 110, 0, 200)
  246. base.Position = UDim2.new(1, -120, 1, -180)
  247. local indicator = Instance.new("TextLabel", base)
  248. indicator.Size = UDim2.new(1, 0, 0, 25)
  249. indicator.TextColor3 = Color3.new(1, 1, 1)
  250. indicator.BackgroundTransparency = 0
  251. indicator.FontSize = Enum.FontSize.Size18
  252. indicator.Font = Enum.Font.SourceSans
  253. indicator.Text = "Current Size: 3"
  254. local PlusOne = Instance.new("TextButton", base)
  255. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  256. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  257. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  258. PlusOne.BorderSizePixel = 2
  259. PlusOne.Font = Enum.Font.SourceSansBold
  260. PlusOne.FontSize = Enum.FontSize.Size24
  261. PlusOne.Text = "+.1 Size"
  262. local MinusOne = Instance.new("TextButton", base)
  263. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  264. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  265. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  266. MinusOne.Text = "-.1 Size"
  267. MinusOne.BorderSizePixel = 2
  268. MinusOne.Font = Enum.Font.SourceSansBold
  269. MinusOne.FontSize = Enum.FontSize.Size24
  270.  
  271. PlusOne.MouseButton1Down:connect(function()
  272. csize = 1
  273. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
  274. giant(plr, csize)
  275. indicator.Text = "Current Size: "..tostring(csize)
  276. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  277. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  278.  
  279. end)
  280.  
  281. MinusOne.MouseButton1Down:connect(function()
  282. csize = .044
  283. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,-4.5,0)
  284. giant(plr, csize)
  285. indicator.Text = "Current Size: "..tostring(csize)
  286. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
  287. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 25
  288. end)
  289. local mouse = game.Players.LocalPlayer:GetMouse()
  290. mouse.KeyDown:connect(function(key)
  291. if key == "e" then
  292. csize = 1
  293. giant(plr, csize)
  294. indicator.Text = "Current Size: "..tostring(csize)
  295. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
  296. end
  297. end)
  298. mouse.KeyDown:connect(function(key)
  299. if key == "q" then
  300. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,-1.5,0)
  301. csize = .044
  302. giant(plr, csize)
  303. indicator.Text = "Current Size: "..tostring(csize)
  304.  
  305. end
  306. end)
  307. mouse.KeyDown:connect(function(key)
  308. if key == "f" then
  309. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,-1.5,0)
  310. csize = 10
  311. giant(plr, csize)
  312. indicator.Text = "Current Size: "..tostring(csize)
  313.  
  314. end
  315. end)
  316. z = Instance.new("Sound", char)
  317. z.SoundId = "rbxassetid://287533277" -- Put Music ID Here.
  318. z.Looped = true
  319. z.Volume = 2
  320. wait(.1)
  321. z:Play()
  322.  
  323. ------------------------------------------------------------
  324. for _, a in pairs(char:children()) do
  325. if a:IsA'Accessory' or a:IsA'Pants' or a:IsA'Shirt' then
  326. a:Destroy()
  327. end
  328. end
  329. local s = Instance.new('Shirt', char)
  330. s.ShirtTemplate = "rbxassetid://1833810233"
  331. local p = Instance.new('Pants', char)
  332. p.PantsTemplate = "rbxassetid://1833810233"
  333. Instance.new("ForceField",char).Visible = false
  334. local poo = Instance.new("IntValue",char)
  335. poo.Name = "haha nope"
  336. char.Humanoid.MaxHealth = math.huge
  337. wait()
  338. char.Humanoid.Health = math.huge
  339. Instance.new("ForceField",char).Visible = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement