Advertisement
iiJosephCats205

Fat man

Aug 5th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.54 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. ----- Script made by Pedrorb03 -----
  85. owner.Character.Head:WaitForChild("face")
  86. while owner.Character.Head.face.texture ~= "rbxassetid://1039774343" do
  87. wait()
  88. owner.Character.Head.face.Texture = "rbxassetid://1039774343"
  89. end
  90. for _,animate in pairs(owner.Character:GetChildren()) do
  91. if animate.Name == "Animate" then
  92. animate:remove()
  93. end
  94. if animate.ClassName == "Accessory" then
  95. animate:remove()
  96. end
  97. end
  98. for _,anim in pairs(owner.Character.Humanoid:GetPlayingAnimationTracks()) do
  99.  
  100. anim:Stop()
  101.  
  102. end
  103.  
  104. rot = 0
  105. armrot = 0
  106. suck = nil
  107. power = 0
  108. movingup = false
  109. movingback = false
  110. popo = 0
  111. bodyforces = {}
  112. popos = {}
  113. for _,part in pairs(owner.Character:GetChildren()) do
  114. if part:IsA("BasePart") then
  115.  
  116. local zerograv = Instance.new("BodyForce",part) zerograv.force = Vector3.new(0, game.Workspace.Gravity, 0) * part:GetMass() zerograv.Name = "ZeroGravity"
  117. end
  118. end
  119. ac = true
  120.  
  121.  
  122. game:GetService("RunService").Stepped:connect(function()
  123. owner.Character.Humanoid.Health = owner.Character.Humanoid.MaxHealth
  124. if movingup == false and movingback == false then
  125. owner.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  126. end
  127. rot = rot+5
  128. for number = 1,#popos do
  129. if popos[number].Parent == nil then
  130. table.remove(popos,number)
  131. end
  132. end
  133. for _,pop in pairs(popos) do
  134. pop.Touched:connect(function(hit)
  135. if hit.Locked == false then
  136. if hit.Parent ~= owner.Character then
  137. if hit ~= pop then
  138. hit.Color = pop.Color
  139. hit.Material = pop.Material
  140.  
  141. pop:remove()
  142. end
  143. end
  144. end
  145. end)
  146.  
  147. end
  148. armrot = armrot+40
  149. owner.Character.Humanoid.WalkSpeed = 500
  150. owner.Character.Humanoid.JumpPower = 1
  151. owner.Character.Humanoid.PlatformStand = true
  152. owner.Character.HumanoidRootPart.CFrame = CFrame.new(owner.Character.HumanoidRootPart.CFrame.p,game.Workspace.CurrentCamera.CFrame.p+game.Workspace.CurrentCamera.CFrame.lookVector*50000000)
  153. if ac == true then
  154. owner.Character.Torso:WaitForChild("Right Shoulder")
  155. owner.Character.Torso["Right Shoulder"].C0 = CFrame.new(owner.Character.Torso["Right Shoulder"].C0.p) *CFrame.Angles(math.rad(armrot*1.75),0,0)
  156. owner.Character.Torso:WaitForChild("Left Shoulder")
  157. owner.Character.Torso["Left Shoulder"].C0 = CFrame.new(owner.Character.Torso["Left Shoulder"].C0.p)*CFrame.Angles(math.rad(armrot*1.75),0,0)
  158. owner.Character.Torso:WaitForChild("Right Hip")
  159. owner.Character.Torso["Right Hip"].C0 = CFrame.new(owner.Character.Torso["Right Hip"].C0.p) *CFrame.Angles(math.rad(armrot*1.75),0,0)
  160. owner.Character.Torso:WaitForChild("Left Hip")
  161. owner.Character.Torso["Left Hip"].C0 = CFrame.new(owner.Character.Torso["Left Hip"].C0.p)*CFrame.Angles(math.rad(armrot*1.75),0,0)
  162. end
  163. if suck == nil then
  164. for _,bod in pairs(bodyforces) do
  165. bod:remove()
  166. end
  167. end
  168. if suck ~= nil then
  169. local pos1 = owner:GetMouse().Hit.p
  170. local pos2 = owner.Character.Head.CFrame:toWorldSpace(CFrame.new(Vector3.new(0,0.25,0.5))).p
  171. for _,child in pairs(game.Workspace:GetChildren()) do
  172. if child:IsA("BasePart") then
  173. if child.Anchored == false then
  174. if (child.Position-pos1).magnitude <= 1+owner.Character.Head.Size.Y*5 then
  175. local hit = child
  176. local did = false
  177. for i=1,#bodyforces do
  178. if bodyforces[i].Parent == hit then
  179. did = true
  180. end
  181. end
  182. if did == false then
  183. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  184. table.insert(bodyforces,bodyforce)
  185. end
  186. end
  187. end
  188. end
  189. for _,child2 in pairs(child:GetChildren()) do
  190. if child2:IsA("BasePart") then
  191. if child2.Anchored == false then
  192. if (child2.Position-pos1).magnitude <= 1+owner.Character.Head.Size.Y*5 then
  193. local hit = child2
  194. local did = false
  195. for i=1,#bodyforces do
  196. if bodyforces[i].Parent == hit then
  197. did = true
  198. end
  199. end
  200. if did == false then
  201. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  202. table.insert(bodyforces,bodyforce)
  203. end
  204. end
  205. end
  206. end
  207. for _,child3 in pairs(child2:GetChildren()) do
  208. if child3:IsA("BasePart") then
  209. if child3.Anchored == false then
  210. if (child3.Position-pos1).magnitude <= 1+owner.Character.Head.Size.Y*5 then
  211. local hit = child3
  212. local did = false
  213. for i=1,#bodyforces do
  214. if bodyforces[i].Parent == hit then
  215. did = true
  216. end
  217. end
  218. if did == false then
  219. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  220. table.insert(bodyforces,bodyforce)
  221. end
  222. end
  223. end
  224. end
  225.  
  226. end
  227. end
  228. end
  229.  
  230. for _,bod in pairs(bodyforces) do
  231. bod.Position = owner.Character.Head.CFrame.p
  232. end
  233. suck.Mesh.Scale = Vector3.new(1+owner.Character.Head.Size.Y*5,(pos1-pos2).magnitude,1+owner.Character.Head.Size.Y*5)
  234. suck.CFrame = CFrame.new((pos1+pos2)/2,pos1) * CFrame.Angles(math.rad(90),rot,0)
  235. local ray = Ray.new(pos2,(pos1-pos2).unit*600)
  236. local hit,normal,position = game.Workspace:FindPartOnRay(ray,owner.Character)
  237.  
  238. if hit ~= nil then
  239. if hit.Anchored == false then
  240. local did = false
  241. for i=1,#bodyforces do
  242. if bodyforces[i].Parent == hit then
  243. did = true
  244. end
  245. end
  246. if did == false then
  247. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  248. table.insert(bodyforces,bodyforce)
  249. end
  250. end
  251. end
  252.  
  253.  
  254.  
  255.  
  256.  
  257. end
  258. end)
  259. mouse.KeyDown:connect(function(key)
  260. if key == "e" then
  261. suck = Instance.new("Part",owner.Character)
  262. local mesh = Instance.new("SpecialMesh",suck) mesh.MeshId = "rbxassetid://1040723301"
  263. suck.Transparency = 0.5
  264. suck.Color = Color3.fromRGB(255,255,255)
  265. suck.CanCollide = false
  266. suck.Anchored = true
  267. suck.Size = Vector3.new(0,0,0)
  268. owner.Character.Head:WaitForChild("face")
  269.  
  270. while owner.Character.Head.face.texture ~= "rbxassetid://505480085" do
  271. wait()
  272. owner.Character.Head.face.Texture = "rbxassetid://505480085"
  273. end
  274.  
  275.  
  276. for _,decal in pairs(owner.Character.Head:GetChildren()) do
  277. if decal.ClassName == "Decal" then
  278. decal:remove()
  279. end
  280. end
  281. local decal = Instance.new("Decal",owner.Character.Head) decal.Texture = "http://www.roblox.com/asset/?id=1038938817" decal.Face = "Front"
  282.  
  283. end
  284. if key == "w" then
  285. if movingup == false then
  286. movingup = true
  287. while movingup == true do
  288. wait()
  289. owner.Character.HumanoidRootPart.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector*200
  290. end
  291. end
  292. end
  293. if key == "s" then
  294. if movingback == false then
  295. movingback = true
  296. while movingback == true do
  297. wait()
  298. owner.Character.HumanoidRootPart.Velocity = -owner.Character.HumanoidRootPart.CFrame.lookVector*200
  299.  
  300. end
  301. end
  302. end
  303. if key == "f" then
  304. local food = math.random(1,7)
  305. local part = Instance.new("Part",game.Workspace) part.CFrame = CFrame.new(0,25,0)
  306. local meshs = Instance.new("SpecialMesh",part)
  307. if food == 1 then
  308. part.Size = Vector3.new(1.266, 1.704, 0.978)
  309. meshs.MeshId = "rbxassetid://923471248"
  310. meshs.TextureId = "rbxassetid://923471252"
  311. end
  312. if food == 2 then
  313. part.Size = Vector3.new(2.18, 0.733, 2.18)
  314. meshs.MeshId = "http://www.roblox.com/asset/?id=107432887"
  315. meshs.TextureId = "rbxassetid://107432992"
  316. end
  317. if food == 3 then
  318. part.Size = Vector3.new(1.764, 1.129, 1.686)
  319. meshs.MeshId = "http://www.roblox.com/asset/?id=90824595"
  320. meshs.TextureId = "rbxassetid://90819050"
  321. end
  322. if food == 4 then
  323. part.Size = Vector3.new(2.903, 2.903, 0.531)
  324. meshs.MeshId = "http://www.roblox.com/asset/?id=18417911"
  325. meshs.TextureId = "rbxassetid://18417918"
  326. end
  327. if food == 5 then
  328. part.Size = Vector3.new(2.056, 0.615, 0.907)
  329. meshs.MeshId = "http://www.roblox.com/asset/?id=29896287"
  330. meshs.TextureId = "rbxassetid://29896653"
  331. end
  332. if food == 6 then
  333. part.Size = Vector3.new(0.731, 1.693, 0.708)
  334. meshs.MeshId = "http://www.roblox.com/asset/?id=13073626"
  335. meshs.TextureId = "rbxassetid://13073598"
  336. end
  337. if food == 7 then
  338. part.Size = Vector3.new(1.997, 1.986, 1.997)
  339. meshs.MeshId = "http://www.roblox.com/asset/?id=125736357"
  340. meshs.TextureId = "rbxassetid://125728597"
  341. end
  342. end
  343. if key == "c" then
  344. if popo > 0 then
  345. popo = popo-1
  346. local ball = Instance.new("Part",game.Workspace) ball.Shape = Enum.PartType.Ball ball.Material = Enum.Material.Slate ball.Color = Color3.fromRGB(105, 64, 40) ball.CanCollide = false
  347. ball.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  348. ball.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  349. ball.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  350. ball.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  351. ball.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  352. ball.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  353. ball.Size = Vector3.new(owner.Character.Torso.Size.Y/2,owner.Character.Torso.Size.Y/2,owner.Character.Torso.Size.Y/2)
  354. ball.CFrame = CFrame.new(owner.Character.Torso.CFrame:toWorldSpace(CFrame.new(0,-owner.Character.Torso.Size.Y,0)).p,owner:GetMouse().Hit.p)
  355. ball.Velocity = ball.CFrame.lookVector*(owner.Character.Torso.Position-owner:GetMouse().Hit.p).magnitude*3
  356. table.insert(popos,ball)
  357. game:GetService("Debris"):AddItem(ball,5)
  358. end
  359. end
  360.  
  361.  
  362.  
  363. end)
  364. mouse.KeyUp:connect(function(key)
  365. if key == "e" then
  366. suck:remove()
  367. suck = nil
  368. owner.Character.Head:WaitForChild("face")
  369.  
  370. owner.Character.Head:WaitForChild("face")
  371. while owner.Character.Head.face.texture ~= "rbxassetid://1039774343" do
  372. wait()
  373. owner.Character.Head.face.Texture = "rbxassetid://1039774343"
  374. end
  375. end
  376. if key == "w" then
  377. movingup = false
  378.  
  379. end
  380. if key == "s" then
  381. movingback = false
  382.  
  383. end
  384.  
  385.  
  386. end)
  387. owner.Character.Head.Touched:connect(function(hit)
  388. if hit.Parent ~= owner.Character then
  389.  
  390. if hit ~= nil then
  391. if hit.Anchored == false then
  392. hit:remove()
  393. popo = popo+2
  394. local sound = Instance.new("Sound",owner.Character.Head) sound.SoundId = "rbxassetid://179303694" sound:Play()
  395. game:GetService("Debris"):AddItem(sound,5)
  396. while ac == false do
  397. wait()
  398. if ac == true then
  399. break
  400. end
  401. end
  402. owner.Character.Torso:WaitForChild("Neck")
  403. owner.Character.HumanoidRootPart:WaitForChild("RootJoint")
  404. owner.Character.Torso:WaitForChild("Right Shoulder")
  405. owner.Character.Torso:WaitForChild("Left Shoulder")
  406. owner.Character.Torso:WaitForChild("Right Hip")
  407. owner.Character.Torso:WaitForChild("Left Hip")
  408. local rootjoint = owner.Character.HumanoidRootPart.RootJoint:Clone()
  409. local neck = owner.Character.Torso.Neck:Clone()
  410. local rightShoulder = owner.Character.Torso["Right Shoulder"]:Clone()
  411. local leftShoulder = owner.Character.Torso["Left Shoulder"]:Clone()
  412. local rightShoulder = owner.Character.Torso["Right Shoulder"]:Clone()
  413. local rightHip = owner.Character.Torso["Right Hip"]:Clone()
  414. local leftHip = owner.Character.Torso["Left Hip"]:Clone()
  415. ac = false
  416. wait(0.1)
  417. owner.Character.Humanoid.Health = owner.Character.Humanoid.MaxHealth
  418. for _,part in pairs(owner.Character:GetChildren()) do
  419. if part:IsA("BasePart") then
  420. part.Size = part.Size*1.05
  421. owner.Character.Humanoid.Health = owner.Character.Humanoid.MaxHealth
  422. end
  423. end
  424. owner.CameraMaxZoomDistance = owner.CameraMaxZoomDistance*1.05
  425. owner.Character.Humanoid.Health = owner.Character.Humanoid.MaxHealth
  426. rootjoint.Parent = owner.Character.HumanoidRootPart
  427. neck.Parent = owner.Character.Torso
  428. rightShoulder.Parent = owner.Character.Torso
  429. leftShoulder.Parent = owner.Character.Torso
  430. rightHip.Parent = owner.Character.Torso
  431. leftHip.Parent = owner.Character.Torso
  432. neck.C0 = CFrame.new(neck.C0.p*1.05)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  433. rightShoulder.C0 = CFrame.new(rightShoulder.C0.p*1.05)
  434. leftShoulder.C0 = CFrame.new(leftShoulder.C0.p*1.05)
  435. rightHip.C0 = CFrame.new(rightHip.C0.p*1.05)
  436. leftHip.C0 = CFrame.new(leftHip.C0.p*1.05)
  437. owner.Character.Humanoid.MaxHealth = owner.Character.Humanoid.MaxHealth*1.2
  438. owner.Character.Humanoid.Health = owner.Character.Humanoid.MaxHealth
  439. for _,part in pairs(owner.Character:GetChildren()) do
  440. if part:FindFirstChild("ZeroGravity") then
  441. part.ZeroGravity:remove()
  442. end
  443. end
  444. for _,part in pairs(owner.Character:GetChildren()) do
  445. if part:IsA("BasePart") then
  446. part.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  447. local zerograv = Instance.new("BodyForce",part) zerograv.force = Vector3.new(0, game.Workspace.Gravity, 0) * part:GetMass() zerograv.Name = "ZeroGravity"
  448. end
  449. end
  450. wait(0.1)
  451. ac = true
  452. end
  453. end
  454.  
  455. end
  456. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement