Facebook
From Buff Owl, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 394
  1.  
  2. Person = game.Players.modno
  3. if (script.Parent.className ~= "HopperBin") then
  4. Tool = Instance.new("HopperBin")
  5. Tool.Parent = Person.Backpack
  6. Tool.Name = "Tool"
  7. script.Parent = Tool
  8. G = Instance.new("GuiMain")
  9. G.Parent = Person.PlayerGui
  10. G.Name = "MahGoey"
  11. F = Instance.new("Frame")
  12. F.Parent = G
  13. T = Instance.new("TextLabel")
  14. T.Parent = F
  15. T.Name = "Tool"
  16. T.Text = "Blade"
  17. T.Size = UDim2.new(0, 100, 0, 40)
  18. T.Position = UDim2.new(0, 0, 0, 150)
  19. T.BorderSizePixel = 0
  20. T.BackgroundColor3 = Color3.new(0, 0, 0)
  21. T.TextColor3 = Color3.new(1, 1, 1)
  22. T.BackgroundTransparency = 0.3
  23. M = Instance.new("TextLabel")
  24. M.Parent = F
  25. M.Name = "Mode"
  26. M.Text = "Standard"
  27. M.Size = UDim2.new(0, 100, 0, 40)
  28. M.Position = UDim2.new(0, 0, 0, 190)
  29. M.BorderSizePixel = 0
  30. M.BackgroundColor3 = Color3.new(0, 0, 0)
  31. M.TextColor3 = Color3.new(1, 1, 1)
  32. M.BackgroundTransparency = 0.3
  33. end
  34. ---------------------------------------------------------------------------------------------------------------------------------------------Variables
  35. Bin = script.Parent
  36. Grabbed = nil
  37. Debounce = false
  38. BladeOut = false
  39. Hold = false
  40. Suit = true
  41. Limbs = {Person.Character["Right Arm"], Person.Character["Left Arm"], Person.Character["Right Leg"], Person.Character["Left Leg"]}
  42. Joints = {Person.Character.Torso["Right Shoulder"], Person.Character.Torso["Left Shoulder"], Person.Character.Torso["Right Hip"], Person.Character.Torso["Left Hip"]}
  43. NewJoints = {nil, nil, nil, nil}
  44. ModeList = {{"Standard", "Breaker"}, {"Main"}, {"Death", "Ban", "Sleep", "Explosion"}}
  45. Tools = {"Blade", "Bomb", "Wand"}
  46. List = {}
  47. Mode = 1
  48. Tool = 1
  49. PreferredHand = 1
  50. PreferredFoot = 3
  51. UnPreferredHand = 0
  52. UnPreferredFoot = 0
  53. if (PreferredHand == 1) then
  54. UnPreferredHand = 2
  55. else
  56. UnPreferredHand = 1
  57. end
  58. if (PreferredFoot == 3) then
  59. UnPreferredFoot = 4
  60. else
  61. UnPreferredFoot = 3
  62. end
  63. ---------------------------------------------------------------------------------------------------------------------------------------------Suit
  64. if (Person.Character:findFirstChild("Suit") ~= nil) then
  65. Person.Character.Suit:remove()
  66. end
  67. Suit = Instance.new("Model")
  68. Suit.Parent = Person.Character
  69. Suit.Name = "Suit"
  70. if (Person.Character:findFirstChild("Body Colors") ~= nil) then
  71. Person.Character["Body Colors"]:remove()
  72. end
  73. if (Person.Character.Torso:findFirstChild("roblox") ~= nil) then
  74. Person.Character.Torso.roblox:remove()
  75. end
  76. Person.Character.Torso.BrickColor = BrickColor.new("Really black")
  77. Limbs[4].BrickColor = Person.Character.Head.BrickColor
  78. Limbs[3].BrickColor = Person.Character.Head.BrickColor
  79. Limbs[2].BottomSurface = 0
  80. Limbs[1].BottomSurface = 0
  81.  
  82. TunicA = Instance.new("Part")
  83. TunicA.Parent = Suit
  84. TunicA.Name = "TunicA"
  85. TunicA.CanCollide = false
  86. TunicA.BrickColor = BrickColor.new("White")
  87. TunicA.TopSurface = 0
  88. TunicA.BottomSurface = 0
  89. TunicA.formFactor = "Symmetric"
  90. TunicA.Size = Vector3.new(1, 1, 1)
  91. Mesh = Instance.new("BlockMesh")
  92. Mesh.Parent = TunicA
  93. Mesh.Scale = Vector3.new(2.02, 0.5, 1.02)
  94. TunicA:BreakJoints()
  95. Weld = Instance.new("Weld")
  96. Weld.Parent = TunicA
  97. Weld.Part0 = Person.Character.Torso
  98. Weld.Part1 = TunicA
  99. Weld.C0 = CFrame.new(0, -1.25, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  100. TunicB = Instance.new("Part")
  101. TunicB.Parent = Suit
  102. TunicB.Name = "TunicB"
  103. TunicB.CanCollide = false
  104. TunicB.BrickColor = BrickColor.new("White")
  105. TunicB.TopSurface = 0
  106. TunicB.BottomSurface = 0
  107. TunicB.formFactor = "Symmetric"
  108. TunicB.Size = Vector3.new(1, 1, 1)
  109. Mesh = Instance.new("BlockMesh")
  110. Mesh.Parent = TunicB
  111. Mesh.Scale = Vector3.new(1.02, 0.5, 1.02)
  112. TunicB:BreakJoints()
  113. Weld = Instance.new("Weld")
  114. Weld.Parent = TunicB
  115. Weld.Part0 = Limbs[4]
  116. Weld.Part1 = TunicB
  117. Weld.C0 = CFrame.new(0, 0.75, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  118. TunicC = Instance.new("Part")
  119. TunicC.Parent = Suit
  120. TunicC.Name = "TunicC"
  121. TunicC.CanCollide = false
  122. TunicC.BrickColor = BrickColor.new("White")
  123. TunicC.TopSurface = 0
  124. TunicC.BottomSurface = 0
  125. TunicC.formFactor = "Symmetric"
  126. TunicC.Size = Vector3.new(1, 1, 1)
  127. Mesh = Instance.new("BlockMesh")
  128. Mesh.Parent = TunicC
  129. Mesh.Scale = Vector3.new(1.02, 0.5, 1.02)
  130. TunicC:BreakJoints()
  131. Weld = Instance.new("Weld")
  132. Weld.Parent = TunicC
  133. Weld.Part0 = Limbs[3]
  134. Weld.Part1 = TunicC
  135. Weld.C0 = CFrame.new(0, 0.75, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  136. TunicD = Instance.new("Part")
  137. TunicD.Parent = Suit
  138. TunicD.Name = "TunicD"
  139. TunicD.CanCollide = false
  140. TunicD.BrickColor = BrickColor.new("White")
  141. TunicD.TopSurface = 0
  142. TunicD.BottomSurface = 0
  143. TunicD.formFactor = "Symmetric"
  144. TunicD.Size = Vector3.new(1, 1, 1)
  145. Mesh = Instance.new("BlockMesh")
  146. Mesh.Parent = TunicD
  147. Mesh.Scale = Vector3.new(2.02, 1.01, 1.02)
  148. TunicD:BreakJoints()
  149. Weld = Instance.new("Weld")
  150. Weld.Parent = TunicD
  151. Weld.Part0 = Person.Character.Torso
  152. Weld.Part1 = TunicD
  153. Weld.C0 = CFrame.new(0, -0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  154. TunicE = Instance.new("Part")
  155. TunicE.Parent = Suit
  156. TunicE.Name = "TunicE"
  157. TunicE.CanCollide = false
  158. TunicE.BrickColor = BrickColor.new("White")
  159. TunicE.TopSurface = 0
  160. TunicE.BottomSurface = 0
  161. TunicE.formFactor = "Symmetric"
  162. TunicE.Size = Vector3.new(1, 1, 1)
  163. Mesh = Instance.new("SpecialMesh")
  164. Mesh.Parent = TunicE
  165. Mesh.MeshType = "Wedge"
  166. Mesh.Scale = Vector3.new(1.02, 1.01, 0.5)
  167. TunicE:BreakJoints()
  168. Weld = Instance.new("Weld")
  169. Weld.Parent = TunicE
  170. Weld.Part0 = Person.Character.Torso
  171. Weld.Part1 = TunicE
  172. Weld.C0 = CFrame.new(0.25, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0)
  173. TunicF = Instance.new("Part")
  174. TunicF.Parent = Suit
  175. TunicF.Name = "TunicF"
  176. TunicF.CanCollide = false
  177. TunicF.BrickColor = BrickColor.new("White")
  178. TunicF.TopSurface = 0
  179. TunicF.BottomSurface = 0
  180. TunicF.formFactor = "Symmetric"
  181. TunicF.Size = Vector3.new(1, 1, 1)
  182. Mesh = Instance.new("SpecialMesh")
  183. Mesh.Parent = TunicF
  184. Mesh.MeshType = "Wedge"
  185. Mesh.Scale = Vector3.new(1.02, 1.01, 0.5)
  186. TunicF:BreakJoints()
  187. Weld = Instance.new("Weld")
  188. Weld.Parent = TunicF
  189. Weld.Part0 = Person.Character.Torso
  190. Weld.Part1 = TunicF
  191. Weld.C0 = CFrame.new(-0.25, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0)
  192. TunicG = Instance.new("Part")
  193. TunicG.Parent = Suit
  194. TunicG.Name = "TunicG"
  195. TunicG.CanCollide = false
  196. TunicG.BrickColor = BrickColor.new("White")
  197. TunicG.TopSurface = 0
  198. TunicG.BottomSurface = 0
  199. TunicG.formFactor = "Symmetric"
  200. TunicG.Size = Vector3.new(1, 1, 1)
  201. Mesh = Instance.new("BlockMesh")
  202. Mesh.Parent = TunicG
  203. Mesh.Scale = Vector3.new(0.51, 1.01, 1.02)
  204. TunicG:BreakJoints()
  205. Weld = Instance.new("Weld")
  206. Weld.Parent = TunicG
  207. Weld.Part0 = Person.Character.Torso
  208. Weld.Part1 = TunicG
  209. Weld.C0 = CFrame.new(0.751, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  210. TunicH = Instance.new("Part")
  211. TunicH.Parent = Suit
  212. TunicH.Name = "TunicH"
  213. TunicH.CanCollide = false
  214. TunicH.BrickColor = BrickColor.new("White")
  215. TunicH.TopSurface = 0
  216. TunicH.BottomSurface = 0
  217. TunicH.formFactor = "Symmetric"
  218. TunicH.Size = Vector3.new(1, 1, 1)
  219. Mesh = Instance.new("BlockMesh")
  220. Mesh.Parent = TunicH
  221. Mesh.Scale = Vector3.new(0.51, 1.01, 1.02)
  222. TunicH:BreakJoints()
  223. Weld = Instance.new("Weld")
  224. Weld.Parent = TunicH
  225. Weld.Part0 = Person.Character.Torso
  226. Weld.Part1 = TunicH
  227. Weld.C0 = CFrame.new(-0.751, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  228. TunicI = Instance.new("Part")
  229. TunicI.Parent = Suit
  230. TunicI.Name = "TunicI"
  231. TunicI.CanCollide = false
  232. TunicI.BrickColor = BrickColor.new("White")
  233. TunicI.TopSurface = 0
  234. TunicI.BottomSurface = 0
  235. TunicI.formFactor = "Symmetric"
  236. TunicI.Size = Vector3.new(1, 1, 1)
  237. Mesh = Instance.new("SpecialMesh")
  238. Mesh.Parent = TunicI
  239. Mesh.MeshType = "Wedge"
  240. Mesh.Scale = Vector3.new(1.02, 1.01, 0.51)
  241. TunicI:BreakJoints()
  242. Weld = Instance.new("Weld")
  243. Weld.Parent = TunicI
  244. Weld.Part0 = Limbs[2]
  245. Weld.Part1 = TunicI
  246. Weld.C0 = CFrame.new(0.251, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi)
  247. TunicJ = Instance.new("Part")
  248. TunicJ.Parent = Suit
  249. TunicJ.Name = "TunicJ"
  250. TunicJ.CanCollide = false
  251. TunicJ.BrickColor = BrickColor.new("White")
  252. TunicJ.TopSurface = 0
  253. TunicJ.BottomSurface = 0
  254. TunicJ.formFactor = "Symmetric"
  255. TunicJ.Size = Vector3.new(1, 1, 1)
  256. Mesh = Instance.new("SpecialMesh")
  257. Mesh.Parent = TunicJ
  258. Mesh.MeshType = "Wedge"
  259. Mesh.Scale = Vector3.new(1.02, 1.01, 0.51)
  260. TunicJ:BreakJoints()
  261. Weld = Instance.new("Weld")
  262. Weld.Parent = TunicJ
  263. Weld.Part0 = Limbs[1]
  264. Weld.Part1 = TunicJ
  265. Weld.C0 = CFrame.new(-0.251, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, math.pi)
  266. TunicK = Instance.new("Part")
  267. TunicK.Parent = Suit
  268. TunicK.Name = "TunicK"
  269. TunicK.CanCollide = false
  270. TunicK.BrickColor = BrickColor.new("Really black")
  271. TunicK.TopSurface = 0
  272. TunicK.BottomSurface = 0
  273. TunicK.formFactor = "Symmetric"
  274. TunicK.Size = Vector3.new(1, 1, 1)
  275. Mesh = Instance.new("BlockMesh")
  276. Mesh.Parent = TunicK
  277. Mesh.Scale = Vector3.new(1.01, 1.505, 1.01)
  278. TunicK:BreakJoints()
  279. Weld = Instance.new("Weld")
  280. Weld.Parent = TunicK
  281. Weld.Part0 = Limbs[2]
  282. Weld.Part1 = TunicK
  283. Weld.C0 = CFrame.new(0, 0.2505, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  284. TunicL = Instance.new("Part")
  285. TunicL.Parent = Suit
  286. TunicL.Name = "TunicL"
  287. TunicL.CanCollide = false
  288. TunicL.BrickColor = BrickColor.new("Really black")
  289. TunicL.TopSurface = 0
  290. TunicL.BottomSurface = 0
  291. TunicL.formFactor = "Symmetric"
  292. TunicL.Size = Vector3.new(1, 1, 1)
  293. Mesh = Instance.new("BlockMesh")
  294. Mesh.Parent = TunicL
  295. Mesh.Scale = Vector3.new(1.01, 1.505, 1.01)
  296. TunicL:BreakJoints()
  297. Weld = Instance.new("Weld")
  298. Weld.Parent = TunicL
  299. Weld.Part0 = Limbs[1]
  300. Weld.Part1 = TunicL
  301. Weld.C0 = CFrame.new(0, 0.2505, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  302. TunicM = Instance.new("Part")
  303. TunicM.Parent = Suit
  304. TunicM.Name = "TunicM"
  305. TunicM.CanCollide = false
  306. TunicM.BrickColor = BrickColor.new("White")
  307. TunicM.TopSurface = 0
  308. TunicM.BottomSurface = 0
  309. TunicM.formFactor = "Symmetric"
  310. TunicM.Size = Vector3.new(1, 1, 1)
  311. Mesh = Instance.new("BlockMesh")
  312. Mesh.Parent = TunicM
  313. Mesh.Scale = Vector3.new(2.02, 1.01, 0.51)
  314. TunicM:BreakJoints()
  315. Weld = Instance.new("Weld")
  316. Weld.Parent = TunicM
  317. Weld.Part0 = Person.Character.Torso
  318. Weld.Part1 = TunicM
  319. Weld.C0 = CFrame.new(0, 0.501, 0.251) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  320.  
  321. Belt = Instance.new("Part")
  322. Belt.Parent = Suit
  323. Belt.Name = "Belt"
  324. Belt.CanCollide = false
  325. Belt.BrickColor = BrickColor.new("Really black")
  326. Belt.TopSurface = 0
  327. Belt.BottomSurface = 0
  328. Belt.formFactor = "Symmetric"
  329. Belt.Size = Vector3.new(1, 1, 1)
  330. Mesh = Instance.new("BlockMesh")
  331. Mesh.Parent = Belt
  332. Mesh.Scale = Vector3.new(2.04, 0.2, 1.04)
  333. Belt:BreakJoints()
  334. Weld = Instance.new("Weld")
  335. Weld.Parent = Belt
  336. Weld.Part0 = Person.Character.Torso
  337. Weld.Part1 = Belt
  338. Weld.C0 = CFrame.new(0, -0.9, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  339. ---------------------------------------------------------------------------------------------------------------------------------------------Blade
  340. Blade = Instance.new("Model")
  341. Blade.Parent = Suit
  342. Blade.Name = "Blade"
  343. BandA = Instance.new("Part")
  344. BandA.Parent = Blade
  345. BandA.Name = "BandA"
  346. BandA.CanCollide = false
  347. BandA.BrickColor = BrickColor.new("White")
  348. BandA.TopSurface = 0
  349. BandA.BottomSurface = 0
  350. BandA.formFactor = "Symmetric"
  351. BandA.Size = Vector3.new(1, 1, 1)
  352. MeshA = Instance.new("BlockMesh")
  353. MeshA.Parent = BandA
  354. MeshA.Scale = Vector3.new(1.02, 0.1, 1.02)
  355. BandA:BreakJoints()
  356. Weld = Instance.new("Weld")
  357. Weld.Parent = BandA
  358. Weld.Part0 = Limbs[PreferredHand]
  359. Weld.Part1 = BandA
  360. Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  361. BandB = Instance.new("Part")
  362. BandB.Parent = Blade
  363. BandB.Name = "BandB"
  364. BandB.CanCollide = false
  365. BandB.BrickColor = BrickColor.new("White")
  366. BandB.TopSurface = 0
  367. BandB.BottomSurface = 0
  368. BandB.formFactor = "Symmetric"
  369. BandB.Size = Vector3.new(1, 1, 1)
  370. MeshB = Instance.new("BlockMesh")
  371. MeshB.Parent = BandB
  372. MeshB.Scale = Vector3.new(1.02, 0.1, 1.02)
  373. BandB:BreakJoints()
  374. Weld = Instance.new("Weld")
  375. Weld.Parent = BandB
  376. Weld.Part0 = Limbs[PreferredHand]
  377. Weld.Part1 = BandB
  378. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  379. SlotA = Instance.new("Part")
  380. SlotA.Parent = Blade
  381. SlotA.Name = "SlotA"
  382. SlotA.CanCollide = false
  383. SlotA.BrickColor = BrickColor.new("White")
  384. SlotA.TopSurface = 0
  385. SlotA.BottomSurface = 0
  386. SlotA.formFactor = "Symmetric"
  387. SlotA.Size = Vector3.new(1, 1, 1)
  388. MeshA = Instance.new("BlockMesh")
  389. MeshA.Parent = SlotA
  390. MeshA.Scale = Vector3.new(0.1, 1, 0.3)
  391. SlotA:BreakJoints()
  392. Weld = Instance.new("Weld")
  393. Weld.Parent = SlotA
  394. Weld.Part0 = Limbs[PreferredHand]
  395. Weld.Part1 = SlotA
  396. if (PreferredHand == 1) then
  397. Weld.C0 = CFrame.new(0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  398. else
  399. Weld.C0 = CFrame.new(-0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  400. end
  401. ---------------------------------------------------------------------------------------------------------------------------------------------Wand
  402.  
  403.  
  404. ---------------------------------------------------------------------------------------------------------------------------------------------Functions
  405. function DisableLimb(Limb)
  406. NJoint = Instance.new("Motor")
  407. NJoint.Parent = Person.Character.Torso
  408. NJoint.Name = Joints[Limb].Name
  409. NJoint.Part0 = Joints[Limb].Part0
  410. NJoint.Part1 = Joints[Limb].Part1
  411. NJoint.MaxVelocity = Joints[Limb].MaxVelocity
  412. NJoint.C0 = Joints[Limb].C0
  413. NJoint.C1 = Joints[Limb].C1
  414. Joints[Limb].Parent = nil
  415. NewJoints[Limb] = NJoint
  416. end
  417. function EnableLimb(Limb)
  418. Joints[Limb].Parent = Person.Character.Torso
  419. NewJoints[Limb]:remove()
  420. NewJoints[Limb] = nil
  421. end
  422.  
  423.  
  424. function Check(Table, Value)
  425. Results = false
  426. for W, V in pairs(Table) do
  427. if (V == Value) then
  428. Results = true
  429. end
  430. end
  431. return Results
  432. end
  433.  
  434. function WeldOn(X, Y)
  435. Weld = Instance.new("Weld")
  436. Weld.Part0 = X
  437. Weld.Part1 = Y
  438.  
  439. HitPos = X.Position
  440. CJ = CFrame.new(HitPos)
  441. C0 = X.CFrame:inverse() *CJ
  442. C1 = Y.CFrame:inverse() * CJ
  443. Weld.C0 = C0
  444. Weld.C1 = C1
  445. Weld.Parent = X
  446. end
  447. function TimeDelete(Object, Time)
  448. wait(Time)
  449. Object:remove()
  450. end
  451. function Touch(Hit, Missile)
  452. if (Hit ~= nil) then
  453. if (Hit.Parent ~= nil) then
  454. if (Check(List, Missile) == false) then
  455. Bool = Person.Character:IsAncestorOf(Hit)
  456. if (Bool == false) then
  457. if (Mode == 2) then
  458. Hit:BreakJoints()
  459. end
  460. if (Missile:findFirstChild("ArmWeld") == nil) then
  461. WeldOn(Missile, Hit)
  462. end
  463. if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then
  464. if (Hit.Parent.Humanoid.Health > 0) then
  465. if (Mode == 1) then
  466. Hit.Parent:BreakJoints()
  467. end
  468. end
  469. end
  470. end
  471. end
  472. end
  473. end
  474. end
  475. function ChangeWeapon(Weapon, PrevWeapon)
  476. Hold = false
  477. if (PrevWeapon == 1) then
  478. if (BladeOut == true) then
  479. BladeOut = false
  480. if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then
  481. if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then
  482. Num = 1.4
  483. for I = 1, 5 do
  484. if (PreferredHand == 1) then
  485. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  486. else
  487. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  488. end
  489. Num = Num - 0.1
  490. wait(0.01)
  491. end
  492. end
  493. Person.Character.Suit.Blade.Blade:remove()
  494. end
  495. end
  496. end
  497. if (PrevWeapon == 3) then
  498. Person.Character.Wand:remove()
  499. end
  500.  
  501. if (Weapon == 3) then
  502. WandA = Instance.new("Part")
  503. WandA.Parent = Person.Character
  504. WandA.Name = "Wand"
  505. WandA.CanCollide = false
  506. WandA.Transparency = 1
  507. WandA.BrickColor = BrickColor.new("Brown")
  508. WandA.TopSurface = 0
  509. WandA.BottomSurface = 0
  510. WandA.formFactor = "Symmetric"
  511. WandA.Size = Vector3.new(1, 1, 1)
  512. Mesh = Instance.new("CylinderMesh")
  513. Mesh.Parent = WandA
  514. Mesh.Scale = Vector3.new(0.1, 1.2, 0.1)
  515. Weld = Instance.new("Weld")
  516. Weld.Parent = WandA
  517. Weld.Part0 = Limbs[PreferredHand]
  518. Weld.Part1 = WandA
  519. if (PreferredHand == 1) then
  520. Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0, 0)
  521. else
  522. Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi + (math.pi/4), 0, 0)
  523. end
  524. end
  525.  
  526.  
  527.  
  528.  
  529. end
  530.  
  531.  
  532.  
  533. function GrabFunction(Part)
  534. Grabbed = Part.Parent
  535. PlatformStand = Part.Parent.Humanoid.PlatformStand
  536. Part.Parent.Humanoid.PlatformStand = true
  537. Part.Parent.Torso.DraggingV1 = true
  538. Val = math.pi/2
  539. if (PreferredHand == 2) then
  540. Val = -math.pi/2
  541. end
  542. Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, -math.pi/2)
  543. while true do
  544. if (Hold == false) then
  545. break
  546. end
  547. if (Part.Parent.Parent == nil) then
  548. break
  549. end
  550. if (Part.Parent:findFirstChild("Torso") == nil) then
  551. break
  552. end
  553. if (Part.Parent:findFirstChild("Humanoid") == nil) then
  554. break
  555. end
  556. if (Part.Parent.Humanoid.Health < 0.001) then
  557. break
  558. end
  559. Part.Parent.Humanoid.PlatformStand = true
  560. Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, math.pi/2)
  561. wait(0.0)
  562. end
  563. if (Part.Parent:findFirstChild("Humanoid") ~= nil) then
  564. Part.Parent.Humanoid.PlatformStand = PlatformStand
  565. end
  566. if (Part.Parent:findFirstChild("Torso") ~= nil) then
  567. Part.Parent.Torso.DraggingV1 = false
  568. end
  569. Debounce = false
  570. Grabbed = nil
  571. end
  572.  
  573. function Grab(Hit)
  574. if (Grabbed == nil) then
  575. if (Hit ~= nil) then
  576. if (Hit.Parent ~= nil) then
  577. if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then
  578. if (Hit.Parent.Humanoid.Health > 0) then
  579. if (Hit.Parent:findFirstChild("Torso") ~= nil) then
  580. GrabFunction(Hit)
  581. end
  582. end
  583. end
  584. end
  585. end
  586. end
  587. end
  588. function Del(Object)
  589. for I = 1, 10 do
  590. wait(0.001)
  591. Object.Mesh.Scale = Vector3.new(Object.Mesh.Scale.x - 0.1, Object.Mesh.Scale.y - 0.1, Object.Mesh.Scale.z - 0.1)
  592. end
  593. Object:remove()
  594. end
  595.  
  596.  
  597. ---------------------------------------------------------------------------------------------------------------------------------------------Click
  598. function Click(mouse)
  599. Hold = true
  600. if (Tool == 1) then
  601. DisableLimb(PreferredHand)
  602. Val = -math.pi/2
  603. if (PreferredHand == 2) then
  604. Val = math.pi/2
  605. end
  606. while true do
  607. if (Hold == false) then
  608. break
  609. end
  610. Place0 = Person.Character.Torso.CFrame
  611. Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector
  612. Place1 = Place0 + ((Place0.p - mouse.Hit.p).unit * - 2)
  613. Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-(math.pi/2), Val, 0)
  614. HitPos = Person.Character.Torso.Position
  615. CJ = CFrame.new(HitPos)
  616. C0 = Person.Character.Torso.CFrame:inverse() *CJ
  617. C1 = Place2:inverse() * CJ
  618. NewJoints[PreferredHand].C0 = C0
  619. NewJoints[PreferredHand].C1 = C1
  620. wait(0.0)
  621. end
  622. EnableLimb(PreferredHand)
  623. end
  624.  
  625.  
  626. if (Tool == 3) then
  627. B = Instance.new("BillboardGui")
  628. B.Parent = Person.PlayerGui
  629. B.Name = "Indicator"
  630. B.Adornee = nil
  631. B.Size = UDim2.new(0, 1, 0, 1)
  632. T = Instance.new("ImageLabel")
  633. T.Image = "http://www.roblox.com/asset/?id=24838770"
  634. T.BackgroundTransparency = 1
  635. T.Parent = B
  636. T.Size = UDim2.new(0, 200, 0, 200)
  637. T.Position = UDim2.new(0, -100, 0 , -100)
  638. DisableLimb(PreferredHand)
  639. Val = -math.pi/2
  640. if (PreferredHand == 2) then
  641. Val = math.pi/2
  642. end
  643. while true do
  644. if (Hold == false) then
  645. break
  646. end
  647. if (mouse.Target == nil) then
  648. B.Adornee = nil
  649. else
  650. if (mouse.Target.Parent == nil) then
  651. B.Adornee = nil
  652. else
  653. if (mouse.Target.Parent:findFirstChild("Humanoid") == nil) then
  654. B.Adornee = nil
  655. else
  656. if (mouse.Target.Parent:findFirstChild("Torso") == nil) then
  657. B.Adornee = nil
  658. else
  659. if (mouse.Target.Parent.Humanoid.Health < 0.01) then
  660. B.Adornee = nil
  661. elseif (mouse.Target.Parent.Humanoid.Health > 0) then
  662. if (mouse.Target.Parent.Torso ~= B.Adornee) then
  663. B.Adornee = mouse.Target.Parent.Torso
  664. end
  665. end
  666. end
  667. end
  668. end
  669. end
  670. Point = mouse.Hit
  671. if (B.Adornee ~= nil) then
  672. Point = B.Adornee.CFrame
  673. end
  674.  
  675. Place0 = Person.Character.Torso.CFrame
  676. Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector
  677. Place1 = Place0 + ((Place0.p - Point.p).unit * - 2)
  678. Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  679. HitPos = Person.Character.Torso.Position
  680. CJ = CFrame.new(HitPos)
  681. C0 = Person.Character.Torso.CFrame:inverse() *CJ
  682. C1 = Place2:inverse() * CJ
  683. NewJoints[PreferredHand].C0 = C0
  684. NewJoints[PreferredHand].C1 = C1
  685. wait(0.0)
  686. end
  687. B:remove()
  688. EnableLimb(PreferredHand)
  689. end
  690.  
  691.  
  692.  
  693. end
  694.  
  695. function Release(mouse)
  696. Hold = false
  697. end
  698. ---------------------------------------------------------------------------------------------------------------------------------------------Key
  699. function PressKey(key, mouse)
  700. if (Tool == 1) then
  701. if (key == "g") then
  702. if (Hold == true) then
  703. if (BladeOut == false) then
  704. if (Debounce == false) then
  705. Debounce = true
  706. Connection = Limbs[PreferredHand].Touched:connect(Grab)
  707. for I = 1, 3000 do
  708. if (Hold == false) then
  709. break
  710. end
  711. if (BladeOut == true) then
  712. break
  713. end
  714. wait(0.001)
  715. end
  716. if (Grabbed == nil) then
  717. Debounce = false
  718. end
  719. Connection:disconnect()
  720. end
  721. end
  722. end
  723. end
  724. if (key == "g") then
  725. if (Hold == true) then
  726. if (BladeOut == true) then
  727. if (Debounce == false) then
  728. Debounce = true
  729. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld:remove()
  730. Person.Character.Suit.Blade.Blade.BladeA.CanCollide = true
  731. BV = Instance.new("BodyVelocity")
  732. BV.Parent = Person.Character.Suit.Blade.Blade.BladeA
  733. BV.maxForce = Vector3.new(1e+010, 1e+010, 1e+010)
  734. BV.velocity = Person.Character.Suit.Blade.Blade.BladeA.CFrame.lookVector * 60
  735. BG = Instance.new("BodyGyro")
  736. BG.Parent = Person.Character.Suit.Blade.Blade.BladeA
  737. BG.maxTorque = Vector3.new(4e+030, 4e+030, 4e+030)
  738. BG.cframe = Person.Character.Suit.Blade.Blade.BladeA.CFrame
  739. coroutine.resume(coroutine.create(TimeDelete), Person.Character.Suit.Blade.Blade, 8)
  740. Person.Character.Suit.Blade.Blade.Parent = game.Workspace
  741. wait(3)
  742. Mod = Instance.new("Model")
  743. Mod.Parent = Blade
  744. Mod.Name = "Blade"
  745. BladeA = Instance.new("Part")
  746. BladeA.Parent = Mod
  747. BladeA.Name = "BladeA"
  748. BladeA.CanCollide = false
  749. BladeA.Transparency = 1
  750. BladeA.TopSurface = 0
  751. BladeA.BottomSurface = 0
  752. BladeA.formFactor = "Symmetric"
  753. BladeA.Size = Vector3.new(1, 1, 1)
  754. BladeA:BreakJoints()
  755. Weld = Instance.new("Weld")
  756. Weld.Parent = BladeA
  757. Weld.Name = "ArmWeld"
  758. Weld.Part0 = Limbs[PreferredHand]
  759. Weld.Part1 = BladeA
  760. if (PreferredHand == 1) then
  761. Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  762. else
  763. Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  764. end
  765. BladeB = Instance.new("Part")
  766. BladeB.Parent = Mod
  767. BladeB.Name = "BladeB"
  768. BladeB.CanCollide = false
  769. BladeB.Reflectance = 0.1
  770. BladeB.BrickColor = BrickColor.new("White")
  771. BladeB.TopSurface = 0
  772. BladeB.BottomSurface = 0
  773. BladeB.formFactor = "Symmetric"
  774. BladeB.Size = Vector3.new(1, 1, 1)
  775. MeshB = Instance.new("SpecialMesh")
  776. MeshB.Parent = BladeB
  777. MeshB.MeshType = "Wedge"
  778. MeshB.Scale = Vector3.new(0.05, 1, 0.1)
  779. BladeB:BreakJoints()
  780. Weld = Instance.new("Weld")
  781. Weld.Parent = BladeB
  782. Weld.Part0 = BladeA
  783. Weld.Part1 = BladeB
  784. Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  785. BladeC = Instance.new("Part")
  786. BladeC.Parent = Mod
  787. BladeC.Name = "BladeC"
  788. BladeC.CanCollide = false
  789. BladeC.Reflectance = 0.1
  790. BladeC.BrickColor = BrickColor.new("White")
  791. BladeC.TopSurface = 0
  792. BladeC.BottomSurface = 0
  793. BladeC.formFactor = "Symmetric"
  794. BladeC.Size = Vector3.new(1, 1, 1)
  795. MeshC = Instance.new("SpecialMesh")
  796. MeshC.Parent = BladeC
  797. MeshC.MeshType = "Wedge"
  798. MeshC.Scale = Vector3.new(0.05, 1, 0.1)
  799. BladeC:BreakJoints()
  800. Weld = Instance.new("Weld")
  801. Weld.Parent = BladeC
  802. Weld.Part0 = BladeA
  803. Weld.Part1 = BladeC
  804. Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  805. BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end)
  806. Num = 1
  807. for I = 1, 5 do
  808. if (PreferredHand == 1) then
  809. BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  810. else
  811. BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  812. end
  813. Num = Num + 0.1
  814. wait(0.01)
  815. end
  816. Debounce = false
  817. end
  818. end
  819. end
  820. end
  821. if (key == "r") then
  822. if (Debounce == false) then
  823. if (BladeOut == false) then
  824. BladeOut = true
  825. Mod = Instance.new("Model")
  826. Mod.Parent = Blade
  827. Mod.Name = "Blade"
  828. BladeA = Instance.new("Part")
  829. BladeA.Parent = Mod
  830. BladeA.Name = "BladeA"
  831. BladeA.CanCollide = false
  832. BladeA.Transparency = 1
  833. BladeA.TopSurface = 0
  834. BladeA.BottomSurface = 0
  835. BladeA.formFactor = "Symmetric"
  836. BladeA.Size = Vector3.new(1, 1, 1)
  837. BladeA:BreakJoints()
  838. Weld = Instance.new("Weld")
  839. Weld.Parent = BladeA
  840. Weld.Name = "ArmWeld"
  841. Weld.Part0 = Limbs[PreferredHand]
  842. Weld.Part1 = BladeA
  843. if (PreferredHand == 1) then
  844. Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  845. else
  846. Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  847. end
  848. BladeB = Instance.new("Part")
  849. BladeB.Parent = Mod
  850. BladeB.Name = "BladeB"
  851. BladeB.CanCollide = false
  852. BladeB.Reflectance = 0.1
  853. BladeB.BrickColor = BrickColor.new("Medium stone grey")
  854. BladeB.TopSurface = 0
  855. BladeB.BottomSurface = 0
  856. BladeB.formFactor = "Symmetric"
  857. BladeB.Size = Vector3.new(1, 1, 1)
  858. MeshB = Instance.new("SpecialMesh")
  859. MeshB.Parent = BladeB
  860. MeshB.MeshType = "Wedge"
  861. MeshB.Scale = Vector3.new(0.05, 1, 0.1)
  862. BladeB:BreakJoints()
  863. Weld = Instance.new("Weld")
  864. Weld.Parent = BladeB
  865. Weld.Part0 = BladeA
  866. Weld.Part1 = BladeB
  867. Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  868. BladeC = Instance.new("Part")
  869. BladeC.Parent = Mod
  870. BladeC.Name = "BladeC"
  871. BladeC.CanCollide = false
  872. BladeC.Reflectance = 0.1
  873. BladeC.BrickColor = BrickColor.new("Medium stone grey")
  874. BladeC.TopSurface = 0
  875. BladeC.BottomSurface = 0
  876. BladeC.formFactor = "Symmetric"
  877. BladeC.Size = Vector3.new(1, 1, 1)
  878. MeshC = Instance.new("SpecialMesh")
  879. MeshC.Parent = BladeC
  880. MeshC.MeshType = "Wedge"
  881. MeshC.Scale = Vector3.new(0.05, 1, 0.1)
  882. BladeC:BreakJoints()
  883. Weld = Instance.new("Weld")
  884. Weld.Parent = BladeC
  885. Weld.Part0 = BladeA
  886. Weld.Part1 = BladeC
  887. Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0)
  888. BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end)
  889. Num = 1
  890. for I = 1, 5 do
  891. if (PreferredHand == 1) then
  892. BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  893. else
  894. BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  895. end
  896. Num = Num + 0.1
  897. wait(0.01)
  898. end
  899. else
  900. BladeOut = false
  901.  
  902. if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then
  903. if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then
  904. Num = 1.4
  905. for I = 1, 5 do
  906. if (PreferredHand == 1) then
  907. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  908. else
  909. Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)
  910. end
  911. Num = Num - 0.1
  912. wait(0.01)
  913. end
  914. end
  915. Person.Character.Suit.Blade.Blade:remove()
  916. end
  917.  
  918.  
  919. end
  920. end
  921. end
  922. end
  923. if (Tool == 3) then
  924. if (key == "f") then
  925. if (Debounce == false) then
  926. if (Hold == true) then
  927. if (Person.PlayerGui:findFirstChild("Indicator") ~= nil) then
  928. if (Person.PlayerGui.Indicator.Adornee ~= nil) then
  929. Player = Person.PlayerGui.Indicator.Adornee.Parent
  930. if (Mode == 1) then
  931. Orb = Instance.new("Part")
  932. Orb.Parent = Person.Character
  933. Orb.Name = "Orb"
  934. Orb.CanCollide = false
  935. Orb.BrickColor = BrickColor.new("Black")
  936. Orb.Transparency = 0.5
  937. Orb.TopSurface = 0
  938. Orb.BottomSurface = 0
  939. Orb.formFactor = "Symmetric"
  940. Orb.Size = Vector3.new(1, 1, 1)
  941. Mesh = Instance.new("SpecialMesh")
  942. Mesh.Parent = Orb
  943. Mesh.MeshType = "Sphere"
  944. Mesh.Scale = Vector3.new(1, 1, 1)
  945. Orb:BreakJoints()
  946. Weld = Instance.new("Weld")
  947. Weld.Parent = Orb
  948. Weld.Part0 = Person.Character.Wand
  949. Weld.Part1 = Orb
  950. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  951. Player:BreakJoints()
  952. Del(Orb)
  953. end
  954. if (Mode == 2) then
  955. if (game.Players:GetPlayerFromCharacter(Player) ~= nil) then
  956. Orb = Instance.new("Part")
  957. Orb.Parent = Person.Character
  958. Orb.Name = "Orb"
  959. Orb.CanCollide = false
  960. Orb.BrickColor = BrickColor.new("Bright violet")
  961. Orb.Transparency = 0.5
  962. Orb.TopSurface = 0
  963. Orb.BottomSurface = 0
  964. Orb.formFactor = "Symmetric"
  965. Orb.Size = Vector3.new(1, 1, 1)
  966. Mesh = Instance.new("SpecialMesh")
  967. Mesh.Parent = Orb
  968. Mesh.MeshType = "Sphere"
  969. Mesh.Scale = Vector3.new(1, 1, 1)
  970. Orb:BreakJoints()
  971. Weld = Instance.new("Weld")
  972. Weld.Parent = Orb
  973. Weld.Part0 = Person.Character.Wand
  974. Weld.Part1 = Orb
  975. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  976. game.Players:GetPlayerFromCharacter(Player):remove()
  977. Del(Orb)
  978. end
  979. end
  980. if (Mode == 3) then
  981. Orb = Instance.new("Part")
  982. Orb.Parent = Person.Character
  983. Orb.Name = "Orb"
  984. Orb.CanCollide = false
  985. Orb.BrickColor = BrickColor.new("Teal")
  986. Orb.Transparency = 0.5
  987. Orb.TopSurface = 0
  988. Orb.BottomSurface = 0
  989. Orb.formFactor = "Symmetric"
  990. Orb.Size = Vector3.new(1, 1, 1)
  991. Mesh = Instance.new("SpecialMesh")
  992. Mesh.Parent = Orb
  993. Mesh.MeshType = "Sphere"
  994. Mesh.Scale = Vector3.new(1, 1, 1)
  995. Orb:BreakJoints()
  996. Weld = Instance.new("Weld")
  997. Weld.Parent = Orb
  998. Weld.Part0 = Person.Character.Wand
  999. Weld.Part1 = Orb
  1000. Weld.C0 = CFrame.new(0, 0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1001. Player.Humanoid.PlatformStand = not Player.Humanoid.PlatformStand
  1002. Del(Orb)
  1003. end
  1004.  
  1005.  
  1006. else
  1007.  
  1008. end
  1009. if (Mode == 4) then
  1010. Orb = Instance.new("Part")
  1011. Orb.Parent = Person.Character
  1012. Orb.Name = "Orb"
  1013. Orb.CanCollide = false
  1014. Orb.BrickColor = BrickColor.new("Bright orange")
  1015. Orb.Transparency = 0.5
  1016. Orb.TopSurface = 0
  1017. Orb.BottomSurface = 0
  1018. Orb.formFactor = "Symmetric"
  1019. Orb.Size = Vector3.new(-1, -1, -1)
  1020. Mesh = Instance.new("SpecialMesh")
  1021. Mesh.Parent = Orb
  1022. Mesh.MeshType = "Sphere"
  1023. Mesh.Scale = Vector3.new(1, 1, 1)
  1024. Orb:BreakJoints()
  1025. Weld = Instance.new("Weld")
  1026. Weld.Parent = Orb
  1027. Weld.Part0 = Person.Character.Wand
  1028. Weld.Part1 = Orb
  1029. Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1030. Ex = Instance.new("Explosion")
  1031. Ex.Parent = game.Workspace
  1032. Ex.BlastRadius = 5
  1033. Ex.Position = mouse.Hit.p
  1034. Ex.BlastPressure = 1000
  1035. Del(Orb)
  1036. end
  1037.  
  1038. end
  1039. end
  1040. end
  1041. end
  1042.  
  1043. end
  1044.  
  1045.  
  1046. if (key == "e") then
  1047. Mode = Mode + 1
  1048. Table = ModeList[Tool]
  1049. if (Mode > #Table) then
  1050. Mode = 1
  1051. end
  1052. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  1053. end
  1054. if (key == "q") then
  1055. Mode = Mode - 1
  1056. Table = ModeList[Tool]
  1057. if (Mode < 1) then
  1058. Mode = #Table
  1059. end
  1060. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  1061. end
  1062. if (key == "v") then
  1063. if (Debounce == false) then
  1064. Tool = Tool + 1
  1065. if (Tool > #Tools) then
  1066. Tool = 1
  1067. end
  1068. Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool]
  1069. Mode = 1
  1070. Table = ModeList[Tool]
  1071. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  1072. ChangeWeapon(Tool, Tool - 1)
  1073. end
  1074. end
  1075. if (key == "c") then
  1076. if (Debounce == false) then
  1077. Tool = Tool - 1
  1078. if (Tool < 1) then
  1079. Tool = #Tools
  1080. end
  1081. Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool]
  1082. Mode = 1
  1083. Table = ModeList[Tool]
  1084. Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode]
  1085. ChangeWeapon(Tool, Tool + 1)
  1086. end
  1087. end
  1088. if (key == "p") then
  1089. Person.Character:BreakJoints()
  1090. end
  1091. if (key == "0") then
  1092. Person.Character.Humanoid.WalkSpeed = 50
  1093. end
  1094. end
  1095.  
  1096. function UpKey(key, mouse)
  1097. if (key == "0") then
  1098. Person.Character.Humanoid.WalkSpeed = 16
  1099. end
  1100. end
  1101. ---------------------------------------------------------------------------------------------------------------------------------------------Select
  1102. function Select(mouse)
  1103. mouse.Button1Down:connect(function() Click(mouse) end)
  1104. mouse.Button1Up:connect(function() Release(mouse) end)
  1105. mouse.KeyDown:connect(function(key) PressKey(key, mouse) end)
  1106. mouse.KeyUp:connect(function(key) UpKey(key, mouse) end)
  1107. end
  1108.  
  1109. function Deselect(mouse)
  1110. Hold = false
  1111. end
  1112.  
  1113. Bin.Selected:connect(Select)
  1114. Bin.Deselected:connect(Deselect)
  1115. --lego
  1116.