Advertisement
brandonflex123

Untitled

Jul 23rd, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.07 KB | None | 0 0
  1. --AssAssin Suit Gifted by Rosemarijohn2, Regular Script!
  2.  
  3.  
  4. Person = game.Players.brandonflex123
  5. if (script.Parent.className ~= "HopperBin") then
  6. Tool = Instance.new("HopperBin")
  7. Tool.Parent = Person.Backpack
  8. Tool.Name = "Tool"
  9. script.Parent = Tool
  10. G = Instance.new("GuiMain")
  11. G.Parent = Person.PlayerGui
  12. G.Name = "MahGoey"
  13. F = Instance.new("Frame")
  14. F.Parent = G
  15. T = Instance.new("TextLabel")
  16. T.Parent = F
  17. T.Name = "Tool"
  18. T.Text = "Blade"
  19. T.Size = UDim2.new(0, 100, 0, 40)
  20. T.Position = UDim2.new(0, 0, 0, 150)
  21. T.BorderSizePixel = 0
  22. T.BackgroundColor3 = Color3.new(0, 0, 0)
  23. T.TextColor3 = Color3.new(1, 1, 1)
  24. T.BackgroundTransparency = 0.3
  25. M = Instance.new("TextLabel")
  26. M.Parent = F
  27. M.Name = "Mode"
  28. M.Text = "Standard"
  29. M.Size = UDim2.new(0, 100, 0, 40)
  30. M.Position = UDim2.new(0, 0, 0, 190)
  31. M.BorderSizePixel = 0
  32. M.BackgroundColor3 = Color3.new(0, 0, 0)
  33. M.TextColor3 = Color3.new(1, 1, 1)
  34. M.BackgroundTransparency = 0.3
  35. end
  36. ---------------------------------------------------------------------------------------------------------------------------------------------Variables
  37. Bin = script.Parent
  38. Grabbed = nil
  39. Debounce = false
  40. BladeOut = false
  41. Hold = false
  42. Suit = true
  43. Limbs = {Person.Character["Right Arm"], Person.Character["Left Arm"], Person.Character["Right Leg"], Person.Character["Left Leg"]}
  44. Joints = {Person.Character.Torso["Right Shoulder"], Person.Character.Torso["Left Shoulder"], Person.Character.Torso["Right Hip"], Person.Character.Torso["Left Hip"]}
  45. NewJoints = {nil, nil, nil, nil}
  46. ModeList = {{"Standard", "Breaker"}, {"Main"}, {"Death", "Ban", "Sleep", "Explosion"}}
  47. Tools = {"Blade", "Bomb", "Wand"}
  48. List = {}
  49. Mode = 1
  50. Tool = 1
  51. PreferredHand = 1
  52. PreferredFoot = 3
  53. UnPreferredHand = 0
  54. UnPreferredFoot = 0
  55. if (PreferredHand == 1) then
  56. UnPreferredHand = 2
  57. else
  58. UnPreferredHand = 1
  59. end
  60. if (PreferredFoot == 3) then
  61. UnPreferredFoot = 4
  62. else
  63. UnPreferredFoot = 3
  64. end
  65. ---------------------------------------------------------------------------------------------------------------------------------------------Suit
  66. if (Person.Character:findFirstChild("Suit") ~= nil) then
  67. Person.Character.Suit:remove()
  68. end
  69. Suit = Instance.new("Model")
  70. Suit.Parent = Person.Character
  71. Suit.Name = "Suit"
  72. if (Person.Character:findFirstChild("Body Colors") ~= nil) then
  73. Person.Character["Body Colors"]:remove()
  74. end
  75. if (Person.Character.Torso:findFirstChild("roblox") ~= nil) then
  76. Person.Character.Torso.roblox:remove()
  77. end
  78. Person.Character.Torso.BrickColor = BrickColor.new("Really black")
  79. Limbs[4].BrickColor = Person.Character.Head.BrickColor
  80. Limbs[3].BrickColor = Person.Character.Head.BrickColor
  81. Limbs[2].BottomSurface = 0
  82. Limbs[1].BottomSurface = 0
  83.  
  84. Blade = Instance.new("Model")
  85. Blade.Parent = Suit
  86. Blade.Name = "Blade"
  87. BandA = Instance.new("Part")
  88. BandA.Parent = Blade
  89. BandA.Name = "BandA"
  90. BandA.CanCollide = false
  91. BandA.BrickColor = BrickColor.new("White")
  92. BandA.TopSurface = 0
  93. BandA.BottomSurface = 0
  94. BandA.formFactor = "Symmetric"
  95. BandA.Size = Vector3.new(1, 1, 1)
  96. MeshA = Instance.new("BlockMesh")
  97. MeshA.Parent = BandA
  98. MeshA.Scale = Vector3.new(1.02, 0.1, 1.02)
  99. BandA:BreakJoints()
  100. Weld = Instance.new("Weld")
  101. Weld.Parent = BandA
  102. Weld.Part0 = Limbs[PreferredHand]
  103. Weld.Part1 = BandA
  104. Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  105. BandB = Instance.new("Part")
  106. BandB.Parent = Blade
  107. BandB.Name = "BandB"
  108. BandB.CanCollide = false
  109. BandB.BrickColor = BrickColor.new("White")
  110. BandB.TopSurface = 0
  111. BandB.BottomSurface = 0
  112. BandB.formFactor = "Symmetric"
  113. BandB.Size = Vector3.new(1, 1, 1)
  114. MeshB = Instance.new("BlockMesh")
  115. MeshB.Parent = BandB
  116. MeshB.Scale = Vector3.new(1.02, 0.1, 1.02)
  117. BandB:BreakJoints()
  118. Weld = Instance.new("Weld")
  119. Weld.Parent = BandB
  120. Weld.Part0 = Limbs[PreferredHand]
  121. Weld.Part1 = BandB
  122. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  123. SlotA = Instance.new("Part")
  124. SlotA.Parent = Blade
  125. SlotA.Name = "SlotA"
  126. SlotA.CanCollide = false
  127. SlotA.BrickColor = BrickColor.new("Really black")
  128. SlotA.TopSurface = 0
  129. SlotA.BottomSurface = 0
  130. SlotA.formFactor = "Symmetric"
  131. SlotA.Size = Vector3.new(1, 1, 1)
  132. MeshA = Instance.new("BlockMesh")
  133. MeshA.Parent = SlotA
  134. MeshA.Scale = Vector3.new(0.1, 1, 0.3)
  135. SlotA:BreakJoints()
  136. Weld = Instance.new("Weld")
  137. Weld.Parent = SlotA
  138. Weld.Part0 = Limbs[PreferredHand]
  139. Weld.Part1 = SlotA
  140. if (PreferredHand == 1) then
  141. Weld.C0 = CFrame.new(0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  142. else
  143. Weld.C0 = CFrame.new(-0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  144. end
  145. ---------------------------------------------------------------------------------------------------------------------------------------------Wand
  146.  
  147.  
  148. ---------------------------------------------------------------------------------------------------------------------------------------------Functions
  149. function DisableLimb(Limb)
  150. NJoint = Instance.new("Motor")
  151. NJoint.Parent = Person.Character.Torso
  152. NJoint.Name = Joints[Limb].Name
  153. NJoint.Part0 = Joints[Limb].Part0
  154. NJoint.Part1 = Joints[Limb].Part1
  155. NJoint.MaxVelocity = Joints[Limb].MaxVelocity
  156. NJoint.C0 = Joints[Limb].C0
  157. NJoint.C1 = Joints[Limb].C1
  158. Joints[Limb].Parent = nil
  159. NewJoints[Limb] = NJoint
  160. end
  161. function EnableLimb(Limb)
  162. Joints[Limb].Parent = Person.Character.Torso
  163. NewJoints[Limb]:remove()
  164. NewJoints[Limb] = nil
  165. end
  166.  
  167.  
  168. function Check(Table, Value)
  169. Results = false
  170. for W, V in pairs(Table) do
  171. if (V == Value) then
  172. Results = true
  173. end
  174. end
  175. return Results
  176. end
  177.  
  178. function WeldOn(X, Y)
  179. Weld = Instance.new("Weld")
  180. Weld.Part0 = X
  181. Weld.Part1 = Y
  182.  
  183. HitPos = X.Position
  184. CJ = CFrame.new(HitPos)
  185. C0 = X.CFrame:inverse() *CJ
  186. C1 = Y.CFrame:inverse() * CJ
  187. Weld.C0 = C0
  188. Weld.C1 = C1
  189. Weld.Parent = X
  190. end
  191. function TimeDelete(Object, Time)
  192. wait(Time)
  193. Object:remove()
  194. end
  195. function Touch(Hit, Missile)
  196. if (Hit ~= nil) then
  197. if (Hit.Parent ~= nil) then
  198. if (Check(List, Missile) == false) then
  199. Bool = Person.Character:IsAncestorOf(Hit)
  200. if (Bool == false) then
  201. if (Mode == 2) then
  202. Hit:BreakJoints()
  203. end
  204. if (Missile:findFirstChild("ArmWeld") == nil) then
  205. WeldOn(Missile, Hit)
  206. end
  207. if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then
  208. if (Hit.Parent.Humanoid.Health > 0) then
  209. if (Mode == 1) then
  210. Hit.Parent:BreakJoints()
  211. end
  212. end
  213. end
  214. end
  215. end
  216. end
  217. end
  218. end
  219. function ChangeWeapon(Weapon, PrevWeapon)
  220. Hold = false
  221. if (PrevWeapon == 1) then
  222. if (BladeOut == true) then
  223. BladeOut = false
  224. if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then
  225. if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then
  226. Num = 1.4
  227. for I = 1, 5 do
  228. if (PreferredHand == 1) then
  229. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  230. else
  231. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  232. end
  233. Num = Num - 0.1
  234. wait(0.01)
  235. end
  236. end
  237. Person.Character.Suit.Blade.Blade:remove()
  238. end
  239. end
  240. end
  241. if (PrevWeapon == 3) then
  242. Person.Character.Wand:remove()
  243. end
  244.  
  245. if (Weapon == 3) then
  246. WandA = Instance.new("Part")
  247. WandA.Parent = Person.Character
  248. WandA.Name = "Wand"
  249. WandA.CanCollide = false
  250. WandA.Transparency = 1
  251. WandA.BrickColor = BrickColor.new("Brown")
  252. WandA.TopSurface = 0
  253. WandA.BottomSurface = 0
  254. WandA.formFactor = "Symmetric"
  255. WandA.Size = Vector3.new(1, 1, 1)
  256. Mesh = Instance.new("CylinderMesh")
  257. Mesh.Parent = WandA
  258. Mesh.Scale = Vector3.new(0.1, 1.2, 0.1)
  259. Weld = Instance.new("Weld")
  260. Weld.Parent = WandA
  261. Weld.Part0 = Limbs[PreferredHand]
  262. Weld.Part1 = WandA
  263. if (PreferredHand == 1) then
  264. Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0, 0)
  265. else
  266. Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi + (math.pi/4), 0, 0)
  267. end
  268. end
  269.  
  270.  
  271.  
  272.  
  273. end
  274.  
  275.  
  276.  
  277. function GrabFunction(Part)
  278. Grabbed = Part.Parent
  279. PlatformStand = Part.Parent.Humanoid.PlatformStand
  280. Part.Parent.Humanoid.PlatformStand = true
  281. Part.Parent.Torso.DraggingV1 = true
  282. Val = math.pi/2
  283. if (PreferredHand == 2) then
  284. Val = -math.pi/2
  285. end
  286. Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, -math.pi/2)
  287. while true do
  288. if (Hold == false) then
  289. break
  290. end
  291. if (Part.Parent.Parent == nil) then
  292. break
  293. end
  294. if (Part.Parent:findFirstChild("Torso") == nil) then
  295. break
  296. end
  297. if (Part.Parent:findFirstChild("Humanoid") == nil) then
  298. break
  299. end
  300. if (Part.Parent.Humanoid.Health < 0.001) then
  301. break
  302. end
  303. Part.Parent.Humanoid.PlatformStand = true
  304. Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, math.pi/2)
  305. wait(0.0)
  306. end
  307. if (Part.Parent:findFirstChild("Humanoid") ~= nil) then
  308. Part.Parent.Humanoid.PlatformStand = PlatformStand
  309. end
  310. if (Part.Parent:findFirstChild("Torso") ~= nil) then
  311. Part.Parent.Torso.DraggingV1 = false
  312. end
  313. Debounce = false
  314. Grabbed = nil
  315. end
  316.  
  317. function Grab(Hit)
  318. if (Grabbed == nil) then
  319. if (Hit ~= nil) then
  320. if (Hit.Parent ~= nil) then
  321. if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then
  322. if (Hit.Parent.Humanoid.Health > 0) then
  323. if (Hit.Parent:findFirstChild("Torso") ~= nil) then
  324. GrabFunction(Hit)
  325. end
  326. end
  327. end
  328. end
  329. end
  330. end
  331. end
  332. function Del(Object)
  333. for I = 1, 10 do
  334. wait(0.001)
  335. Object.Mesh.Scale = Vector3.new(Object.Mesh.Scale.x - 0.1, Object.Mesh.Scale.y - 0.1, Object.Mesh.Scale.z - 0.1)
  336. end
  337. Object:remove()
  338. end
  339.  
  340.  
  341. ---------------------------------------------------------------------------------------------------------------------------------------------Click
  342. function Click(mouse)
  343. Hold = true
  344. if (Tool == 1) then
  345. DisableLimb(PreferredHand)
  346. Val = -math.pi/2
  347. if (PreferredHand == 2) then
  348. Val = math.pi/2
  349. end
  350. while true do
  351. if (Hold == false) then
  352. break
  353. end
  354. Place0 = Person.Character.Torso.CFrame
  355. Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector
  356. Place1 = Place0 + ((Place0.p - mouse.Hit.p).unit * - 2)
  357. Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-(math.pi/2), Val, 0)
  358. HitPos = Person.Character.Torso.Position
  359. CJ = CFrame.new(HitPos)
  360. C0 = Person.Character.Torso.CFrame:inverse() *CJ
  361. C1 = Place2:inverse() * CJ
  362. NewJoints[PreferredHand].C0 = C0
  363. NewJoints[PreferredHand].C1 = C1
  364. wait(0.0)
  365. end
  366. EnableLimb(PreferredHand)
  367. end
  368.  
  369.  
  370. if (Tool == 3) then
  371. B = Instance.new("BillboardGui")
  372. B.Parent = Person.PlayerGui
  373. B.Name = "Indicator"
  374. B.Adornee = nil
  375. B.Size = UDim2.new(0, 1, 0, 1)
  376. T = Instance.new("ImageLabel")
  377. T.Image = "http://www.roblox.com/asset/?id=24838770"
  378. T.BackgroundTransparency = 1
  379. T.Parent = B
  380. T.Size = UDim2.new(0, 200, 0, 200)
  381. T.Position = UDim2.new(0, -100, 0 , -100)
  382. DisableLimb(PreferredHand)
  383. Val = -math.pi/2
  384. if (PreferredHand == 2) then
  385. Val = math.pi/2
  386. end
  387. while true do
  388. if (Hold == false) then
  389. break
  390. end
  391. if (mouse.Target == nil) then
  392. B.Adornee = nil
  393. else
  394. if (mouse.Target.Parent == nil) then
  395. B.Adornee = nil
  396. else
  397. if (mouse.Target.Parent:findFirstChild("Humanoid") == nil) then
  398. B.Adornee = nil
  399. else
  400. if (mouse.Target.Parent:findFirstChild("Torso") == nil) then
  401. B.Adornee = nil
  402. else
  403. if (mouse.Target.Parent.Humanoid.Health < 0.01) then
  404. B.Adornee = nil
  405. elseif (mouse.Target.Parent.Humanoid.Health > 0) then
  406. if (mouse.Target.Parent.Torso ~= B.Adornee) then
  407. B.Adornee = mouse.Target.Parent.Torso
  408. end
  409. end
  410. end
  411. end
  412. end
  413. end
  414. Point = mouse.Hit
  415. if (B.Adornee ~= nil) then
  416. Point = B.Adornee.CFrame
  417. end
  418.  
  419. Place0 = Person.Character.Torso.CFrame
  420. Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector
  421. Place1 = Place0 + ((Place0.p - Point.p).unit * - 2)
  422. Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  423. HitPos = Person.Character.Torso.Position
  424. CJ = CFrame.new(HitPos)
  425. C0 = Person.Character.Torso.CFrame:inverse() *CJ
  426. C1 = Place2:inverse() * CJ
  427. NewJoints[PreferredHand].C0 = C0
  428. NewJoints[PreferredHand].C1 = C1
  429. wait(0.0)
  430. end
  431. B:remove()
  432. EnableLimb(PreferredHand)
  433. end
  434.  
  435.  
  436.  
  437. end
  438.  
  439. function Release(mouse)
  440. Hold = false
  441. end
  442. ---------------------------------------------------------------------------------------------------------------------------------------------Key
  443. function PressKey(key, mouse)
  444. if (Tool == 1) then
  445. if (key == "g") then
  446. if (Hold == true) then
  447. if (BladeOut == false) then
  448. if (Debounce == false) then
  449. Debounce = true
  450. Connection = Limbs[PreferredHand].Touched:connect(Grab)
  451. for I = 1, 3000 do
  452. if (Hold == false) then
  453. break
  454. end
  455. if (BladeOut == true) then
  456. break
  457. end
  458. wait(0.001)
  459. end
  460. if (Grabbed == nil) then
  461. Debounce = false
  462. end
  463. Connection:disconnect()
  464. end
  465. end
  466. end
  467. end
  468. if (key == "f") then
  469. if (Hold == true) then
  470. if (BladeOut == true) then
  471. if (Debounce == false) then
  472. Debounce = true
  473. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld:remove()
  474. Person.Character.Suit.Blade.Blade.BladeA.CanCollide = true
  475. BV = Instance.new("BodyVelocity")
  476. BV.Parent = Person.Character.Suit.Blade.Blade.BladeA
  477. BV.maxForce = Vector3.new(1e+010, 1e+010, 1e+010)
  478. BV.velocity = Person.Character.Suit.Blade.Blade.BladeA.CFrame.lookVector * 60
  479. BG = Instance.new("BodyGyro")
  480. BG.Parent = Person.Character.Suit.Blade.Blade.BladeA
  481. BG.maxTorque = Vector3.new(4e+030, 4e+030, 4e+030)
  482. BG.cframe = Person.Character.Suit.Blade.Blade.BladeA.CFrame
  483. coroutine.resume(coroutine.create(TimeDelete), Person.Character.Suit.Blade.Blade, 8)
  484. Person.Character.Suit.Blade.Blade.Parent = game.Workspace
  485. wait(3)
  486. Mod = Instance.new("Model")
  487. Mod.Parent = Blade
  488. Mod.Name = "Blade"
  489. BladeA = Instance.new("Part")
  490. BladeA.Parent = Mod
  491. BladeA.Name = "BladeA"
  492. BladeA.CanCollide = false
  493. BladeA.Transparency = 1
  494. BladeA.TopSurface = 0
  495. BladeA.BottomSurface = 0
  496. BladeA.formFactor = "Symmetric"
  497. BladeA.Size = Vector3.new(3.0, 3.0, 3.0)
  498. BladeA:BreakJoints()
  499. Weld = Instance.new("Weld")
  500. Weld.Parent = BladeA
  501. Weld.Name = "ArmWeld"
  502. Weld.Part0 = Limbs[PreferredHand]
  503. Weld.Part1 = BladeA
  504. if (PreferredHand == 1) then
  505. Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  506. else
  507. Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  508. end
  509. BladeB = Instance.new("Part")
  510. BladeB.Parent = Mod
  511. BladeB.Name = "BladeB"
  512. BladeB.CanCollide = false
  513. BladeB.Reflectance = 0.1
  514. BladeB.BrickColor = BrickColor.new("Really black")
  515. BladeB.TopSurface = 0
  516. BladeB.BottomSurface = 0
  517. BladeB.formFactor = "Symmetric"
  518. BladeB.Size = Vector3.new(3.0, 3.0, 3.0)
  519. MeshB = Instance.new("SpecialMesh")
  520. MeshB.Parent = BladeB
  521. MeshB.MeshType = "Wedge"
  522. MeshB.Scale = Vector3.new(0.05, 1, 0.1)
  523. BladeB:BreakJoints()
  524. Weld = Instance.new("Weld")
  525. Weld.Parent = BladeB
  526. Weld.Part0 = BladeA
  527. Weld.Part1 = BladeB
  528. Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  529. BladeC = Instance.new("Part")
  530. BladeC.Parent = Mod
  531. BladeC.Name = "BladeC"
  532. BladeC.CanCollide = false
  533. BladeC.Reflectance = 0.1
  534. BladeC.BrickColor = BrickColor.new("White")
  535. BladeC.TopSurface = 0
  536. BladeC.BottomSurface = 0
  537. BladeC.formFactor = "Symmetric"
  538. BladeC.Size = Vector3.new(3.0, 3.0, 3.0)
  539. MeshC = Instance.new("SpecialMesh")
  540. MeshC.Parent = BladeC
  541. MeshC.MeshType = "Wedge"
  542. MeshC.Scale = Vector3.new(0.05, 1, 0.1)
  543. BladeC:BreakJoints()
  544. Weld = Instance.new("Weld")
  545. Weld.Parent = BladeC
  546. Weld.Part0 = BladeA
  547. Weld.Part1 = BladeC
  548. Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  549. BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end)
  550. Num = 1
  551. for I = 1, 5 do
  552. if (PreferredHand == 1) then
  553. BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  554. else
  555. BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  556. end
  557. Num = Num + 0.1
  558. wait(0.01)
  559. end
  560. Debounce = false
  561. end
  562. end
  563. end
  564. end
  565. if (key == "r") then
  566. if (Debounce == false) then
  567. if (BladeOut == false) then
  568. BladeOut = true
  569. Mod = Instance.new("Model")
  570. Mod.Parent = Blade
  571. Mod.Name = "Blade"
  572. BladeA = Instance.new("Part")
  573. BladeA.Parent = Mod
  574. BladeA.Name = "BladeA"
  575. BladeA.CanCollide = false
  576. BladeA.Transparency = 1
  577. BladeA.TopSurface = 0
  578. BladeA.BottomSurface = 0
  579. BladeA.formFactor = "Symmetric"
  580. BladeA.Size = Vector3.new(1, 1, 1)
  581. BladeA:BreakJoints()
  582. Weld = Instance.new("Weld")
  583. Weld.Parent = BladeA
  584. Weld.Name = "ArmWeld"
  585. Weld.Part0 = Limbs[PreferredHand]
  586. Weld.Part1 = BladeA
  587. if (PreferredHand == 1) then
  588. Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  589. else
  590. Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  591. end
  592. BladeB = Instance.new("Part")
  593. BladeB.Parent = Mod
  594. BladeB.Name = "BladeB"
  595. BladeB.CanCollide = false
  596. BladeB.Reflectance = 0.1
  597. BladeB.BrickColor = BrickColor.new("Medium stone grey")
  598. BladeB.TopSurface = 0
  599. BladeB.BottomSurface = 0
  600. BladeB.formFactor = "Symmetric"
  601. BladeB.Size = Vector3.new(1, 1, 1)
  602. MeshB = Instance.new("SpecialMesh")
  603. MeshB.Parent = BladeB
  604. MeshB.MeshType = "Wedge"
  605. MeshB.Scale = Vector3.new(0.05, 1, 0.1)
  606. BladeB:BreakJoints()
  607. Weld = Instance.new("Weld")
  608. Weld.Parent = BladeB
  609. Weld.Part0 = BladeA
  610. Weld.Part1 = BladeB
  611. Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  612. BladeC = Instance.new("Part")
  613. BladeC.Parent = Mod
  614. BladeC.Name = "BladeC"
  615. BladeC.CanCollide = false
  616. BladeC.Reflectance = 0.1
  617. BladeC.BrickColor = BrickColor.new("Medium stone grey")
  618. BladeC.TopSurface = 0
  619. BladeC.BottomSurface = 0
  620. BladeC.formFactor = "Symmetric"
  621. BladeC.Size = Vector3.new(1, 1, 1)
  622. MeshC = Instance.new("SpecialMesh")
  623. MeshC.Parent = BladeC
  624. MeshC.MeshType = "Wedge"
  625. MeshC.Scale = Vector3.new(0.05, 1, 0.1)
  626. BladeC:BreakJoints()
  627. Weld = Instance.new("Weld")
  628. Weld.Parent = BladeC
  629. Weld.Part0 = BladeA
  630. Weld.Part1 = BladeC
  631. Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  632. BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end)
  633. Num = 1
  634. for I = 1, 5 do
  635. if (PreferredHand == 1) then
  636. BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  637. else
  638. BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  639. end
  640. Num = Num + 0.1
  641. wait(0.01)
  642. end
  643. else
  644. BladeOut = false
  645.  
  646. if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then
  647. if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then
  648. Num = 1.4
  649. for I = 1, 5 do
  650. if (PreferredHand == 1) then
  651. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  652. else
  653. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  654. end
  655. Num = Num - 0.1
  656. wait(0.01)
  657. end
  658. end
  659. Person.Character.Suit.Blade.Blade:remove()
  660. end
  661.  
  662.  
  663. end
  664. end
  665. end
  666. end
  667. if (Tool == 3) then
  668. if (key == "f") then
  669. if (Debounce == false) then
  670. if (Hold == true) then
  671. if (Person.PlayerGui:findFirstChild("Indicator") ~= nil) then
  672. if (Person.PlayerGui.Indicator.Adornee ~= nil) then
  673. Player = Person.PlayerGui.Indicator.Adornee.Parent
  674. if (Mode == 1) then
  675. Orb = Instance.new("Part")
  676. Orb.Parent = Person.Character
  677. Orb.Name = "Orb"
  678. Orb.CanCollide = false
  679. Orb.BrickColor = BrickColor.new("Black")
  680. Orb.Transparency = 0.5
  681. Orb.TopSurface = 0
  682. Orb.BottomSurface = 0
  683. Orb.formFactor = "Symmetric"
  684. Orb.Size = Vector3.new(1, 1, 1)
  685. Mesh = Instance.new("SpecialMesh")
  686. Mesh.Parent = Orb
  687. Mesh.MeshType = "Sphere"
  688. Mesh.Scale = Vector3.new(1, 1, 1)
  689. Orb:BreakJoints()
  690. Weld = Instance.new("Weld")
  691. Weld.Parent = Orb
  692. Weld.Part0 = Person.Character.Wand
  693. Weld.Part1 = Orb
  694. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  695. Player:BreakJoints()
  696. Del(Orb)
  697. end
  698. if (Mode == 2) then
  699. if (game.Players:GetPlayerFromCharacter(Player) ~= nil) then
  700. Orb = Instance.new("Part")
  701. Orb.Parent = Person.Character
  702. Orb.Name = "Orb"
  703. Orb.CanCollide = false
  704. Orb.BrickColor = BrickColor.new("Bright violet")
  705. Orb.Transparency = 0.5
  706. Orb.TopSurface = 0
  707. Orb.BottomSurface = 0
  708. Orb.formFactor = "Symmetric"
  709. Orb.Size = Vector3.new(1, 1, 1)
  710. Mesh = Instance.new("SpecialMesh")
  711. Mesh.Parent = Orb
  712. Mesh.MeshType = "Sphere"
  713. Mesh.Scale = Vector3.new(1, 1, 1)
  714. Orb:BreakJoints()
  715. Weld = Instance.new("Weld")
  716. Weld.Parent = Orb
  717. Weld.Part0 = Person.Character.Wand
  718. Weld.Part1 = Orb
  719. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  720. game.Players:GetPlayerFromCharacter(Player):remove()
  721. Del(Orb)
  722. end
  723. end
  724. if (Mode == 3) then
  725. Orb = Instance.new("Part")
  726. Orb.Parent = Person.Character
  727. Orb.Name = "Orb"
  728. Orb.CanCollide = false
  729. Orb.BrickColor = BrickColor.new("Teal")
  730. Orb.Transparency = 0.5
  731. Orb.TopSurface = 0
  732. Orb.BottomSurface = 0
  733. Orb.formFactor = "Symmetric"
  734. Orb.Size = Vector3.new(1, 1, 1)
  735. Mesh = Instance.new("SpecialMesh")
  736. Mesh.Parent = Orb
  737. Mesh.MeshType = "Sphere"
  738. Mesh.Scale = Vector3.new(1, 1, 1)
  739. Orb:BreakJoints()
  740. Weld = Instance.new("Weld")
  741. Weld.Parent = Orb
  742. Weld.Part0 = Person.Character.Wand
  743. Weld.Part1 = Orb
  744. Weld.C0 = CFrame.new(0, 0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  745. Player.Humanoid.PlatformStand = not Player.Humanoid.PlatformStand
  746. Del(Orb)
  747. end
  748.  
  749.  
  750. else
  751.  
  752. end
  753. if (Mode == 4) then
  754. Orb = Instance.new("Part")
  755. Orb.Parent = Person.Character
  756. Orb.Name = "Orb"
  757. Orb.CanCollide = false
  758. Orb.BrickColor = BrickColor.new("Bright orange")
  759. Orb.Transparency = 0.5
  760. Orb.TopSurface = 0
  761. Orb.BottomSurface = 0
  762. Orb.formFactor = "Symmetric"
  763. Orb.Size = Vector3.new(-1, -1, -1)
  764. Mesh = Instance.new("SpecialMesh")
  765. Mesh.Parent = Orb
  766. Mesh.MeshType = "Sphere"
  767. Mesh.Scale = Vector3.new(1, 1, 1)
  768. Orb:BreakJoints()
  769. Weld = Instance.new("Weld")
  770. Weld.Parent = Orb
  771. Weld.Part0 = Person.Character.Wand
  772. Weld.Part1 = Orb
  773. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  774. Ex = Instance.new("Explosion")
  775. Ex.Parent = game.Workspace
  776. Ex.BlastRadius = 5
  777. Ex.Position = mouse.Hit.p
  778. Ex.BlastPressure = 1000
  779. Del(Orb)
  780. end
  781.  
  782. end
  783. end
  784. end
  785. end
  786.  
  787. end
  788.  
  789.  
  790. if (key == "e") then
  791. Mode = Mode + 1
  792. Table = ModeList[Tool]
  793. if (Mode > #Table) then
  794. Mode = 1
  795. end
  796. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  797. end
  798. if (key == "q") then
  799. Mode = Mode - 1
  800. Table = ModeList[Tool]
  801. if (Mode < 1) then
  802. Mode = #Table
  803. end
  804. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  805. end
  806. if (key == "v") then
  807. if (Debounce == false) then
  808. Tool = Tool + 1
  809. if (Tool > #Tools) then
  810. Tool = 1
  811. end
  812. Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool]
  813. Mode = 1
  814. Table = ModeList[Tool]
  815. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  816. ChangeWeapon(Tool, Tool - 1)
  817. end
  818. end
  819. if (key == "c") then
  820. if (Debounce == false) then
  821. Tool = Tool - 1
  822. if (Tool < 1) then
  823. Tool = #Tools
  824. end
  825. Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool]
  826. Mode = 1
  827. Table = ModeList[Tool]
  828. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  829. ChangeWeapon(Tool, Tool + 1)
  830. end
  831. end
  832. if (key == "p") then
  833. Person.Character:BreakJoints()
  834. end
  835. if (key == "0") then
  836. Person.Character.Humanoid.WalkSpeed = 50
  837. end
  838. end
  839.  
  840. function UpKey(key, mouse)
  841. if (key == "0") then
  842. Person.Character.Humanoid.WalkSpeed = 16
  843. end
  844. end
  845. ---------------------------------------------------------------------------------------------------------------------------------------------Select
  846. function Select(mouse)
  847. mouse.Button1Down:connect(function() Click(mouse) end)
  848. mouse.Button1Up:connect(function() Release(mouse) end)
  849. mouse.KeyDown:connect(function(key) PressKey(key, mouse) end)
  850. mouse.KeyUp:connect(function(key) UpKey(key, mouse) end)
  851. end
  852.  
  853. function Deselect(mouse)
  854. Hold = false
  855. end
  856.  
  857. Bin.Selected:connect(Select)
  858. Bin.Deselected:connect(Deselect)
  859. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement