Advertisement
haxor999

assasin knife

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