Advertisement
BabyGoatz

Untitled

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