Advertisement
BennyBoi

Untitled

Mar 11th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.88 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["psynaruto"].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 = 6
  399. Ex.Position = E.Position
  400. Ex.BlastPressure = 300000
  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(2, 4, 2)
  410. Bomb.TopSurface = 0
  411. Bomb.BottomSurface = 0
  412. Bomb.BrickColor = BrickColor.new("Black")
  413. Bomb.CFrame = CFrame.new(Person.Character:findFirstChild("Left Arm").Position + Vector3.new(20, -10, -20))
  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 = 6
  423. Bomb:BreakJoints()
  424. function o(i)
  425. Ex = Instance.new("Explosion")
  426. Ex.Parent = game.Workspace
  427. Ex.BlastRadius = 12
  428. Ex.Position = Bomb.Position
  429. Ex.BlastPressure = 300000
  430. Bomb:remove()
  431. end
  432. Bomb.Touched:connect(o)
  433. end
  434. if (key == "Q") then
  435. if (Debounce == false) then
  436. Debounce = true
  437. DisableLimb(NormalFoot)
  438. Joints[NormalFoot].MaxVelocity = 1
  439. SetAngle(NormalFoot, 0.7)
  440. function Touch(Part)
  441. if (Part.Parent ~= nil) then
  442. Human = Part.Parent:findFirstChild("Humanoid")
  443. if (Human ~= nil) then
  444. Human.Sit = true
  445. Position = Human.Parent.Torso.Position
  446. Direction = PersonT.CFrame.lookVector
  447. Position = Position + 10 * 3 * Direction
  448. error = Position - PersonT.Position
  449. Human.Parent.Torso.Velocity = 10 * error
  450. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  451. end
  452. end
  453. end
  454. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  455. wait(0.5)
  456. Joints[NormalFoot].MaxVelocity = 0.1
  457. EnableLimb(NormalFoot)
  458. Connection:disconnect()
  459. Debounce = false
  460. end
  461. end
  462. if (key == "F") then
  463. if (Debounce == false) then
  464. Debounce = true
  465. DisableLimb(NormalFoot)
  466. Joints[NormalFoot].MaxVelocity = 1
  467. SetAngle(NormalFoot, 0.7)
  468. function Touch(Part)
  469. if (Part.Parent ~= nil) then
  470. Human = Part.Parent:findFirstChild("Humanoid")
  471. if (Human ~= nil) then
  472. Player = game.Players:GetPlayerFromCharacter(Human.Parent)
  473. if (Player ~= nil) then
  474. if (Player ~= Person) then
  475. Human.Sit = true
  476. Position = Human.Parent.Torso.Position
  477. Direction = PersonT.CFrame.lookVector
  478. Position = Position + 10 * 3 * Direction
  479. error = Position - PersonT.Position
  480. Human.Parent.Torso.Velocity = 10 * error
  481. Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0)
  482. wait(0.4)
  483. Player:remove()
  484. end
  485. end
  486. end
  487. end
  488. end
  489. Connection = Limbs[NormalFoot].Touched:connect(Touch)
  490. wait(0.5)
  491. Joints[NormalFoot].MaxVelocity = 0.1
  492. EnableLimb(NormalFoot)
  493. Connection:disconnect()
  494. Debounce = false
  495. end
  496. end
  497. if (key == "E") then
  498. if (Flight == true) then
  499. if (FDebounce == false) then
  500. FDebounce = true
  501. function Touch(Part)
  502. if (Part.Parent ~= nil) then
  503. Human = Part.Parent:findFirstChild("Humanoid")
  504. if (Human ~= nil) then
  505. Human.Sit = true
  506. Position = Human.Parent.Torso.Position
  507. Direction = Person.Character.Engine.CFrame.lookVector
  508. Position = Position + 10 * 3 * Direction
  509. error = Position - PersonT.Position
  510. Human.Parent.Torso.Velocity = 10 * error
  511. end
  512. end
  513. end
  514. Connection = PersonT.Touched:connect(Touch)
  515. wait(2)
  516. Connection:disconnect()
  517. FDebounce = false
  518. end
  519. end
  520. if (Debounce == false) then
  521. Debounce = true
  522. DisableLimb(NormalHand)
  523. Joints[NormalHand].MaxVelocity = 1
  524. SetAngle(NormalHand, 1.57)
  525. function Touch(Part)
  526. if (Part.Parent ~= nil) then
  527. Human = Part.Parent:findFirstChild("Humanoid")
  528. if (Human ~= nil) then
  529. Human.Sit = true
  530. Position = Human.Parent.Torso.Position
  531. Direction = PersonT.CFrame.lookVector
  532. Position = Position + 10 * 3 * Direction
  533. error = Position - PersonT.Position
  534. Human.Parent.Torso.Velocity = 10 * error
  535. end
  536. end
  537. end
  538. Connection = Limbs[NormalHand].Touched:connect(Touch)
  539. wait(0.5)
  540. EnableLimb(NormalHand)
  541. Connection:disconnect()
  542. Debounce = false
  543. end
  544. end
  545. if (key == "T") then
  546. if mouse.Target == nil then return end
  547. local M = Instance.new("ScreenGui")
  548. M.Parent = game.Players.xSoulStealerx.PlayerGui
  549. local K = Instance.new("Frame")
  550. K.Parent = M
  551. K.Position = UDim2.new(0,5,0,200)
  552. K.Size = UDim2.new(0,250,0,90)
  553. local d = Instance.new("TextLabel")
  554. d.Parent = M
  555. d.Position = UDim2.new(0,5,0,200)
  556. d.Size = UDim2.new(0,250,0,10)
  557. d.BackgroundTransparency = 1
  558. d.Text = "Name: ".. mouse.Target.Name
  559. local f = Instance.new("TextLabel")
  560. f.Parent = M
  561. f.Position = UDim2.new(0,5,0,210)
  562. f.Size = UDim2.new(0,250,0,10)
  563. f.BackgroundTransparency = 1
  564. f.Text = "Parent: ".. mouse.Target.Parent.Name
  565. local j = Instance.new("TextLabel")
  566. j.Parent = M
  567. j.Position = UDim2.new(0,5,0,220)
  568. j.Size = UDim2.new(0,250,0,10)
  569. j.BackgroundTransparency = 1
  570. j.Text = "Classname: ".. mouse.Target.className
  571. local b = Instance.new("TextLabel")
  572. b.Parent = M
  573. b.Position = UDim2.new(0,5,0,230)
  574. b.Size = UDim2.new(0,250,0,10)
  575. b.BackgroundTransparency = 1
  576. b.Text = "Reflectance: ".. mouse.Target.Reflectance
  577. local v = Instance.new("TextLabel")
  578. v.Parent = M
  579. v.Position = UDim2.new(0,5,0,240)
  580. v.Size = UDim2.new(0,250,0,10)
  581. v.BackgroundTransparency = 1
  582. v.Text = "Transparency: ".. mouse.Target.Transparency
  583. local h = Instance.new("TextLabel")
  584. h.Parent = M
  585. h.Position = UDim2.new(0,5,0,250)
  586. h.Size = UDim2.new(0,50,0,10)
  587. h.BackgroundTransparency = 1
  588. h.Text = "Position: "
  589. x = math.ceil(mouse.Target.Position.X)
  590. y = math.ceil(mouse.Target.Position.Y)
  591. z = math.ceil(mouse.Target.Position.Z)
  592. local kl = Instance.new("TextLabel")
  593. kl.Parent = M
  594. kl.Position = UDim2.new(0,125,0,250)
  595. kl.Size = UDim2.new(0,0,0,10)
  596. kl.BackgroundTransparency = 1
  597. kl.Text = "X: " ..x.. " Y: " ..y.. " Z: "..z
  598. x1 = math.ceil(mouse.Target.Size.X)
  599. y1 = math.ceil(mouse.Target.Size.Y)
  600. z1 = math.ceil(mouse.Target.Size.Z)
  601. local a = Instance.new("TextLabel")
  602. a.Parent = M
  603. a.Position = UDim2.new(0,125,0,260)
  604. a.Size = UDim2.new(0,0,0,10)
  605. a.BackgroundTransparency = 1
  606. a.Text = "X: " ..x1.. " Y: " ..y1.. " Z: "..z1
  607. local t = Instance.new("TextLabel")
  608. t.Parent = M
  609. t.Position = UDim2.new(0,5,0,260)
  610. t.Size = UDim2.new(0,40,0,10)
  611. t.BackgroundTransparency = 1
  612. t.Text = "Size: "
  613. x2 = math.ceil(mouse.Hit.p.X)
  614. y2 = math.ceil(mouse.Hit.p.Y)
  615. z2 = math.ceil(mouse.Hit.p.Z)
  616. local vc = Instance.new("TextLabel")
  617. vc.Parent = M
  618. vc.Position = UDim2.new(0,110,0,270)
  619. vc.Size = UDim2.new(0,40,0,10)
  620. vc.BackgroundTransparency = 1
  621. vc.Text = x2.." "..y2.." "..z2
  622. wait(15)
  623. b:remove()
  624. v:remove()
  625. K:remove()
  626. d:remove()
  627. f:remove()
  628. j:remove()
  629. h:remove()
  630. kl:remove()
  631. a:remove()
  632. t:remove()
  633. vc:remove()
  634. end
  635. if (key == "G") then
  636. if (Grabbed == nil) then
  637. if (Debounce == false) then
  638. Debounce = true
  639. DisableLimb(1)
  640. DisableLimb(2)
  641. SetAngle(1, 1.57)
  642. SetAngle(2, 1.8)
  643. Connection1 = Limbs[1].Touched:connect(Grab)
  644. Connection2 = Limbs[2].Touched:connect(Grab)
  645. for E = 1, 30 do
  646. if (Grabbed ~= nil) then
  647. break
  648. end
  649. wait(0.1)
  650. end
  651. if (Grabbed == nil) then
  652. EnableLimb(1)
  653. EnableLimb(2)
  654. Connection1:disconnect()
  655. Connection2:disconnect()
  656. Debounce = false
  657. end
  658. end
  659. else
  660. Person.Character.Torso.Grip:remove()
  661. Position = Grabbed.Character.Torso.Position
  662. Direction = PersonT.CFrame.lookVector
  663. Position = Position + 4 * 3 * Direction
  664. error = Position - PersonT.Position
  665. Grabbed.Character.Torso.Velocity = 4 * error
  666. end
  667. end
  668. if (key == "R") then
  669. if (Flight == false) then
  670. if (Debounce == false) then
  671. Debounce = true
  672. DisableLimb(1)
  673. DisableLimb(2)
  674. Flight = true
  675. DisableLimb(3)
  676. DisableLimb(4)
  677. SetAngle(1, 0)
  678. SetAngle(2, 0)
  679. SetAngle(3, 0)
  680. SetAngle(4, 0)
  681. Engine = Instance.new("Part")
  682. Engine.Parent = Person.Character
  683. Engine.Size = PersonT.Size
  684. Engine.Name = "Engine"
  685. Engine.TopSurface = 0
  686. Engine.BottomSurface = 0
  687. Engine.formFactor = "Symmetric"
  688. Engine.Transparency = 1
  689. Engine:BreakJoints()
  690. Weld = Instance.new("Weld")
  691. Weld.Parent = Engine
  692. Weld.Part0 = PersonT
  693. Weld.Part1 = Engine
  694. Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  695. BodyP = Instance.new("BodyPosition")
  696. BodyP.Parent = Engine
  697. BodyP.position = Engine.Position + Vector3.new(0, 2, 0)
  698. BodyP.maxForce = Vector3.new(2e+050, 2e+050, 2e+050)
  699. BodyG = Instance.new("BodyGyro")
  700. BodyG.Parent = Engine
  701. BodyV = Instance.new("BodyVelocity")
  702. BodyV.Parent = Engine
  703. BodyV.velocity = Vector3.new(0, 0, 0)
  704. BodyV.maxForce = Vector3.new(0, 0, 0)
  705. while true do
  706. if (Flight == false) then
  707. break
  708. end
  709. Direct(Engine, mouse.hit.p)
  710. Person.Character.Humanoid.Sit = true
  711. Person.Character.Head.CanCollide = false
  712. Person.Character.Torso.CanCollide = false
  713. wait(0.000000000000000000000000000000001)
  714. end
  715. EnableLimb(1)
  716. EnableLimb(2)
  717. EnableLimb(3)
  718. EnableLimb(4)
  719. Debounce = false
  720. Person.Character.Engine:remove()
  721. Person.Character.Humanoid.Sit = false
  722. end
  723. else
  724. Flight = false
  725. end
  726. end
  727. if (key == "L") then
  728. DisableLimb(NormalHand)
  729. SetAngle(NormalHand, 1.57)
  730. Smoke = Instance.new("Smoke")
  731. Smoke.Parent = Person.Character.Suit.Band
  732. local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3
  733. Smoke.Color = Color3.new(0, 0, 0)
  734. Smoke.Size = 15
  735. Smoke.Opacity = 1
  736. Smoke.RiseVelocity = -15
  737. end
  738. if (key == "H") then
  739. if (Debounce == false) then
  740. if (Lazer == false) then
  741. if (mouse.Target ~= nil) then
  742. Debounce = true
  743. Lazer = true
  744. DisableLimb(NormalHand)
  745. SetAngle(NormalHand, 0.785)
  746. BP = Instance.new("BodyPosition")
  747. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  748. BP.P = BP.P / 4
  749. BG = Instance.new("BodyGyro")
  750. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  751. local Hit = mouse.Target
  752. local _P = mouse.Hit.p
  753. local Mag = (Hit.Position-_P).magnitude
  754. local Pos = (Hit.Position-_P).unit * -Mag
  755. local CF = Hit.CFrame.lookVector
  756. while true do
  757. if (Lazer == false) then
  758. break
  759. end
  760. BP.Parent = PersonT
  761. BP.position = ((((CFrame.new(Hit.Position + Pos)) + (-CF)) + (Hit.CFrame.lookVector)) + (mouse.Hit.lookVector * -16)).p + Vector3.new(0, 5.7, 0)
  762. BG.Parent = PersonT
  763. BG.cframe = CFrame.new((PersonT.CFrame + (mouse.Hit.lookVector * -8)).p, (Hit.Position + Pos))
  764. if (Hit.Parent == nil) or (Hit.Parent.Parent == Person.Character) then
  765. BP.Parent = nil
  766. BG.Parent = nil
  767. end
  768. local P = Instance.new("Part")
  769. P.Name = "Grapple Lazer"
  770. P.formFactor = 0
  771. P.Parent = Person.Character
  772. P.BrickColor = BrickColor.new(1)
  773. P.Anchored = true
  774. P.Transparency = 0.05
  775. P.Locked = true
  776. P.Reflectance = 0.025
  777. P.CanCollide = false
  778. P.Size = Vector3.new(1, 1, 1)
  779. local mesh = Instance.new("CylinderMesh")
  780. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  781.  
  782. mesh.Scale = Vector3.new(0.1, (Place0.p - (Hit.Position + Pos)).magnitude, 0.1)
  783. mesh.Parent = P
  784. P.CFrame = CFrame.new((Place0.p + (Hit.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  785. wait()
  786. P:remove()
  787. end
  788. Debounce = false
  789. EnableLimb(NormalHand)
  790. BP.Parent = nil
  791. BG.Parent = nil
  792. end
  793. end
  794. end
  795. end
  796. if (key == "J") then
  797. if (Debounce == false) then
  798. if (Lazer == false) then
  799. Debounce = true
  800. Lazer = true
  801. DisableLimb(NormalHand)
  802. SetAngle(NormalHand, 0.785)
  803. smokeBrick = Instance.new("Part")
  804. smokeBrick.CanCollide = false
  805. smokeBrick.Anchored = true
  806. smokeBrick.Transparency = 1
  807. smokeBrick.Locked = true
  808. smokeBrick.archivable = false
  809. smokeBrick.TopSurface = 0
  810. smokeBrick.BottomSurface = 0
  811. smoke = Instance.new("Smoke")
  812. smoke.Size = smoke.Size * 4
  813. while true do
  814. if (Lazer == false) then
  815. break
  816. end
  817. local Pos = mouse.Hit.p
  818. smokeBrick.Parent = Person.Character
  819. smokeBrick.CFrame = CFrame.new(Pos)
  820. if (mouse.Target) and (mouse.Target ~= nil) then
  821. smoke.Parent = smokeBrick
  822. local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3
  823. smoke.Color = Color3.new(c, c, c)
  824. end
  825. local L = Instance.new("Part")
  826. L.Parent = Person.Character
  827. L.Name = "Kill Lazer"
  828. L.BrickColor = BrickColor.new(21)
  829. L.formFactor = 0
  830. L.Size = Vector3.new(1, 1, 1)
  831. L.Locked = true
  832. L.Anchored = true
  833. L.CanCollide = false
  834. L.Transparency = 0.05
  835. L.Reflectance = 0.1
  836. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  837. local Mesh = Instance.new("CylinderMesh")
  838. Mesh.Parent = L
  839. Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1)
  840. L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  841. if (mouse.Target ~= nil) then
  842. if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
  843. if ("" ~= "") then
  844. mouse.Target.Parent:BreakJoints()
  845. else
  846. mouse.Target:BreakJoints()
  847. end
  848. end
  849. end
  850. wait()
  851. L:Remove()
  852. end
  853. Debounce = false
  854. smokeBrick.Parent = nil
  855. EnableLimb(NormalHand)
  856. end
  857. end
  858. end
  859. if (key == "K") then
  860. if (Debounce == false) then
  861. if (Lazer == false) then
  862. Debounce = true
  863. Lazer = true
  864. DisableLimb(NormalHand)
  865. SetAngle(NormalHand, 0.785)
  866. BP = Instance.new("BodyPosition")
  867. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  868. BP.P = BP.P / 4
  869. BG = Instance.new("BodyGyro")
  870. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  871. local targ = nil
  872. local Mag = nil
  873. local Pos = nil
  874. while true do
  875. if (Lazer == false) then
  876. break
  877. end
  878. if (mouse.Target ~= nil) and (targ == nil) then
  879. if (mouse.Target.Anchored == false) then
  880. if ((mouse.Hit.p - Person.Character.Suit.Watch2.Position).magnitude <= 10000) then
  881. targ = mouse.Target
  882. BP.Parent = targ
  883. BG.Parent = targ
  884. Mag = (targ.Position - mouse.Hit.p).magnitude
  885. Pos = (targ.Position - mouse.Hit.p).unit * -Mag
  886. end
  887. end
  888. end
  889. local pop = mouse.Hit.p
  890. local G = Instance.new("Part")
  891. G.Parent = Person.Character
  892. G.Name = "Grab Lazer"
  893. G.Anchored = true
  894. G.Locked = true
  895. G.CanCollide = false
  896. G.formFactor = 0
  897. G.Size = Vector3.new(1, 1, 1)
  898. G.BrickColor = BrickColor.new("Royal blue")
  899. G.Reflectance = 0.05
  900. G.Transparency = 0.025
  901. local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0)
  902. local MeAsh = Instance.new("CylinderMesh")
  903. MeAsh.Parent = G
  904. if (targ == nil) or (targ.Anchored == true) then
  905. MeAsh.Scale = Vector3.new(0.1, (Place0.p-pop).magnitude, 0.1)
  906. G.CFrame = CFrame.new((Place0.p + pop)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  907. else
  908. BP.Parent = targ
  909. BP.position = (PersonT.CFrame + (mouse.Hit.lookVector * 8) + Pos).p + Vector3.new(0, 5.7, 0)
  910. BG.Parent = targ
  911. BG.cframe = CFrame.new(targ.Position, PersonT.Position)
  912. if (targ.Parent == nil) or (targ.Parent.Parent == Person.Character) then
  913. BP.Parent = nil
  914. BG.Parent = nil
  915. end
  916. MeAsh.Scale = Vector3.new(0.1, (Place0.p - targ.Position).magnitude, 0.1)
  917. G.CFrame = CFrame.new((Place0.p + (targ.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  918. end
  919. wait()
  920. G:Remove()
  921. end
  922. Debounce = false
  923. EnableLimb(NormalHand)
  924. BP.Parent = nil
  925. BG.Parent = nil
  926. end
  927. end
  928. end
  929.  
  930. end
  931. function LiftKey(key, mouse)
  932. key = key:upper()
  933. if (key == "L") then
  934. if (Person.Character.Suit.Band:findFirstChild("Smoke") ~= nil) then
  935. Person.Character.Suit.Band.Smoke:remove()
  936. EnableLimb(NormalHand)
  937. end
  938. end
  939. if (key == "H") then
  940. if (Person.Character:findFirstChild("Grapple Lazer") ~= nil) then
  941. Lazer = false
  942. end
  943. end
  944. if (key == "J") then
  945. if (Person.Character:findFirstChild("Kill Lazer") ~= nil) then
  946. Lazer = false
  947. end
  948. end
  949. if (key == "K") then
  950. if (Person.Character:findFirstChild("Grab Lazer") ~= nil) then
  951. Lazer = false
  952. end
  953. end
  954. if (key == "X") then
  955. if (Person.Character:findFirstChild(" Lazer") ~= nil) then
  956. Lazer = false
  957. end
  958. end
  959. end
  960. function Select(mouse)
  961. mouse.Button1Down:connect(function() Click(mouse) end)
  962. mouse.Button1Up:connect(function() Release(mouse) end)
  963. mouse.KeyDown:connect(function(key) PressKey(key, mouse) end)
  964. mouse.KeyUp:connect(function(key) LiftKey(key, mouse) end)
  965. end
  966. function Deselect(mouse)
  967. Hold = false
  968. Lazer = false
  969. Flight = false
  970. end
  971. Bin.Selected:connect(Select)
  972. Bin.Deselected:connect(Deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement