Advertisement
Ban43_GodOfEdits

fly

Sep 16th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.46 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. if (script.Parent.className ~= "HopperBin") then
  8. local h = Instance.new("HopperBin")
  9. h.Name = "Jet Pack"
  10. h.Parent = game.Players["iStealer"].Backpack
  11. script.Parent = h
  12. script.Name = "Function"
  13. end
  14. Bin = script.Parent
  15. Person = game.Players.LocalPlayer
  16. PersonT = Person.Character.Torso
  17. Hold = false
  18. Lazer = false
  19. Grabbed = nil
  20. Debounce = false
  21. FDebounce = false
  22. Flight = false
  23. NormalHand = 1
  24. NormalFoot = 3
  25. Joints = {PersonT:findFirstChild("Right Shoulder"), PersonT:findFirstChild("Left Shoulder"), PersonT:findFirstChild("Right Hip"), PersonT:findFirstChild("Left Hip")}
  26. Limbs = {Person.Character:findFirstChild("Right Arm"), Person.Character:findFirstChild("Left Arm"), Person.Character:findFirstChild("Right Leg"), Person.Character:findFirstChild("Left Leg")}
  27. if (Person.Character:findFirstChild("Suit") ~= nil) then
  28. Person.Character.Suit:remove()
  29. end
  30. Suit = Instance.new("Model")
  31. Suit.Parent = Person.Character
  32. Suit.Name = "Suit"
  33. LJet = Instance.new("Part")
  34. LJet.Parent = Suit
  35. LJet.Name = "Left Jet"
  36. LJet.CanCollide = false
  37. LJet.formFactor = "Symmetric"
  38. LJet.Size = Vector3.new(1, 1, 1)
  39. LJet.Color = Color3.new(0,0,0)
  40. LJet.Reflectance = 0.05
  41. LJet.TopSurface = 0
  42. LJet.BottomSurface = 0
  43. LJMesh = Instance.new("CylinderMesh")
  44. LJMesh.Parent = LJet
  45. LJMesh.Scale = Vector3.new(0.8, 2, 0.8)
  46. LJet:BreakJoints()
  47. Weld = Instance.new("Weld")
  48. Weld.Parent = LJet
  49. Weld.Part0 = PersonT
  50. Weld.Part1 = LJet
  51. Weld.C0 = CFrame.new(-0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  52. LJetT = Instance.new("Part")
  53. LJetT.Parent = Suit
  54. LJetT.Name = "Left Jet Tip"
  55. LJetT.CanCollide = false
  56. LJetT.formFactor = "Symmetric"
  57. LJetT.Size = Vector3.new(1, 1, 1)
  58. LJetT.Color = Color3.new(0,0,0)
  59. LJetT.Reflectance = 0.05
  60. LJetT.TopSurface = 0
  61. LJetT.BottomSurface = 0
  62. LJTMesh = Instance.new("SpecialMesh")
  63. LJTMesh.Parent = LJetT
  64. LJTMesh.MeshType = "Cylinder"
  65. LJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  66. LJetT:BreakJoints()
  67. Weld = Instance.new("Weld")
  68. Weld.Parent = LJet
  69. Weld.Part0 = LJet
  70. Weld.Part1 = LJetT
  71. Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  72. LJetB = Instance.new("Part")
  73. LJetB.Parent = Suit
  74. LJetB.Name = "Left Jet Barrel"
  75. LJetB.CanCollide = false
  76. LJetB.formFactor = "Symmetric"
  77. LJetB.Size = Vector3.new(1, 1, 1)
  78. LJetB.Color = Color3.new(0,0,0)
  79. LJetB.Reflectance = 0.05
  80. LJetB.TopSurface = 0
  81. LJetB.BottomSurface = 0
  82. S = Instance.new("Smoke")
  83. S.Parent = LJetB
  84. S.Enabled = false
  85. S.Color = Color3.new(0, 0, 0)
  86. S.RiseVelocity = 5
  87. LJBMesh = Instance.new("CylinderMesh")
  88. LJBMesh.Parent = LJetB
  89. LJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1)
  90. LJetB:BreakJoints()
  91. Weld = Instance.new("Weld")
  92. Weld.Parent = LJet
  93. Weld.Part0 = LJet
  94. Weld.Part1 = LJetB
  95. Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  96. RJet = Instance.new("Part")
  97. RJet.Parent = Suit
  98. RJet.Name = "Right Jet"
  99. RJet.CanCollide = false
  100. RJet.formFactor = "Symmetric"
  101. RJet.Size = Vector3.new(1, 1, 1)
  102. RJet.Color = Color3.new(0,0,0)
  103. RJet.Reflectance = 0.05
  104. RJet.TopSurface = 0
  105. RJet.BottomSurface = 0
  106. RJMesh = Instance.new("CylinderMesh")
  107. RJMesh.Parent = RJet
  108. RJMesh.Scale = Vector3.new(0.8, 2, 0.8)
  109. RJet:BreakJoints()
  110. Weld = Instance.new("Weld")
  111. Weld.Parent = RJet
  112. Weld.Part0 = PersonT
  113. Weld.Part1 = RJet
  114. Weld.C0 = CFrame.new(0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  115. RJetT = Instance.new("Part")
  116. RJetT.Parent = Suit
  117. RJetT.Name = "Right Jet Tip"
  118. RJetT.CanCollide = false
  119. RJetT.formFactor = "Symmetric"
  120. RJetT.Size = Vector3.new(1, 1, 1)
  121. RJetT.Color = Color3.new(0,0,0)
  122. RJetT.Reflectance = 0.05
  123. RJetT.TopSurface = 0
  124. RJetT.BottomSurface = 0
  125. RJTMesh = Instance.new("SpecialMesh")
  126. RJTMesh.Parent = RJetT
  127. RJTMesh.MeshType = "Cylinder"
  128. RJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  129. RJetT:BreakJoints()
  130. Weld = Instance.new("Weld")
  131. Weld.Parent = RJet
  132. Weld.Part0 = RJet
  133. Weld.Part1 = RJetT
  134. Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  135. RJetB = Instance.new("Part")
  136. RJetB.Parent = Suit
  137. RJetB.Name = "Right Jet Barrel"
  138. RJetB.CanCollide = false
  139. RJetB.formFactor = "Symmetric"
  140. RJetB.Size = Vector3.new(1, 1, 1)
  141. RJetB.Color = Color3.new(0,0,0)
  142. RJetB.Reflectance = 0.05
  143. RJetB.TopSurface = 0
  144. RJetB.BottomSurface = 0
  145. S = Instance.new("Smoke")
  146. S.Parent = RJetB
  147. S.Enabled = false
  148. S.Color = Color3.new(0, 0, 0)
  149. S.RiseVelocity = 5
  150. RJBMesh = Instance.new("CylinderMesh")
  151. RJBMesh.Parent = RJetB
  152. RJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1)
  153. RJetB:BreakJoints()
  154. Weld = Instance.new("Weld")
  155. Weld.Parent = RJet
  156. Weld.Part0 = RJet
  157. Weld.Part1 = RJetB
  158. Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  159. Band = Instance.new("Part")
  160. Band.Parent = Suit
  161. Band.Name = "Band"
  162. Band.CanCollide = false
  163. Band.formFactor = "Symmetric"
  164. Band.Size = Vector3.new(1, 1, 1)
  165. Band.BrickColor = BrickColor.new("Black")
  166. Band.TopSurface = 0
  167. Band.BottomSurface = 0
  168. BandM = Instance.new("SpecialMesh")
  169. BandM.MeshType = "Brick"
  170. BandM.Parent = Band
  171. BandM.Scale = Vector3.new(1.03, 0.2, 1.03)
  172. Band:BreakJoints()
  173. Weld = Instance.new("Weld")
  174. Weld.Parent = Band
  175. Weld.Part0 = Limbs[NormalHand]
  176. Weld.Part1 = Band
  177. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  178. Watch1 = Instance.new("Part")
  179. Watch1.Parent = Suit
  180. Watch1.Name = "Watch1"
  181. Watch1.CanCollide = false
  182. Watch1.formFactor = "Symmetric"
  183. Watch1.Size = Vector3.new(1, 1, 1)
  184. Watch1.BrickColor = BrickColor.new("Black")
  185. Watch1.TopSurface = 0
  186. Watch1.BottomSurface = 0
  187. Watch1M = Instance.new("CylinderMesh")
  188. Watch1M.Parent = Watch1
  189. Watch1M.Scale = Vector3.new(0.3, 0.2, 0.3)
  190. Watch1:BreakJoints()
  191. Weld = Instance.new("Weld")
  192. Weld.Parent = Watch1
  193. Weld.Part0 = Band
  194. Weld.Part1 = Watch1
  195. Weld.C0 = CFrame.new(0, 0, -0.41) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  196. Watch2 = Instance.new("Part")
  197. Watch2.Parent = Suit
  198. Watch2.Name = "Watch2"
  199. Watch2.CanCollide = false
  200. Watch2.formFactor = "Symmetric"
  201. Watch2.Size = Vector3.new(1, 1, 1)
  202. Watch2.BrickColor = BrickColor.new("White")
  203. Watch2.TopSurface = 0
  204. Watch2.BottomSurface = 0
  205. Watch2M = Instance.new("CylinderMesh")
  206. Watch2M.Parent = Watch2
  207. Watch2M.Scale = Vector3.new(0.25, 0.2, 0.25)
  208. Watch2:BreakJoints()
  209. Weld = Instance.new("Weld")
  210. Weld.Parent = Watch2
  211. Weld.Part0 = Band
  212. Weld.Part1 = Watch2
  213. Weld.C0 = CFrame.new(0, 0, -0.42) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  214. function SetAngle(Joint, Angle)
  215. if (Joint == 1) or (Joint == 3) then
  216. Joints[Joint].DesiredAngle = Angle
  217. end
  218. if (Joint == 2) or (Joint == 4) then
  219. Joints[Joint].DesiredAngle = -Angle
  220. end
  221. end
  222. function DisableLimb(Limb)
  223. Joints[Limb]:remove()
  224.  
  225. Joint = Instance.new("Motor")
  226. Joint.Parent = Person.Character.Torso
  227. Joint.Part0 = Person.Character.Torso
  228. Joint.Part1 = Limbs[Limb]
  229. Joint.MaxVelocity = 0.1
  230. if (Limb == 1) then
  231. C0 = CFrame.new(PersonT.Size.x/2 + Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
  232. Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
  233. Joint.Name = "Right Joint Top"
  234. elseif (Limb == 2) then
  235. C0 = CFrame.new(-PersonT.Size.x/2 - Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
  236. Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
  237. Joint.Name = "Left Joint Top"
  238. elseif (Limb == 3) then
  239. C0 = CFrame.new(Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
  240. Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
  241. Joint.Name = "Right Joint Bottom"
  242. elseif(Limb == 4) then
  243. C0 = CFrame.new(-Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
  244. Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
  245. Joint.Name = "Left Joint Bottom"
  246. end
  247. Joint.C0 = C0
  248. Joints[Limb] = Joint
  249. end
  250. function EnableLimb(Limb)
  251. if (Limb == 1) then
  252. Joints[Limb].Name = "Right Shoulder"
  253. elseif (Limb == 2) then
  254. Joints[Limb].Name = "Left Shoulder"
  255. elseif (Limb == 3) then
  256. Joints[Limb].Name = "Right Hip"
  257. elseif(Limb == 4) then
  258. Joints[Limb].Name = "Left Hip"
  259. end
  260. Anim = Person.Character.Animate:clone()
  261. Person.Character.Animate:remove()
  262. Anim.Parent = Person.Character
  263. end
  264. function Grab(Part)
  265. if (Grabbed == nil) then
  266. if (Part.Parent ~= nil) then
  267. Human = Part.Parent:findFirstChild("Humanoid")
  268. if (Human ~= nil) then
  269. Player = game.Players:GetPlayerFromCharacter(Human.Parent)
  270. if (Player ~= nil) then
  271. if (Player ~= Person) then
  272. Human.Sit = true
  273. Weld = Instance.new("Weld")
  274. Weld.Name = "Grip"
  275. Weld.Parent = Person.Character.Torso
  276. Weld.Part0 = Person.Character.Torso
  277. Weld.Part1 = Player.Character.Torso
  278. Weld.C0 = CFrame.new(0, 2.5, 0) * CFrame.fromEulerAnglesXYZ(3.14/2, 0, 0)
  279. SetAngle(1, 3.14)
  280. SetAngle(2, 3.14)
  281. Grabbed = Player
  282. Human.Sit = true
  283. Connection1:disconnect()
  284. Connection2:disconnect()
  285. while true do
  286. if (Weld.Part1 == nil) then
  287. Debounce = false
  288. EnableLimb(1)
  289. EnableLimb(2)
  290. Grabbed = nil
  291. break
  292. elseif (Weld.Parent == nil) then
  293. Debounce = false
  294. EnableLimb(1)
  295. EnableLimb(2)
  296. Grabbed = nil
  297. break
  298. else
  299. Human.Sit = true
  300. end
  301. wait()
  302. end
  303. end
  304. end
  305. end
  306. end
  307. end
  308. end
  309. function Click(mouse)
  310. Hold = true
  311. if (Flight == true) then
  312. Person.Character.Engine.BodyPosition.maxForce = Vector3.new(0, 0, 0)
  313. Person.Character.Engine.BodyVelocity.maxForce = Vector3.new(4e+030, 4e+030, 4e+030)
  314. Position = Person.Character.Engine.Position
  315. Person.Character.Suit["Left Jet Barrel"].Smoke.Enabled = true
  316. Person.Character.Suit["Right Jet Barrel"].Smoke.Enabled = true
  317. Person.Character.Engine.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(3.14/2, 0, 0)
  318. SetAngle(NormalHand, 3.14)
  319. while true do
  320. if (Flight == false) then
  321. break
  322. end
  323. if (Hold == false) then
  324. break
  325. end
  326. Direction = Person.Character.Engine.CFrame.lookVector
  327. Position = Position + 2 * 3 * Direction
  328. error = Position - Person.Character.Engine.Position
  329. Person.Character.Engine.BodyVelocity.velocity = 2 * error
  330. wait()
  331. end
  332. BodyP.position = Engine.Position
  333. Person.Character.Engine.BodyPosition.maxForce = Vector3.new(4e+050, 4e+050, 4e+050)
  334. Person.Character.Suit["Left Jet Barrel"].Smoke.Enabled = false
  335. Person.Character.Suit["Right Jet Barrel"].Smoke.Enabled = false
  336. Person.Character.Engine.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  337. SetAngle(NormalHand, 0)
  338.  
  339. end
  340.  
  341. end
  342.  
  343.  
  344. function Release(mouse)
  345. Hold = false
  346. end
  347. function Direct(En, Target)
  348. local OriginCFrame = En:findFirstChild("BodyGyro").cframe
  349. local Direction = (Target - En.Position).unit
  350. local SpawnPosition = En.Position
  351. local Position = SpawnPosition + (Direction * 1)
  352. En:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000, 9000, 9000)
  353. En:findFirstChild("BodyGyro").cframe = CFrame.new(Position, Position + Direction)
  354. end
  355. function PressKey(key, mouse)
  356. key = key:upper()
  357. if (key == "Z") then
  358. if (Debounce == false) then
  359. Debounce = true
  360. DisableLimb(1)
  361. DisableLimb(2)
  362. Joints[1].MaxVelocity = 1
  363. SetAngle(1, 3.14)
  364. Joints[2].MaxVelocity = 1
  365. SetAngle(2, 3.14)
  366. function Touch(Part)
  367. if (Part.Parent ~= nil) then
  368. Human = Part.Parent:findFirstChild("Humanoid")
  369. if (Human ~= nil) then
  370. Human.Parent.Torso.Velocity = Vector3.new(0, 300, 0)
  371. end
  372. end
  373. end
  374. Connection = Limbs[1].Touched:connect(Touch)
  375. ConnectionB = Limbs[2].Touched:connect(Touch)
  376. wait(0.5)
  377. Joints[1].MaxVelocity = 0.1
  378. Joints[2].MaxVelocity = 0.1
  379. EnableLimb(1)
  380. EnableLimb(2)
  381. Connection:disconnect()
  382. ConnectionB:disconnect()
  383. Debounce = false
  384. end
  385. end
  386. if (key == "N") then
  387. X = game.Workspace:GetChildren()
  388. for I, E in pairs(X) do
  389. if (E.Name == "Bomb") then
  390. Ex = Instance.new("Explosion")
  391. Ex.Parent = game.Workspace
  392. Ex.BlastRadius = 12
  393. Ex.Position = E.Position
  394. Ex.BlastPressure = 1000
  395. E:remove()
  396. end
  397. end
  398. end
  399. if (key == "L") then
  400. X = game.Workspace:GetChildren()
  401. for I, E in pairs(X) do
  402. if (E.Name == "Nuke") then
  403. Ex = Instance.new("Explosion")
  404. Ex.Parent = game.Workspace
  405. Ex.BlastRadius = 10000
  406. Ex.Position = E.Position
  407. Ex.BlastPressure = 100000
  408. E:remove()
  409. end
  410. end
  411. end
  412. if (key == "Y") then
  413. Bomb = Instance.new("Part")
  414. Bomb.Name = "Bomb"
  415. Bomb.formFactor = "Plate"
  416. Bomb.Size = Vector3.new(1, 0.4, 1)
  417. Bomb.TopSurface = 0
  418. Bomb.BottomSurface = 0
  419. Bomb.BrickColor = BrickColor.new("Black")
  420. Bomb.CFrame = CFrame.new(Person.Character.Suit.Watch2.Position)
  421. Bomb.CanCollide = true
  422. Bomb.Parent = game.Workspace
  423. Smoke = Instance.new("Smoke")
  424. Smoke.Parent = Bomb
  425. local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3
  426. Smoke.Color = Color3.new(0, 0, 100)
  427. Smoke.Size = 1
  428. Smoke.Opacity = 0.7
  429. Smoke.RiseVelocity = 10
  430. Bomb:BreakJoints()
  431. end
  432. if (key == "P") then
  433. Bomb = Instance.new("Part")
  434. Bomb.Name = "Nuke"
  435. Bomb.formFactor = "Plate"
  436. Bomb.Size = Vector3.new(1, 0.4, 1)
  437. Bomb.TopSurface = 0
  438. Bomb.BottomSurface = 0
  439. Bomb.BrickColor = BrickColor.new("Black")
  440. Bomb.CFrame = CFrame.new(Person.Character.Suit.Watch2.Position)
  441. Bomb.CanCollide = true
  442. Bomb.Parent = game.Workspace
  443. Smoke = Instance.new("Smoke")
  444. Smoke.Parent = Bomb
  445. local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3
  446. Smoke.Color = Color3.new(c, c, c)
  447. Smoke.Size = 1
  448. Smoke.Opacity = 0.7
  449. Smoke.RiseVelocity = 10
  450. Bomb:BreakJoints()
  451. end
  452. if (key == "Q") then
  453. if (Debounce == false) then
  454. Debounce = true
  455. DisableLimb(NormalFoot)
  456. Joints[NormalFoot].MaxVelocity = 1
  457. SetAngle(NormalFoot, 0.7)
  458. function Touch(Part)
  459. if (Part.Parent ~= nil) then
  460. Human = Part.Parent:findFirstChild("Humanoid")
  461. if (Human ~= nil) then
  462. Human.Sit = true
  463. Position = Human.Parent.Torso.Position
  464. Direction = PersonT.CFrame.lookVector
  465. Position = Position + 10 * 3 * Direction
  466. error = Position - PersonT.Position
  467. Human.Parent.Torso.Velocity = 10 * error
  468. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  469. end
  470. end
  471. end
  472. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  473. wait(0.5)
  474. Joints[NormalFoot].MaxVelocity = 0.1
  475. EnableLimb(NormalFoot)
  476. Connection:disconnect()
  477. Debounce = false
  478. end
  479. end
  480. if (key == "F") then
  481. if (Debounce == false) then
  482. Debounce = true
  483. DisableLimb(NormalFoot)
  484. Joints[NormalFoot].MaxVelocity = 1
  485. SetAngle(NormalFoot, 0.7)
  486. function Touch(Part)
  487. if (Part.Parent ~= nil) then
  488. Human = Part.Parent:findFirstChild("Humanoid")
  489. if (Human ~= nil) then
  490. Player = game.Players:GetPlayerFromCharacter(Human.Parent)
  491. if (Player ~= nil) then
  492. if (Player ~= Person) then
  493. Human.Sit = true
  494. Position = Human.Parent.Torso.Position
  495. Direction = PersonT.CFrame.lookVector
  496. Position = Position + 10 * 3 * Direction
  497. error = Position - PersonT.Position
  498. Human.Parent.Torso.Velocity = 10 * error
  499. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  500. wait(0.01)
  501. Player:remove()
  502. end
  503. end
  504. end
  505. end
  506. end
  507. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  508. wait(0.5)
  509. Joints[NormalFoot].MaxVelocity = 0.1
  510. EnableLimb(NormalFoot)
  511. Connection:disconnect()
  512. Debounce = false
  513. end
  514. end
  515. if (key == "E") then
  516. if (Flight == true) then
  517. if (FDebounce == false) then
  518. FDebounce = true
  519. function Touch(Part)
  520. if (Part.Parent ~= nil) then
  521. Human = Part.Parent:findFirstChild("Humanoid")
  522. if (Human ~= nil) then
  523. Human.Sit = true
  524. Position = Human.Parent.Torso.Position
  525. Direction = Person.Character.Engine.CFrame.lookVector
  526. Position = Position + 10 * 3 * Direction
  527. error = Position - PersonT.Position
  528. Human.Parent.Torso.Velocity = 10 * error
  529. end
  530. end
  531. end
  532. Connection = PersonT.Touched:connect(Touch)
  533. wait(2)
  534. Connection:disconnect()
  535. FDebounce = false
  536. end
  537. end
  538. if (Debounce == false) then
  539. Debounce = true
  540. DisableLimb(NormalHand)
  541. Joints[NormalHand].MaxVelocity = 1
  542. SetAngle(NormalHand, 1.57)
  543. function Touch(Part)
  544. if (Part.Parent ~= nil) then
  545. Human = Part.Parent:findFirstChild("Humanoid")
  546. if (Human ~= nil) then
  547. Human.Sit = true
  548. Position = Human.Parent.Torso.Position
  549. Direction = PersonT.CFrame.lookVector
  550. Position = Position + 10 * 3 * Direction
  551. error = Position - PersonT.Position
  552. Human.Parent.Torso.Velocity = 10 * error
  553. end
  554. end
  555. end
  556. Connection = Limbs[NormalHand].Touched:connect(Touch)
  557. wait(0.5)
  558. EnableLimb(NormalHand)
  559. Connection:disconnect()
  560. Debounce = false
  561. end
  562. end
  563. if (key == "T") then
  564. E = Instance.new("Explosion")
  565. E.Parent = game.Workspace
  566. E.BlastRadius = 12
  567. E.Position = mouse.hit.p
  568. E.BlastPressure = 1000
  569. end
  570. if (key == "G") then
  571. if (Grabbed == nil) then
  572. if (Debounce == false) then
  573. Debounce = true
  574. DisableLimb(1)
  575. DisableLimb(2)
  576. SetAngle(1, 1.57)
  577. SetAngle(2, 1.57)
  578. Connection1 = Limbs[1].Touched:connect(Grab)
  579. Connection2 = Limbs[2].Touched:connect(Grab)
  580. for E = 1, 30 do
  581. if (Grabbed ~= nil) then
  582. break
  583. end
  584. wait(0.1)
  585. end
  586. if (Grabbed == nil) then
  587. EnableLimb(1)
  588. EnableLimb(2)
  589. Connection1:disconnect()
  590. Connection2:disconnect()
  591. Debounce = false
  592. end
  593. end
  594. else
  595. Person.Character.Torso.Grip:remove()
  596. Position = Grabbed.Character.Torso.Position
  597. Direction = PersonT.CFrame.lookVector
  598. Position = Position + 4 * 3 * Direction
  599. error = Position - PersonT.Position
  600. Grabbed.Character.Torso.Velocity = 4 * error
  601. end
  602. end
  603. if (key == "R") then
  604. if (Flight == false) then
  605. if (Debounce == false) then
  606. Debounce = true
  607. DisableLimb(1)
  608. DisableLimb(2)
  609. Flight = true
  610. DisableLimb(3)
  611. DisableLimb(4)
  612. SetAngle(1, 0)
  613. SetAngle(2, 0)
  614. SetAngle(3, 0)
  615. SetAngle(4, 0)
  616. Engine = Instance.new("Part")
  617. Engine.Parent = Person.Character
  618. Engine.Size = PersonT.Size
  619. Engine.Name = "Engine"
  620. Engine.TopSurface = 0
  621. Engine.BottomSurface = 0
  622. Engine.formFactor = "Symmetric"
  623. Engine.Transparency = 1
  624. Engine:BreakJoints()
  625. Weld = Instance.new("Weld")
  626. Weld.Parent = Engine
  627. Weld.Part0 = PersonT
  628. Weld.Part1 = Engine
  629. Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  630. BodyP = Instance.new("BodyPosition")
  631. BodyP.Parent = Engine
  632. BodyP.position = Engine.Position + Vector3.new(0, 10, 0)
  633. BodyP.maxForce = Vector3.new(4e+050, 4e+050, 4e+050)
  634. BodyG = Instance.new("BodyGyro")
  635. BodyG.Parent = Engine
  636. BodyV = Instance.new("BodyVelocity")
  637. BodyV.Parent = Engine
  638. BodyV.velocity = Vector3.new(0, 0, 0)
  639. BodyV.maxForce = Vector3.new(0, 0, 0)
  640. while true do
  641. if (Flight == false) then
  642. break
  643. end
  644. Direct(Engine, mouse.hit.p)
  645. Person.Character.Humanoid.Sit = true
  646. Person.Character.Head.CanCollide = false
  647. Person.Character.Torso.CanCollide = false
  648. wait(0.000000000000000000000000000000001)
  649. end
  650. EnableLimb(1)
  651. EnableLimb(2)
  652. EnableLimb(3)
  653. EnableLimb(4)
  654. Debounce = false
  655. Person.Character.Engine:remove()
  656. Person.Character.Humanoid.Sit = false
  657. end
  658. else
  659. Flight = false
  660. end
  661. end
  662. if (key == "H") then
  663. if (Debounce == false) then
  664. if (Lazer == false) then
  665. if (mouse.Target ~= nil) then
  666. Debounce = true
  667. Lazer = true
  668. DisableLimb(NormalHand)
  669. SetAngle(NormalHand, 0.785)
  670. BP = Instance.new("BodyPosition")
  671. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  672. BP.P = BP.P / 4
  673. BG = Instance.new("BodyGyro")
  674. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  675. local Hit = mouse.Target
  676. local _P = mouse.Hit.p
  677. local Mag = (Hit.Position-_P).magnitude
  678. local Pos = (Hit.Position-_P).unit * -Mag
  679. local CF = Hit.CFrame.lookVector
  680. while true do
  681. if (Lazer == false) then
  682. break
  683. end
  684. BP.Parent = PersonT
  685. BP.position = ((((CFrame.new(Hit.Position + Pos)) + (-CF)) + (Hit.CFrame.lookVector)) + (mouse.Hit.lookVector * -16)).p + Vector3.new(0, 5.7, 0)
  686. BG.Parent = PersonT
  687. BG.cframe = CFrame.new((PersonT.CFrame + (mouse.Hit.lookVector * -8)).p, (Hit.Position + Pos))
  688. if (Hit.Parent == nil) or (Hit.Parent.Parent == Person.Character) then
  689. BP.Parent = nil
  690. BG.Parent = nil
  691. end
  692. local P = Instance.new("Part")
  693. P.Name = "Grapple Lazer"
  694. P.formFactor = 0
  695. P.Parent = Person.Character
  696. P.BrickColor = BrickColor.new(1)
  697. P.Anchored = true
  698. P.Transparency = 0.05
  699. P.Locked = true
  700. P.Reflectance = 0.025
  701. P.CanCollide = false
  702. P.Size = Vector3.new(1, 1, 1)
  703. local mesh = Instance.new("CylinderMesh")
  704. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  705.  
  706. mesh.Scale = Vector3.new(0.1, (Place0.p - (Hit.Position + Pos)).magnitude, 0.1)
  707. mesh.Parent = P
  708. P.CFrame = CFrame.new((Place0.p + (Hit.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  709. wait()
  710. P:remove()
  711. end
  712. Debounce = false
  713. EnableLimb(NormalHand)
  714. BP.Parent = nil
  715. BG.Parent = nil
  716. end
  717. end
  718. end
  719. end
  720. if (key == "J") then
  721. if (Debounce == false) then
  722. if (Lazer == false) then
  723. Debounce = true
  724. Lazer = true
  725. DisableLimb(NormalHand)
  726. SetAngle(NormalHand, 0.785)
  727. smokeBrick = Instance.new("Part")
  728. smokeBrick.CanCollide = false
  729. smokeBrick.Anchored = true
  730. smokeBrick.Transparency = 1
  731. smokeBrick.Locked = true
  732. smokeBrick.archivable = false
  733. smokeBrick.TopSurface = 0
  734. smokeBrick.BottomSurface = 0
  735. smoke = Instance.new("Smoke")
  736. smoke.Size = smoke.Size * 4
  737. while true do
  738. if (Lazer == false) then
  739. break
  740. end
  741. local Pos = mouse.Hit.p
  742. smokeBrick.Parent = Person.Character
  743. smokeBrick.CFrame = CFrame.new(Pos)
  744. if (mouse.Target) and (mouse.Target ~= nil) then
  745. smoke.Parent = smokeBrick
  746. local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3
  747. smoke.Color = Color3.new(c, c, c)
  748. end
  749. local L = Instance.new("Part")
  750. L.Parent = Person.Character
  751. L.Name = "Kill Lazer"
  752. L.BrickColor = BrickColor.new(21)
  753. L.formFactor = 0
  754. L.Size = Vector3.new(1, 1, 1)
  755. L.Locked = true
  756. L.Anchored = true
  757. L.CanCollide = false
  758. L.Transparency = 0.05
  759. L.Reflectance = 0.1
  760. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  761. local Mesh = Instance.new("CylinderMesh")
  762. Mesh.Parent = L
  763. Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1)
  764. L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  765. if (mouse.Target ~= nil) then
  766. if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
  767. if ("" ~= "") then
  768. mouse.Target.Parent:BreakJoints()
  769. else
  770. mouse.Target:BreakJoints()
  771. end
  772. end
  773. end
  774. wait()
  775. L:Remove()
  776. end
  777. Debounce = false
  778. smokeBrick.Parent = nil
  779. EnableLimb(NormalHand)
  780. end
  781. end
  782. end
  783. if (key == "K") then
  784. if (Debounce == false) then
  785. if (Lazer == false) then
  786. Debounce = true
  787. Lazer = true
  788. DisableLimb(NormalHand)
  789. SetAngle(NormalHand, 0.785)
  790. BP = Instance.new("BodyPosition")
  791. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  792. BP.P = BP.P / 4
  793. BG = Instance.new("BodyGyro")
  794. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  795. local targ = nil
  796. local Mag = nil
  797. local Pos = nil
  798. while true do
  799. if (Lazer == false) then
  800. break
  801. end
  802. if (mouse.Target ~= nil) and (targ == nil) then
  803. if (mouse.Target.Anchored == false) then
  804. if ((mouse.Hit.p - Person.Character.Suit.Watch2.Position).magnitude <= 10000) then
  805. targ = mouse.Target
  806. BP.Parent = targ
  807. BG.Parent = targ
  808. Mag = (targ.Position - mouse.Hit.p).magnitude
  809. Pos = (targ.Position - mouse.Hit.p).unit * -Mag
  810. end
  811. end
  812. end
  813. local pop = mouse.Hit.p
  814. local G = Instance.new("Part")
  815. G.Parent = Person.Character
  816. G.Name = "Grab Lazer"
  817. G.Anchored = true
  818. G.Locked = true
  819. G.CanCollide = false
  820. G.formFactor = 0
  821. G.Size = Vector3.new(1, 1, 1)
  822. G.BrickColor = BrickColor.new("Royal blue")
  823. G.Reflectance = 0.05
  824. G.Transparency = 0.025
  825. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  826. local MeAsh = Instance.new("CylinderMesh")
  827. MeAsh.Parent = G
  828. if (targ == nil) or (targ.Anchored == true) then
  829. MeAsh.Scale = Vector3.new(0.1, (Place0.p-pop).magnitude, 0.1)
  830. G.CFrame = CFrame.new((Place0.p + pop)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  831. else
  832. BP.Parent = targ
  833. BP.position = (PersonT.CFrame + (mouse.Hit.lookVector * 8) + Pos).p + Vector3.new(0, 5.7, 0)
  834. BG.Parent = targ
  835. BG.cframe = CFrame.new(targ.Position, PersonT.Position)
  836. if (targ.Parent == nil) or (targ.Parent.Parent == Person.Character) then
  837. BP.Parent = nil
  838. BG.Parent = nil
  839. end
  840. MeAsh.Scale = Vector3.new(0.1, (Place0.p - targ.Position).magnitude, 0.1)
  841. G.CFrame = CFrame.new((Place0.p + (targ.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  842. end
  843. wait()
  844. G:Remove()
  845. end
  846. Debounce = false
  847. EnableLimb(NormalHand)
  848. BP.Parent = nil
  849. BG.Parent = nil
  850. end
  851. end
  852. end
  853.  
  854. end
  855. function LiftKey(key, mouse)
  856. key = key:upper()
  857. if (key == "L") then
  858. if (Person.Character.Suit.Band:findFirstChild("Smoke") ~= nil) then
  859. Person.Character.Suit.Band.Smoke:remove()
  860. EnableLimb(NormalHand)
  861. end
  862. end
  863. if (key == "H") then
  864. if (Person.Character:findFirstChild("Grapple Lazer") ~= nil) then
  865. Lazer = false
  866. end
  867. end
  868. if (key == "J") then
  869. if (Person.Character:findFirstChild("Kill Lazer") ~= nil) then
  870. Lazer = false
  871. end
  872. end
  873. if (key == "K") then
  874. if (Person.Character:findFirstChild("Grab Lazer") ~= nil) then
  875. Lazer = false
  876. end
  877. end
  878. if (key == "X") then
  879. if (Person.Character:findFirstChild(" Lazer") ~= nil) then
  880. Lazer = false
  881. end
  882. end
  883. end
  884. function Select(mouse)
  885. mouse.Button1Down:connect(function() Click(mouse) end)
  886. mouse.Button1Up:connect(function() Release(mouse) end)
  887. mouse.KeyDown:connect(function(key) PressKey(key, mouse) end)
  888. mouse.KeyUp:connect(function(key) LiftKey(key, mouse) end)
  889. end
  890. function Deselect(mouse)
  891. Hold = false
  892. Lazer = false
  893. Flight = false
  894. end
  895. Bin.Selected:connect(Select)
  896. Bin.Deselected:connect(Deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement