Hugo1234cool

Untitled

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