Advertisement
tsup2

Untitled

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