Advertisement
beddie22

God Powers

Jan 2nd, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.19 KB | None | 0 0
  1. -- Made by fredyredy. Put ur name on line 4 where it says PUT NAME HERE
  2.  
  3. local h = Instance.new("HopperBin")
  4. h.Name = "GOD POWERS"
  5. h.Parent = game.Players["TheHackedMistake"].Backpack --Put ur name where it says put name here
  6. script.Parent = h
  7. script.Name = "Function"
  8. end
  9. Bin = script.Parent
  10. Person = game.Players.LocalPlayer
  11. PersonT = Person.Character.Torso
  12. Hold = false
  13. Lazer = false
  14. Grabbed = nil
  15. Debounce = false
  16. FDebounce = false
  17. Flight = false
  18. NormalHand = 2 --Change to your preffered hand 1 being "Right" and 2 begin "Left"
  19. NormalFoot = 4 --Change to your preffered foot 3 being "Right" and 4 begin "Left"
  20. Joints = {PersonT:findFirstChild("Right Shoulder"), PersonT:findFirstChild("Left Shoulder"), PersonT:findFirstChild("Right Hip"), PersonT:findFirstChild("Left Hip")}
  21. Limbs = {Person.Character:findFirstChild("Right Arm"), Person.Character:findFirstChild("Left Arm"), Person.Character:findFirstChild("Right Leg"), Person.Character:findFirstChild("Left Leg")}
  22. if (Person.Character:findFirstChild("Suit") ~= nil) then
  23. Person.Character.Suit:remove()
  24. end
  25. Suit = Instance.new("Model")
  26. Suit.Parent = Person.Character
  27. Suit.Name = "Suit"
  28. LJet = Instance.new("Part")
  29. LJet.Parent = Suit
  30. LJet.Name = "Left Jet"
  31. LJet.CanCollide = false
  32. LJet.formFactor = "Symmetric"
  33. LJet.Size = Vector3.new(1, 1, 1)
  34. LJet.BrickColor = BrickColor.new("Dark orange")
  35. LJet.Reflectance = 0.2
  36. LJet.TopSurface = 0
  37. LJet.BottomSurface = 0
  38. LJMesh = Instance.new("CylinderMesh")
  39. LJMesh.Parent = LJet
  40. LJMesh.Scale = Vector3.new(0.8, 2, 0.8)
  41. LJet:BreakJoints()
  42. Weld = Instance.new("Weld")
  43. Weld.Parent = LJet
  44. Weld.Part0 = PersonT
  45. Weld.Part1 = LJet
  46. Weld.C0 = CFrame.new(-0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  47. LJetT = Instance.new("Part")
  48. LJetT.Parent = Suit
  49. LJetT.Name = "Left Jet Tip"
  50. LJetT.CanCollide = false
  51. LJetT.formFactor = "Symmetric"
  52. LJetT.Size = Vector3.new(1, 1, 1)
  53. LJetT.BrickColor = BrickColor.new("Dark orange")
  54. LJetT.Reflectance = 0.2
  55. LJetT.TopSurface = 0
  56. LJetT.BottomSurface = 0
  57. LJTMesh = Instance.new("SpecialMesh")
  58. LJTMesh.Parent = LJetT
  59. LJTMesh.MeshType = "Sphere"
  60. LJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  61. LJetT:BreakJoints()
  62. Weld = Instance.new("Weld")
  63. Weld.Parent = LJet
  64. Weld.Part0 = LJet
  65. Weld.Part1 = LJetT
  66. Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  67. LJetB = Instance.new("Part")
  68. LJetB.Parent = Suit
  69. LJetB.Name = "Left Jet Barrel"
  70. LJetB.CanCollide = false
  71. LJetB.formFactor = "Symmetric"
  72. LJetB.Size = Vector3.new(1, 1, 1)
  73. LJetB.BrickColor = BrickColor.new("Dark orange")
  74. LJetB.Reflectance = 0.2
  75. LJetB.TopSurface = 0
  76. LJetB.BottomSurface = 0
  77. S = Instance.new("Smoke")
  78. S.Parent = LJetB
  79. S.Enabled = false
  80. S.Color = Color3.new(103, 205, 1)
  81. S.RiseVelocity = 5
  82. LJBMesh = Instance.new("CylinderMesh")
  83. LJBMesh.Parent = LJetB
  84. LJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1)
  85. LJetB:BreakJoints()
  86. Weld = Instance.new("Weld")
  87. Weld.Parent = LJet
  88. Weld.Part0 = LJet
  89. Weld.Part1 = LJetB
  90. Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  91. ---Right Jet
  92. RJet = Instance.new("Part")
  93. RJet.Parent = Suit
  94. RJet.Name = "Right Jet"
  95. RJet.CanCollide = false
  96. RJet.formFactor = "Symmetric"
  97. RJet.Size = Vector3.new(1, 1, 1)
  98. RJet.BrickColor = BrickColor.new("Dark orange")
  99. RJet.Reflectance = 0.2
  100. RJet.TopSurface = 0
  101. RJet.BottomSurface = 0
  102. RJMesh = Instance.new("CylinderMesh")
  103. RJMesh.Parent = RJet
  104. RJMesh.Scale = Vector3.new(0.8, 2, 0.8)
  105. RJet:BreakJoints()
  106. Weld = Instance.new("Weld")
  107. Weld.Parent = RJet
  108. Weld.Part0 = PersonT
  109. Weld.Part1 = RJet
  110. Weld.C0 = CFrame.new(0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  111. RJetT = Instance.new("Part")
  112. RJetT.Parent = Suit
  113. RJetT.Name = "Right Jet Tip"
  114. RJetT.CanCollide = false
  115. RJetT.formFactor = "Symmetric"
  116. RJetT.Size = Vector3.new(1, 1, 1)
  117. RJetT.BrickColor = BrickColor.new("Dark orange")
  118. RJetT.Reflectance = 0.2
  119. RJetT.TopSurface = 0
  120. RJetT.BottomSurface = 0
  121. RJTMesh = Instance.new("SpecialMesh")
  122. RJTMesh.Parent = RJetT
  123. RJTMesh.MeshType = "Sphere"
  124. RJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  125. RJetT:BreakJoints()
  126. Weld = Instance.new("Weld")
  127. Weld.Parent = RJet
  128. Weld.Part0 = RJet
  129. Weld.Part1 = RJetT
  130. Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  131. RJetB = Instance.new("Part")
  132. RJetB.Parent = Suit
  133. RJetB.Name = "Right Jet Barrel"
  134. RJetB.CanCollide = false
  135. RJetB.formFactor = "Symmetric"
  136. RJetB.Size = Vector3.new(1, 1, 1)
  137. RJetB.BrickColor = BrickColor.new("Dark orange")
  138. RJetB.Reflectance = 0.2
  139. RJetB.TopSurface = 0
  140. RJetB.BottomSurface = 0
  141. S = Instance.new("Smoke")
  142. S.Parent = RJetB
  143. S.Enabled = false
  144. S.Color = Color3.new(103, 205, 1)
  145. S.RiseVelocity = 5
  146. RJBMesh = Instance.new("CylinderMesh")
  147. RJBMesh.Parent = RJetB
  148. RJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1)
  149. RJetB:BreakJoints()
  150. Weld = Instance.new("Weld")
  151. Weld.Parent = RJet
  152. Weld.Part0 = RJet
  153. Weld.Part1 = RJetB
  154. Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  155. ---Watch
  156. Band = Instance.new("Part")
  157. Band.Parent = Suit
  158. Band.Name = "Band"
  159. Band.CanCollide = false
  160. Band.formFactor = "Symmetric"
  161. Band.Size = Vector3.new(1, 1, 1)
  162. Band.BrickColor = BrickColor.new("Black")
  163. Band.TopSurface = 0
  164. Band.BottomSurface = 0
  165. BandM = Instance.new("SpecialMesh")
  166. BandM.MeshType = "Brick"
  167. BandM.Parent = Band
  168. BandM.Scale = Vector3.new(1.03, 0.2, 1.03)
  169. Band:BreakJoints()
  170. Weld = Instance.new("Weld")
  171. Weld.Parent = Band
  172. Weld.Part0 = Limbs[NormalHand]
  173. Weld.Part1 = Band
  174. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  175. Watch1 = Instance.new("Part")
  176. Watch1.Parent = Suit
  177. Watch1.Name = "Watch1"
  178. Watch1.CanCollide = false
  179. Watch1.formFactor = "Symmetric"
  180. Watch1.Size = Vector3.new(1, 1, 1)
  181. Watch1.BrickColor = BrickColor.new("Black")
  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("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. key = key:upper()
  355. if (key == "Z") then
  356. if (Debounce == false) then
  357. Debounce = true
  358. DisableLimb(1)
  359. DisableLimb(2)
  360. Joints[1].MaxVelocity = 1
  361. SetAngle(1, 3.14)
  362. Joints[2].MaxVelocity = 1
  363. SetAngle(2, 3.14)
  364. function Touch(Part)
  365. if (Part.Parent ~= nil) then
  366. Human = Part.Parent:findFirstChild("Humanoid")
  367. if (Human ~= nil) then
  368. --Human.Sit = true
  369. Human.Parent.Torso.Velocity = Vector3.new(0, 300, 0)
  370. end
  371. end
  372. end
  373. Connection = Limbs[1].Touched:connect(Touch)
  374. ConnectionB = Limbs[2].Touched:connect(Touch)
  375. wait(0.5)
  376. Joints[1].MaxVelocity = 0.1
  377. Joints[2].MaxVelocity = 0.1
  378. EnableLimb(1)
  379. EnableLimb(2)
  380. Connection:disconnect()
  381. ConnectionB:disconnect()
  382. Debounce = false
  383. end
  384. end
  385. if (key == "N") then
  386. X = game.Workspace:GetChildren()
  387. for I, E in pairs(X) do
  388. if (E.Name == "Bomb") then
  389. Ex = Instance.new("Explosion")
  390. Ex.Parent = game.Workspace
  391. Ex.BlastRadius = 12
  392. Ex.Position = E.Position
  393. Ex.BlastPressure = 1000
  394. E:remove()
  395. end
  396. end
  397. end
  398. if (key == "Y") then
  399. Bomb = Instance.new("Part")
  400. Bomb.Name = "Bomb"
  401. Bomb.formFactor = "Plate"
  402. Bomb.Size = Vector3.new(1, 0.4, 1)
  403. Bomb.TopSurface = 0
  404. Bomb.BottomSurface = 0
  405. Bomb.BrickColor = BrickColor.new("Black")
  406. Bomb.CFrame = CFrame.new(Person.Character.Suit.Watch2.Position)
  407. Bomb.CanCollide = true
  408. Bomb.Parent = game.Workspace
  409. Smoke = Instance.new("Smoke")
  410. Smoke.Parent = Bomb
  411. local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3
  412. Smoke.Color = Color3.new(c, c, c)
  413. Smoke.Size = 1
  414. Smoke.Opacity = 0.7
  415. Smoke.RiseVelocity = 10
  416. Bomb:BreakJoints()
  417. end
  418. if (key == "Q") then
  419. if (Debounce == false) then
  420. Debounce = true
  421. DisableLimb(NormalFoot)
  422. Joints[NormalFoot].MaxVelocity = 1
  423. SetAngle(NormalFoot, 0.7)
  424. function Touch(Part)
  425. if (Part.Parent ~= nil) then
  426. Human = Part.Parent:findFirstChild("Humanoid")
  427. if (Human ~= nil) then
  428. Human.Sit = true
  429. Position = Human.Parent.Torso.Position
  430. Direction = PersonT.CFrame.lookVector
  431. Position = Position + 10 * 3 * Direction
  432. error = Position - PersonT.Position
  433. Human.Parent.Torso.Velocity = 10 * error
  434. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  435. end
  436. end
  437. end
  438. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  439. wait(0.5)
  440. Joints[NormalFoot].MaxVelocity = 0.1
  441. EnableLimb(NormalFoot)
  442. Connection:disconnect()
  443. Debounce = false
  444. end
  445. end
  446. if (key == "F") then
  447. if (Debounce == false) then
  448. Debounce = true
  449. DisableLimb(NormalFoot)
  450. Joints[NormalFoot].MaxVelocity = 1
  451. SetAngle(NormalFoot, 0.7)
  452. function Touch(Part)
  453. if (Part.Parent ~= nil) then
  454. Human = Part.Parent:findFirstChild("Humanoid")
  455. if (Human ~= nil) then
  456. Player = game.Players:GetPlayerFromCharacter(Human.Parent)
  457. if (Player ~= nil) then
  458. if (Player ~= Person) then
  459. Human.Sit = true
  460. Position = Human.Parent.Torso.Position
  461. Direction = PersonT.CFrame.lookVector
  462. Position = Position + 10 * 3 * Direction
  463. error = Position - PersonT.Position
  464. Human.Parent.Torso.Velocity = 10 * error
  465. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  466. wait(0.4)
  467. Player:remove()
  468. end
  469. end
  470. end
  471. end
  472. end
  473. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  474. wait(0.5)
  475. Joints[NormalFoot].MaxVelocity = 0.1
  476. EnableLimb(NormalFoot)
  477. Connection:disconnect()
  478. Debounce = false
  479. end
  480. end
  481. if (key == "E") then
  482. if (Flight == true) then
  483. if (FDebounce == false) then
  484. FDebounce = true
  485. function Touch(Part)
  486. if (Part.Parent ~= nil) then
  487. Human = Part.Parent:findFirstChild("Humanoid")
  488. if (Human ~= nil) then
  489. Human.Sit = true
  490. Position = Human.Parent.Torso.Position
  491. Direction = Person.Character.Engine.CFrame.lookVector
  492. Position = Position + 10 * 3 * Direction
  493. error = Position - PersonT.Position
  494. Human.Parent.Torso.Velocity = 10 * error
  495. end
  496. end
  497. end
  498. Connection = PersonT.Touched:connect(Touch)
  499. wait(2)
  500. Connection:disconnect()
  501. FDebounce = false
  502. end
  503. end
  504. if (Debounce == false) then
  505. Debounce = true
  506. DisableLimb(NormalHand)
  507. Joints[NormalHand].MaxVelocity = 1
  508. SetAngle(NormalHand, 1.57)
  509. function Touch(Part)
  510. if (Part.Parent ~= nil) then
  511. Human = Part.Parent:findFirstChild("Humanoid")
  512. if (Human ~= nil) then
  513. Human.Sit = true
  514. Position = Human.Parent.Torso.Position
  515. Direction = PersonT.CFrame.lookVector
  516. Position = Position + 10 * 3 * Direction
  517. error = Position - PersonT.Position
  518. Human.Parent.Torso.Velocity = 10 * error
  519. end
  520. end
  521. end
  522. Connection = Limbs[NormalHand].Touched:connect(Touch)
  523. wait(0.5)
  524. EnableLimb(NormalHand)
  525. Connection:disconnect()
  526. Debounce = false
  527. end
  528. end
  529. if (key == "T") then
  530. E = Instance.new("Explosion")
  531. E.Parent = game.Workspace
  532. E.BlastRadius = 12
  533. E.Position = mouse.hit.p
  534. E.BlastPressure = 1000
  535. end
  536. if (key == "G") then
  537. if (Grabbed == nil) then
  538. if (Debounce == false) then
  539. Debounce = true
  540. DisableLimb(1)
  541. DisableLimb(2)
  542. SetAngle(1, 1.57)
  543. SetAngle(2, 1.57)
  544. Connection1 = Limbs[1].Touched:connect(Grab)
  545. Connection2 = Limbs[2].Touched:connect(Grab)
  546. for E = 1, 30 do
  547. if (Grabbed ~= nil) then
  548. break
  549. end
  550. wait(0.1)
  551. end
  552. if (Grabbed == nil) then
  553. EnableLimb(1)
  554. EnableLimb(2)
  555. Connection1:disconnect()
  556. Connection2:disconnect()
  557. Debounce = false
  558. end
  559. end
  560. else
  561. Person.Character.Torso.Grip:remove()
  562. Position = Grabbed.Character.Torso.Position
  563. Direction = PersonT.CFrame.lookVector
  564. Position = Position + 4 * 3 * Direction
  565. error = Position - PersonT.Position
  566. Grabbed.Character.Torso.Velocity = 4 * error
  567. end
  568. end
  569. if (key == "R") then
  570. if (Flight == false) then
  571. if (Debounce == false) then
  572. Debounce = true
  573. DisableLimb(1)
  574. DisableLimb(2)
  575. Flight = true
  576. DisableLimb(3)
  577. DisableLimb(4)
  578. SetAngle(1, 0)
  579. SetAngle(2, 0)
  580. SetAngle(3, 0)
  581. SetAngle(4, 0)
  582. Engine = Instance.new("Part")
  583. Engine.Parent = Person.Character
  584. Engine.Size = PersonT.Size
  585. Engine.Name = "Engine"
  586. Engine.TopSurface = 0
  587. Engine.BottomSurface = 0
  588. Engine.formFactor = "Symmetric"
  589. Engine.Transparency = 1
  590. Engine:BreakJoints()
  591. Weld = Instance.new("Weld")
  592. Weld.Parent = Engine
  593. Weld.Part0 = PersonT
  594. Weld.Part1 = Engine
  595. Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  596. BodyP = Instance.new("BodyPosition")
  597. BodyP.Parent = Engine
  598. BodyP.position = Engine.Position + Vector3.new(0, 10, 0)
  599. BodyP.maxForce = Vector3.new(4e+050, 4e+050, 4e+050)
  600. BodyG = Instance.new("BodyGyro")
  601. BodyG.Parent = Engine
  602. BodyV = Instance.new("BodyVelocity")
  603. BodyV.Parent = Engine
  604. BodyV.velocity = Vector3.new(0, 0, 0)
  605. BodyV.maxForce = Vector3.new(0, 0, 0)
  606. while true do
  607. if (Flight == false) then
  608. break
  609. end
  610. Direct(Engine, mouse.hit.p)
  611. Person.Character.Humanoid.Sit = true
  612. Person.Character.Head.CanCollide = false
  613. Person.Character.Torso.CanCollide = false
  614. wait(0.000000000000000000000000000000001)
  615. end
  616. EnableLimb(1)
  617. EnableLimb(2)
  618. EnableLimb(3)
  619. EnableLimb(4)
  620. Debounce = false
  621. Person.Character.Engine:remove()
  622. Person.Character.Humanoid.Sit = false
  623. end
  624. else
  625. Flight = false
  626. end
  627. end
  628. if (key == "L") then
  629. DisableLimb(NormalHand)
  630. SetAngle(NormalHand, 1.57)
  631. Smoke = Instance.new("Smoke")
  632. Smoke.Parent = Person.Character.Suit.Band
  633. local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3
  634. Smoke.Color = Color3.new(0, 0, 0)
  635. Smoke.Size = 15
  636. Smoke.Opacity = 1
  637. Smoke.RiseVelocity = -15
  638. end
  639. if (key == "H") then
  640. if (Debounce == false) then
  641. if (Lazer == false) then
  642. if (mouse.Target ~= nil) then
  643. Debounce = true
  644. Lazer = true
  645. DisableLimb(NormalHand)
  646. SetAngle(NormalHand, 0.785)
  647. BP = Instance.new("BodyPosition")
  648. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  649. BP.P = BP.P / 4
  650. BG = Instance.new("BodyGyro")
  651. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  652. local Hit = mouse.Target
  653. local _P = mouse.Hit.p
  654. local Mag = (Hit.Position-_P).magnitude
  655. local Pos = (Hit.Position-_P).unit * -Mag
  656. local CF = Hit.CFrame.lookVector
  657. while true do
  658. if (Lazer == false) then
  659. break
  660. end
  661. BP.Parent = PersonT
  662. BP.position = ((((CFrame.new(Hit.Position + Pos)) + (-CF)) + (Hit.CFrame.lookVector)) + (mouse.Hit.lookVector * -16)).p + Vector3.new(0, 5.7, 0)
  663. BG.Parent = PersonT
  664. BG.cframe = CFrame.new((PersonT.CFrame + (mouse.Hit.lookVector * -8)).p, (Hit.Position + Pos))
  665. if (Hit.Parent == nil) or (Hit.Parent.Parent == Person.Character) then
  666. BP.Parent = nil
  667. BG.Parent = nil
  668. end
  669. local P = Instance.new("Part")
  670. P.Name = "Grapple Lazer"
  671. P.formFactor = 0
  672. P.Parent = Person.Character
  673. P.BrickColor = BrickColor.new(1)
  674. P.Anchored = true
  675. P.Transparency = 0.05
  676. P.Locked = true
  677. P.Reflectance = 0.025
  678. P.CanCollide = false
  679. P.Size = Vector3.new(1, 1, 1)
  680. local mesh = Instance.new("CylinderMesh")
  681. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  682.  
  683. mesh.Scale = Vector3.new(0.1, (Place0.p - (Hit.Position + Pos)).magnitude, 0.1)
  684. mesh.Parent = P
  685. P.CFrame = CFrame.new((Place0.p + (Hit.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  686. wait()
  687. P:remove()
  688. end
  689. Debounce = false
  690. EnableLimb(NormalHand)
  691. BP.Parent = nil
  692. BG.Parent = nil
  693. end
  694. end
  695. end
  696. end
  697. if (key == "J") then
  698. if (Debounce == false) then
  699. if (Lazer == false) then
  700. Debounce = true
  701. Lazer = true
  702. DisableLimb(NormalHand)
  703. SetAngle(NormalHand, 0.785)
  704. smokeBrick = Instance.new("Part")
  705. smokeBrick.CanCollide = false
  706. smokeBrick.Anchored = true
  707. smokeBrick.Transparency = 1
  708. smokeBrick.Locked = true
  709. smokeBrick.archivable = false
  710. smokeBrick.TopSurface = 0
  711. smokeBrick.BottomSurface = 0
  712. smoke = Instance.new("Smoke")
  713. smoke.Size = smoke.Size * 4
  714. while true do
  715. if (Lazer == false) then
  716. break
  717. end
  718. local Pos = mouse.Hit.p
  719. smokeBrick.Parent = Person.Character
  720. smokeBrick.CFrame = CFrame.new(Pos)
  721. if (mouse.Target) and (mouse.Target ~= nil) then
  722. smoke.Parent = smokeBrick
  723. local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3
  724. smoke.Color = Color3.new(c, c, c)
  725. end
  726. local L = Instance.new("Part")
  727. L.Parent = Person.Character
  728. L.Name = "Kill Lazer"
  729. L.BrickColor = BrickColor.new(21)
  730. L.formFactor = 0
  731. L.Size = Vector3.new(1, 1, 1)
  732. L.Locked = true
  733. L.Anchored = true
  734. L.CanCollide = false
  735. L.Transparency = 0.05
  736. L.Reflectance = 0.1
  737. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  738. local Mesh = Instance.new("CylinderMesh")
  739. Mesh.Parent = L
  740. Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1)
  741. L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  742. if (mouse.Target ~= nil) then
  743. if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
  744. if ("" ~= "") then
  745. mouse.Target.Parent:BreakJoints()
  746. else
  747. mouse.Target:BreakJoints()
  748. end
  749. end
  750. end
  751. wait()
  752. L:Remove()
  753. end
  754. Debounce = false
  755. smokeBrick.Parent = nil
  756. EnableLimb(NormalHand)
  757. end
  758. end
  759. end
  760. if (key == "K") then
  761. if (Debounce == false) then
  762. if (Lazer == false) then
  763. Debounce = true
  764. Lazer = true
  765. DisableLimb(NormalHand)
  766. SetAngle(NormalHand, 0.785)
  767. BP = Instance.new("BodyPosition")
  768. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  769. BP.P = BP.P / 4
  770. BG = Instance.new("BodyGyro")
  771. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  772. local targ = nil
  773. local Mag = nil
  774. local Pos = nil
  775. while true do
  776. if (Lazer == false) then
  777. break
  778. end
  779. if (mouse.Target ~= nil) and (targ == nil) then
  780. if (mouse.Target.Anchored == false) then
  781. if ((mouse.Hit.p - Person.Character.Suit.Watch2.Position).magnitude <= 10000) then
  782. targ = mouse.Target
  783. BP.Parent = targ
  784. BG.Parent = targ
  785. Mag = (targ.Position - mouse.Hit.p).magnitude
  786. Pos = (targ.Position - mouse.Hit.p).unit * -Mag
  787. end
  788. end
  789. end
  790. local pop = mouse.Hit.p
  791. local G = Instance.new("Part")
  792. G.Parent = Person.Character
  793. G.Name = "Grab Lazer"
  794. G.Anchored = true
  795. G.Locked = true
  796. G.CanCollide = false
  797. G.formFactor = 0
  798. G.Size = Vector3.new(1, 1, 1)
  799. G.BrickColor = BrickColor.new("Royal blue")
  800. G.Reflectance = 0.05
  801. G.Transparency = 0.025
  802. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  803. local MeAsh = Instance.new("CylinderMesh")
  804. MeAsh.Parent = G
  805. if (targ == nil) or (targ.Anchored == true) then
  806. MeAsh.Scale = Vector3.new(0.1, (Place0.p-pop).magnitude, 0.1)
  807. G.CFrame = CFrame.new((Place0.p + pop)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  808. else
  809. BP.Parent = targ
  810. BP.position = (PersonT.CFrame + (mouse.Hit.lookVector * 8) + Pos).p + Vector3.new(0, 5.7, 0)
  811. BG.Parent = targ
  812. BG.cframe = CFrame.new(targ.Position, PersonT.Position)
  813. if (targ.Parent == nil) or (targ.Parent.Parent == Person.Character) then
  814. BP.Parent = nil
  815. BG.Parent = nil
  816. end
  817. MeAsh.Scale = Vector3.new(0.1, (Place0.p - targ.Position).magnitude, 0.1)
  818. G.CFrame = CFrame.new((Place0.p + (targ.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  819. end
  820. wait()
  821. G:Remove()
  822. end
  823. Debounce = false
  824. EnableLimb(NormalHand)
  825. BP.Parent = nil
  826. BG.Parent = nil
  827. end
  828. end
  829. end
  830.  
  831. end
  832. function LiftKey(key, mouse)
  833. key = key:upper()
  834. if (key == "L") then
  835. if (Person.Character.Suit.Band:findFirstChild("Smoke") ~= nil) then
  836. Person.Character.Suit.Band.Smoke:remove()
  837. EnableLimb(NormalHand)
  838. end
  839. end
  840. if (key == "H") then
  841. if (Person.Character:findFirstChild("Grapple Lazer") ~= nil) then
  842. Lazer = false
  843. end
  844. end
  845. if (key == "J") then
  846. if (Person.Character:findFirstChild("Kill Lazer") ~= nil) then
  847. Lazer = false
  848. end
  849. end
  850. if (key == "K") then
  851. if (Person.Character:findFirstChild("Grab Lazer") ~= nil) then
  852. Lazer = false
  853. end
  854. end
  855. if (key == "X") then
  856. if (Person.Character:findFirstChild(" Lazer") ~= nil) then
  857. Lazer = false
  858. end
  859. end
  860. end
  861. function Select(mouse)
  862. mouse.Button1Down:connect(function() Click(mouse) end)
  863. mouse.Button1Up:connect(function() Release(mouse) end)
  864. mouse.KeyDown:connect(function(key) PressKey(key, mouse) end)
  865. mouse.KeyUp:connect(function(key) LiftKey(key, mouse) end)
  866. end
  867. function Deselect(mouse)
  868. Hold = false
  869. Lazer = false
  870. Flight = false
  871. end
  872. Bin.Selected:connect(Select)
  873. Bin.Deselected:connect(Deselect)
  874.  
  875.  
  876. --by luke vanhuizen add me
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement