Advertisement
memberhero

Shokew Unit

Jul 15th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.49 KB | None | 0 0
  1.  
  2. --Converted by basstracker1970
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. StringValue0 = Instance.new("StringValue")
  20. NumberValue1 = Instance.new("NumberValue")
  21. NumberValue2 = Instance.new("NumberValue")
  22. ScreenGui3 = Instance.new("ScreenGui")
  23. Frame4 = Instance.new("Frame")
  24. Frame5 = Instance.new("Frame")
  25. TextLabel6 = Instance.new("TextLabel")
  26. Frame7 = Instance.new("Frame")
  27. Frame8 = Instance.new("Frame")
  28. TextLabel9 = Instance.new("TextLabel")
  29. Frame10 = Instance.new("Frame")
  30. Frame11 = Instance.new("Frame")
  31. TextLabel12 = Instance.new("TextLabel")
  32. Frame13 = Instance.new("Frame")
  33. Frame14 = Instance.new("Frame")
  34. TextLabel15 = Instance.new("TextLabel")
  35. Frame16 = Instance.new("Frame")
  36. Frame17 = Instance.new("Frame")
  37. TextLabel18 = Instance.new("TextLabel")
  38. Frame19 = Instance.new("Frame")
  39. Frame20 = Instance.new("Frame")
  40. TextLabel21 = Instance.new("TextLabel")
  41. StringValue0.Name = "Stats"
  42. StringValue0.Parent = mas
  43. StringValue0.Value = "Stats"
  44. NumberValue1.Name = "Energy"
  45. NumberValue1.Parent = StringValue0
  46. NumberValue2.Name = "Mana"
  47. NumberValue2.Parent = StringValue0
  48. ScreenGui3.Name = "WeaponGUI"
  49. ScreenGui3.Parent = mas
  50. Frame4.Name = "Skill3"
  51. Frame4.Parent = ScreenGui3
  52. Frame4.Position = UDim2.new(0.230000004, 0, 0.925000012, 0)
  53. Frame4.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  54. Frame4.BackgroundColor = BrickColor.new("Institutional white")
  55. Frame4.BackgroundColor3 = Color3.new(1, 1, 1)
  56. Frame4.BackgroundTransparency = 0.69999998807907
  57. Frame4.BorderSizePixel = 0
  58. Frame5.Name = "Cover"
  59. Frame5.Parent = Frame4
  60. Frame5.Size = UDim2.new(1.00222218, 0, 1, 0)
  61. Frame5.BackgroundColor = BrickColor.new("Institutional white")
  62. Frame5.BackgroundColor3 = Color3.new(1, 1, 1)
  63. Frame5.BackgroundTransparency = 0.5
  64. Frame5.BorderSizePixel = 0
  65. TextLabel6.Name = "Label"
  66. TextLabel6.Parent = Frame4
  67. TextLabel6.Size = UDim2.new(1, 0, 1, 0)
  68. TextLabel6.BackgroundTransparency = 1
  69. TextLabel6.BorderSizePixel = 0
  70. TextLabel6.Font = Enum.Font.SourceSansBold
  71. TextLabel6.FontSize = Enum.FontSize.Size32
  72. TextLabel6.Text = "[C] Skill3"
  73. TextLabel6.TextColor = BrickColor.new("Institutional white")
  74. TextLabel6.TextColor3 = Color3.new(1, 1, 1)
  75. TextLabel6.TextScaled = true
  76. TextLabel6.TextSize = 32
  77. TextLabel6.TextStrokeTransparency = 0
  78. TextLabel6.TextWrap = true
  79. TextLabel6.TextWrapped = true
  80. Frame7.Name = "Skill4"
  81. Frame7.Parent = ScreenGui3
  82. Frame7.Position = UDim2.new(0.5, 0, 0.925000012, 0)
  83. Frame7.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  84. Frame7.BackgroundColor = BrickColor.new("Institutional white")
  85. Frame7.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Frame7.BackgroundTransparency = 0.69999998807907
  87. Frame7.BorderSizePixel = 0
  88. Frame8.Name = "Cover"
  89. Frame8.Parent = Frame7
  90. Frame8.Size = UDim2.new(1.00222218, 0, 1, 0)
  91. Frame8.BackgroundColor = BrickColor.new("Institutional white")
  92. Frame8.BackgroundColor3 = Color3.new(1, 1, 1)
  93. Frame8.BackgroundTransparency = 0.5
  94. Frame8.BorderSizePixel = 0
  95. TextLabel9.Name = "Label"
  96. TextLabel9.Parent = Frame7
  97. TextLabel9.Size = UDim2.new(1, 0, 1, 0)
  98. TextLabel9.BackgroundTransparency = 1
  99. TextLabel9.BorderSizePixel = 0
  100. TextLabel9.Font = Enum.Font.SourceSansBold
  101. TextLabel9.FontSize = Enum.FontSize.Size32
  102. TextLabel9.Text = "[4] Skill4"
  103. TextLabel9.TextColor = BrickColor.new("Institutional white")
  104. TextLabel9.TextColor3 = Color3.new(1, 1, 1)
  105. TextLabel9.TextScaled = true
  106. TextLabel9.TextSize = 32
  107. TextLabel9.TextStrokeTransparency = 0
  108. TextLabel9.TextWrap = true
  109. TextLabel9.TextWrapped = true
  110. Frame10.Name = "Skill2"
  111. Frame10.Parent = ScreenGui3
  112. Frame10.Position = UDim2.new(0.5, 0, 0.860000014, 0)
  113. Frame10.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  114. Frame10.BackgroundColor = BrickColor.new("Institutional white")
  115. Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
  116. Frame10.BackgroundTransparency = 0.69999998807907
  117. Frame10.BorderSizePixel = 0
  118. Frame11.Name = "Cover"
  119. Frame11.Parent = Frame10
  120. Frame11.Size = UDim2.new(1.00222218, 0, 1, 0)
  121. Frame11.BackgroundColor = BrickColor.new("Institutional white")
  122. Frame11.BackgroundColor3 = Color3.new(1, 1, 1)
  123. Frame11.BackgroundTransparency = 0.5
  124. Frame11.BorderSizePixel = 0
  125. TextLabel12.Name = "Label"
  126. TextLabel12.Parent = Frame10
  127. TextLabel12.Size = UDim2.new(1, 0, 1, 0)
  128. TextLabel12.BackgroundTransparency = 1
  129. TextLabel12.BorderSizePixel = 0
  130. TextLabel12.Font = Enum.Font.SourceSansBold
  131. TextLabel12.FontSize = Enum.FontSize.Size32
  132. TextLabel12.Text = "[X] Skill2"
  133. TextLabel12.TextColor = BrickColor.new("Institutional white")
  134. TextLabel12.TextColor3 = Color3.new(1, 1, 1)
  135. TextLabel12.TextScaled = true
  136. TextLabel12.TextSize = 32
  137. TextLabel12.TextStrokeTransparency = 0
  138. TextLabel12.TextWrap = true
  139. TextLabel12.TextWrapped = true
  140. Frame13.Name = "Skill1"
  141. Frame13.Parent = ScreenGui3
  142. Frame13.Position = UDim2.new(0.230000004, 0, 0.860000014, 0)
  143. Frame13.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  144. Frame13.BackgroundColor = BrickColor.new("Institutional white")
  145. Frame13.BackgroundColor3 = Color3.new(1, 1, 1)
  146. Frame13.BackgroundTransparency = 0.69999998807907
  147. Frame13.BorderSizePixel = 0
  148. Frame14.Name = "Cover"
  149. Frame14.Parent = Frame13
  150. Frame14.Size = UDim2.new(1.00199997, 0, 1, 0)
  151. Frame14.BackgroundColor = BrickColor.new("Institutional white")
  152. Frame14.BackgroundColor3 = Color3.new(1, 1, 1)
  153. Frame14.BackgroundTransparency = 0.5
  154. Frame14.BorderSizePixel = 0
  155. TextLabel15.Name = "Label"
  156. TextLabel15.Parent = Frame13
  157. TextLabel15.Size = UDim2.new(1, 0, 1, 0)
  158. TextLabel15.BackgroundTransparency = 1
  159. TextLabel15.BorderSizePixel = 0
  160. TextLabel15.Font = Enum.Font.SourceSansBold
  161. TextLabel15.FontSize = Enum.FontSize.Size32
  162. TextLabel15.Text = "[Z] Skill1"
  163. TextLabel15.TextColor = BrickColor.new("Institutional white")
  164. TextLabel15.TextColor3 = Color3.new(1, 1, 1)
  165. TextLabel15.TextScaled = true
  166. TextLabel15.TextSize = 32
  167. TextLabel15.TextStrokeTransparency = 0
  168. TextLabel15.TextWrap = true
  169. TextLabel15.TextWrapped = true
  170. Frame16.Name = "Bar1"
  171. Frame16.Parent = ScreenGui3
  172. Frame16.Position = UDim2.new(0.230000004, 0, 0.800000012, 0)
  173. Frame16.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
  174. Frame16.BackgroundColor = BrickColor.new("Institutional white")
  175. Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
  176. Frame16.BackgroundTransparency = 0.69999998807907
  177. Frame16.BorderSizePixel = 0
  178. Frame17.Name = "Cover"
  179. Frame17.Parent = Frame16
  180. Frame17.Size = UDim2.new(1, 0, 1, 0)
  181. Frame17.BackgroundColor = BrickColor.new("Institutional white")
  182. Frame17.BackgroundColor3 = Color3.new(1, 1, 1)
  183. Frame17.BackgroundTransparency = 0.5
  184. Frame17.BorderSizePixel = 0
  185. TextLabel18.Name = "Label"
  186. TextLabel18.Parent = Frame16
  187. TextLabel18.Size = UDim2.new(1, 0, 1, 0)
  188. TextLabel18.BackgroundTransparency = 1
  189. TextLabel18.BorderSizePixel = 0
  190. TextLabel18.Font = Enum.Font.SourceSansBold
  191. TextLabel18.FontSize = Enum.FontSize.Size32
  192. TextLabel18.Text = "Mana ~{#}~"
  193. TextLabel18.TextColor = BrickColor.new("Institutional white")
  194. TextLabel18.TextColor3 = Color3.new(1, 1, 1)
  195. TextLabel18.TextScaled = true
  196. TextLabel18.TextSize = 32
  197. TextLabel18.TextStrokeTransparency = 0
  198. TextLabel18.TextWrap = true
  199. TextLabel18.TextWrapped = true
  200. Frame19.Name = "Bar2"
  201. Frame19.Parent = ScreenGui3
  202. Frame19.Position = UDim2.new(0.5, 0, 0.800000012, 0)
  203. Frame19.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
  204. Frame19.BackgroundColor = BrickColor.new("Institutional white")
  205. Frame19.BackgroundColor3 = Color3.new(1, 1, 1)
  206. Frame19.BackgroundTransparency = 0.69999998807907
  207. Frame19.BorderSizePixel = 0
  208. Frame20.Name = "Cover"
  209. Frame20.Parent = Frame19
  210. Frame20.Size = UDim2.new(1, 0, 1, 0)
  211. Frame20.BackgroundColor = BrickColor.new("Institutional white")
  212. Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
  213. Frame20.BackgroundTransparency = 0.5
  214. Frame20.BorderSizePixel = 0
  215. TextLabel21.Name = "Label"
  216. TextLabel21.Parent = Frame19
  217. TextLabel21.Size = UDim2.new(1, 0, 1, 0)
  218. TextLabel21.BackgroundTransparency = 1
  219. TextLabel21.BorderSizePixel = 0
  220. TextLabel21.Font = Enum.Font.SourceSansBold
  221. TextLabel21.FontSize = Enum.FontSize.Size32
  222. TextLabel21.Text = "Energy ~{#}~"
  223. TextLabel21.TextColor = BrickColor.new("Institutional white")
  224. TextLabel21.TextColor3 = Color3.new(1, 1, 1)
  225. TextLabel21.TextScaled = true
  226. TextLabel21.TextSize = 32
  227. TextLabel21.TextStrokeTransparency = 0
  228. TextLabel21.TextWrap = true
  229. TextLabel21.TextWrapped = true
  230. for i,v in pairs(mas:GetChildren()) do
  231. v.Parent = script
  232. pcall(function() v:MakeJoints() end)
  233. end
  234. mas:Destroy()
  235. for i,v in pairs(cors) do
  236. spawn(function()
  237. pcall(v)
  238. end)
  239. end
  240.  
  241. wait(1)
  242. Recover_Mana = 1
  243. MaxMana = 100
  244.  
  245. Recover_Energy = 1
  246. MaxEnergy = 75
  247.  
  248. ManaInterval = 15
  249. EnergyInterval = 22
  250.  
  251. Stat = script.Stats
  252. Mana = Stat.Mana
  253. Energy = Stat.Energy
  254.  
  255. Player=game:GetService("Players").LocalPlayer
  256. Character=Player.Character
  257. PlayerGui=Player.PlayerGui
  258. Backpack=Player.Backpack
  259. Torso=Character.Torso
  260. Head=Character.Head
  261. Humanoid=Character.Humanoid
  262. m=Instance.new('Model',Character)
  263. LeftArm=Character["Left Arm"]
  264. LeftLeg=Character["Left Leg"]
  265. RightArm=Character["Right Arm"]
  266. RightLeg=Character["Right Leg"]
  267. LS=Torso["Left Shoulder"]
  268. LH=Torso["Left Hip"]
  269. RS=Torso["Right Shoulder"]
  270. RH=Torso["Right Hip"]
  271. Face = Head.face
  272. Neck=Torso.Neck
  273. it=Instance.new
  274. attacktype=1
  275. vt=Vector3.new
  276. cf=CFrame.new
  277. euler=CFrame.fromEulerAnglesXYZ
  278. angles=CFrame.Angles
  279. cloaked=false
  280. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  281. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  282. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  283. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  284. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  285. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  286. RootPart=Character.HumanoidRootPart
  287. RootJoint=RootPart.RootJoint
  288. RootCF=euler(-1.57,0,3.14)
  289. attack = false
  290. attackdebounce = false
  291. deb=false
  292. equipped=true
  293. hand=false
  294. MMouse=nil
  295. combo=0
  296. mana=0
  297. trispeed=.2
  298. attackmode='none'
  299. local idle=0
  300. local Anim="Idle"
  301. local Effects={}
  302. local gun=false
  303. local shoot=false
  304. player=nil
  305. mana=0
  306. cam = workspace.CurrentCamera
  307. ZTarget = nil
  308. RocketTarget = nil
  309. Rbx = LoadLibrary("RbxUtility")
  310. Create = Rbx.Create
  311.  
  312. mouse=Player:GetMouse()
  313. --save shoulders
  314. RSH, LSH=nil, nil
  315. --welds
  316. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  317. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  318. LH=Torso["Left Hip"]
  319. RH=Torso["Right Hip"]
  320. TorsoColor=Torso.BrickColor
  321. function NoOutline(Part)
  322. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  323. end
  324. player=Player
  325. ch=Character
  326. RSH=ch.Torso["Right Shoulder"]
  327. LSH=ch.Torso["Left Shoulder"]
  328. --
  329. RSH.Parent=nil
  330. LSH.Parent=nil
  331. --
  332. RW.Name="Right Shoulder"
  333. RW.Part0=ch.Torso
  334. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  335. RW.C1=cf(0, 0.5, 0)
  336. RW.Part1=ch["Right Arm"]
  337. RW.Parent=ch.Torso
  338. --
  339. LW.Name="Left Shoulder"
  340. LW.Part0=ch.Torso
  341. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  342. LW.C1=cf(0, 0.5, 0)
  343. LW.Part1=ch["Left Arm"]
  344. LW.Parent=ch.Torso
  345.  
  346. function swait(num)
  347. if num==0 or num==nil then
  348. game:service'RunService'.Heartbeat:wait(0)
  349. else
  350. for i=0,num do
  351. game:service'RunService'.Heartbeat:wait(0)
  352. end
  353. end
  354. end
  355.  
  356. function nooutline(part)
  357. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  358. end
  359.  
  360. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  361. local fp=it("Part")
  362. fp.formFactor=formfactor
  363. fp.Parent=parent
  364. fp.Reflectance=reflectance
  365. fp.Transparency=transparency
  366. fp.CanCollide=false
  367. fp.Locked=true
  368. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  369. fp.Name=name
  370. fp.Size=size
  371. fp.Position=Character.Torso.Position
  372. nooutline(fp)
  373. fp.Material=material
  374. fp:BreakJoints()
  375. return fp
  376. end
  377.  
  378. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  379. local mesh=it(Mesh)
  380. mesh.Parent=part
  381. if Mesh=="SpecialMesh" then
  382. mesh.MeshType=meshtype
  383. mesh.MeshId=meshid
  384. end
  385. mesh.Offset=offset
  386. mesh.Scale=scale
  387. return mesh
  388. end
  389.  
  390. function weld(parent,part0,part1,c0,c1)
  391. local weld=it("Weld")
  392. weld.Parent=parent
  393. weld.Part0=part0
  394. weld.Part1=part1
  395. weld.C0=c0
  396. weld.C1=c1
  397. return weld
  398. end
  399.  
  400.  
  401. local function CFrameFromTopBack(at, top, back)
  402. local right = top:Cross(back)
  403. return CFrame.new(at.x, at.y, at.z,
  404. right.x, top.x, back.x,
  405. right.y, top.y, back.y,
  406. right.z, top.z, back.z)
  407. end
  408.  
  409. function Triangle(a, b, c)
  410. local edg1 = (c-a):Dot((b-a).unit)
  411. local edg2 = (a-b):Dot((c-b).unit)
  412. local edg3 = (b-c):Dot((a-c).unit)
  413. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  414. a, b, c = a, b, c
  415. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  416. a, b, c = b, c, a
  417. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  418. a, b, c = c, a, b
  419. else
  420. assert(false, "unreachable")
  421. end
  422.  
  423. local len1 = (c-a):Dot((b-a).unit)
  424. local len2 = (b-a).magnitude - len1
  425. local width = (a + (b-a).unit*len1 - c).magnitude
  426.  
  427. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  428.  
  429. local list = {}
  430.  
  431. local TrailColor = ("Dark grey")
  432.  
  433. if len1 > 0.01 then
  434. local w1 = Instance.new('WedgePart', m)
  435. game:GetService("Debris"):AddItem(w1,5)
  436. w1.Material = "SmoothPlastic"
  437. w1.FormFactor = 'Custom'
  438. w1.BrickColor = BrickColor.new(TrailColor)
  439. w1.Transparency = 0
  440. w1.Reflectance = 0
  441. w1.Material = "SmoothPlastic"
  442. w1.CanCollide = false
  443. NoOutline(w1)
  444. local sz = Vector3.new(0.2, width, len1)
  445. w1.Size = sz
  446. local sp = Instance.new("SpecialMesh",w1)
  447. sp.MeshType = "Wedge"
  448. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  449. w1:BreakJoints()
  450. w1.Anchored = true
  451. w1.Parent = workspace
  452. w1.Transparency = 0.7
  453. table.insert(Effects,{w1,"Disappear",.01})
  454. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  455. table.insert(list,w1)
  456. end
  457.  
  458. if len2 > 0.01 then
  459. local w2 = Instance.new('WedgePart', m)
  460. game:GetService("Debris"):AddItem(w2,5)
  461. w2.Material = "SmoothPlastic"
  462. w2.FormFactor = 'Custom'
  463. w2.BrickColor = BrickColor.new(TrailColor)
  464. w2.Transparency = 0
  465. w2.Reflectance = 0
  466. w2.Material = "SmoothPlastic"
  467. w2.CanCollide = false
  468. NoOutline(w2)
  469. local sz = Vector3.new(0.2, width, len2)
  470. w2.Size = sz
  471. local sp = Instance.new("SpecialMesh",w2)
  472. sp.MeshType = "Wedge"
  473. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  474. w2:BreakJoints()
  475. w2.Anchored = true
  476. w2.Parent = workspace
  477. w2.Transparency = 0.7
  478. table.insert(Effects,{w2,"Disappear",.01})
  479. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  480. table.insert(list,w2)
  481. end
  482. return unpack(list)
  483. end
  484.  
  485.  
  486. so = function(id,par,vol,pit)
  487. coroutine.resume(coroutine.create(function()
  488. local sou = Instance.new("Sound",par or workspace)
  489. sou.Volume=vol
  490. sou.Pitch=pit or 1
  491. sou.SoundId=id
  492. swait()
  493. sou:play()
  494. game:GetService("Debris"):AddItem(sou,6)
  495. end))
  496. end
  497.  
  498. function clerp(a,b,t)
  499. local qa = {QuaternionFromCFrame(a)}
  500. local qb = {QuaternionFromCFrame(b)}
  501. local ax, ay, az = a.x, a.y, a.z
  502. local bx, by, bz = b.x, b.y, b.z
  503. local _t = 1-t
  504. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  505. end
  506.  
  507. function QuaternionFromCFrame(cf)
  508. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  509. local trace = m00 + m11 + m22
  510. if trace > 0 then
  511. local s = math.sqrt(1 + trace)
  512. local recip = 0.5/s
  513. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  514. else
  515. local i = 0
  516. if m11 > m00 then
  517. i = 1
  518. end
  519. if m22 > (i == 0 and m00 or m11) then
  520. i = 2
  521. end
  522. if i == 0 then
  523. local s = math.sqrt(m00-m11-m22+1)
  524. local recip = 0.5/s
  525. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  526. elseif i == 1 then
  527. local s = math.sqrt(m11-m22-m00+1)
  528. local recip = 0.5/s
  529. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  530. elseif i == 2 then
  531. local s = math.sqrt(m22-m00-m11+1)
  532. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  533. end
  534. end
  535. end
  536.  
  537. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  538. local xs, ys, zs = x + x, y + y, z + z
  539. local wx, wy, wz = w*xs, w*ys, w*zs
  540. local xx = x*xs
  541. local xy = x*ys
  542. local xz = x*zs
  543. local yy = y*ys
  544. local yz = y*zs
  545. local zz = z*zs
  546. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  547. end
  548.  
  549. function QuaternionSlerp(a, b, t)
  550. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  551. local startInterp, finishInterp;
  552. if cosTheta >= 0.0001 then
  553. if (1 - cosTheta) > 0.0001 then
  554. local theta = math.acos(cosTheta)
  555. local invSinTheta = 1/math.sin(theta)
  556. startInterp = math.sin((1-t)*theta)*invSinTheta
  557. finishInterp = math.sin(t*theta)*invSinTheta
  558. else
  559. startInterp = 1-t
  560. finishInterp = t
  561. end
  562. else
  563. if (1+cosTheta) > 0.0001 then
  564. local theta = math.acos(-cosTheta)
  565. local invSinTheta = 1/math.sin(theta)
  566. startInterp = math.sin((t-1)*theta)*invSinTheta
  567. finishInterp = math.sin(t*theta)*invSinTheta
  568. else
  569. startInterp = t-1
  570. finishInterp = t
  571. end
  572. end
  573. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  574. end
  575.  
  576. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  577. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  578. end
  579.  
  580. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  581. if hit.Parent==nil then
  582. return
  583. end
  584. local h=hit.Parent:FindFirstChild("Humanoid")
  585. for _,v in pairs(hit.Parent:children()) do
  586. if v:IsA("Humanoid") then
  587. h=v
  588. end
  589. end
  590. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  591. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  592. end
  593. if hit.Parent.className=="Hat" then
  594. hit=hit.Parent.Parent:findFirstChild("Head")
  595. end
  596. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  597. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  598. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  599. return
  600. end]]
  601. -- hs(hit,1.2)
  602. local c=Instance.new("ObjectValue")
  603. c.Name="creator"
  604. c.Value=game:service("Players").LocalPlayer
  605. c.Parent=h
  606. game:GetService("Debris"):AddItem(c,.5)
  607. local Damage=math.random(minim,maxim)
  608. -- h:TakeDamage(Damage)
  609. local blocked=false
  610. local block=hit.Parent:findFirstChild("Block")
  611. if block~=nil then
  612. print(block.className)
  613. if block.className=="NumberValue" then
  614. if block.Value>0 then
  615. blocked=true
  616. if decreaseblock==nil then
  617. block.Value=block.Value-1
  618. end
  619. end
  620. end
  621. if block.className=="IntValue" then
  622. if block.Value>0 then
  623. blocked=true
  624. if decreaseblock~=nil then
  625. block.Value=block.Value-1
  626. end
  627. end
  628. end
  629. end
  630. if blocked==false then
  631. -- h:TakeDamage(Damage)
  632. h.Health=h.Health-Damage
  633. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Toothpaste").Color)
  634. else
  635. h.Health=h.Health-(Damage/2)
  636. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  637. end
  638. if Type=="Knockdown" then
  639. local hum=hit.Parent.Humanoid
  640. hum.PlatformStand=true
  641. coroutine.resume(coroutine.create(function(HHumanoid)
  642. swait(1)
  643. HHumanoid.PlatformStand=false
  644. end),hum)
  645. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  646. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  647. local bodvol=Instance.new("BodyVelocity")
  648. bodvol.velocity=angle*knockback
  649. bodvol.P=5000
  650. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  651. bodvol.Parent=hit
  652. local rl=Instance.new("BodyAngularVelocity")
  653. rl.P=3000
  654. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  655. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  656. rl.Parent=hit
  657. game:GetService("Debris"):AddItem(bodvol,.5)
  658. game:GetService("Debris"):AddItem(rl,.5)
  659. elseif Type=="Normal" then
  660. local vp=Instance.new("BodyVelocity")
  661. vp.P=500
  662. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  663. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  664. if KnockbackType==1 then
  665. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  666. elseif KnockbackType==2 then
  667. vp.velocity=Property.CFrame.lookVector*knockback
  668. end
  669. if knockback>0 then
  670. vp.Parent=hit.Parent.Torso
  671. end
  672. game:GetService("Debris"):AddItem(vp,.5)
  673. elseif Type=="Up" then
  674. local bodyVelocity=Instance.new("BodyVelocity")
  675. bodyVelocity.velocity=vt(0,60,0)
  676. bodyVelocity.P=5000
  677. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  678. bodyVelocity.Parent=hit
  679. game:GetService("Debris"):AddItem(bodyVelocity,1)
  680. local rl=Instance.new("BodyAngularVelocity")
  681. rl.P=3000
  682. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  683. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  684. rl.Parent=hit
  685. game:GetService("Debris"):AddItem(rl,.5)
  686. elseif Type=="Snare" then
  687. local bp=Instance.new("BodyPosition")
  688. bp.P=2000
  689. bp.D=100
  690. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  691. bp.position=hit.Parent.Torso.Position
  692. bp.Parent=hit.Parent.Torso
  693. game:GetService("Debris"):AddItem(bp,1)
  694. elseif Type=="Target" then
  695. local Targetting = false
  696. if Targetting==false then
  697. ZTarget=hit.Parent.Torso
  698. coroutine.resume(coroutine.create(function(Part)
  699. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  700. swait(5)
  701. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  702. end),ZTarget)
  703. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  704. local targetgui=Instance.new("BillboardGui")
  705. targetgui.Parent=ZTarget
  706. targetgui.Size=UDim2.new(10,100,10,100)
  707. local targ=Instance.new("ImageLabel")
  708. targ.Parent=targetgui
  709. targ.BackgroundTransparency=1
  710. targ.Image="rbxassetid://4834067"
  711. targ.Size=UDim2.new(1,0,1,0)
  712. cam.CameraType="Scriptable"
  713. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  714. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  715. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  716. Targetting=true
  717. RocketTarget=ZTarget
  718. for i=1,Property do
  719. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  720. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  721. swait()
  722. end
  723. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  724. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  725. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  726. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  727. end
  728. Targetting=false
  729. RocketTarget=nil
  730. targetgui.Parent=nil
  731. cam.CameraType="Custom"
  732. end
  733. end
  734. local debounce=Instance.new("BoolValue")
  735. debounce.Name="DebounceHit"
  736. debounce.Parent=hit.Parent
  737. debounce.Value=true
  738. game:GetService("Debris"):AddItem(debounce,Delay)
  739. c=Instance.new("ObjectValue")
  740. c.Name="creator"
  741. c.Value=Player
  742. c.Parent=h
  743. game:GetService("Debris"):AddItem(c,.5)
  744. end
  745. end
  746.  
  747. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  748. for _,c in pairs(workspace:children()) do
  749. local hum=c:findFirstChild("Humanoid")
  750. if hum~=nil then
  751. local head=c:findFirstChild("Torso")
  752. if head~=nil then
  753. local targ=head.Position-Part.Position
  754. local mag=targ.magnitude
  755. if mag<=magni and c.Name~=Player.Name then
  756. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  757. end
  758. end
  759. end
  760. end
  761. end
  762.  
  763. function ShowDamage(Pos, Text, Time, Color)
  764. local Rate = (1 / 30)
  765. local Pos = (Pos or Vector3.new(0, 0, 0))
  766. local Text = (Text or "")
  767. local Time = (Time or 2)
  768. local Color = (Color or Color3.new(1, 0, 0))
  769. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  770. EffectPart.Anchored = true
  771. local BillboardGui = Instance.new("BillboardGui")
  772. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  773. BillboardGui.Adornee = EffectPart
  774. local TextLabel = Instance.new("TextLabel")
  775. TextLabel.BackgroundTransparency = 1
  776. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  777. TextLabel.Text = Text
  778. TextLabel.TextColor3 = Color
  779. TextLabel.TextScaled = true
  780. TextLabel.Font = Enum.Font.ArialBold
  781. TextLabel.Parent = BillboardGui
  782. BillboardGui.Parent = EffectPart
  783. game.Debris:AddItem(EffectPart, (Time + 0.1))
  784. EffectPart.Parent = game:GetService("Workspace")
  785. Delay(0, function()
  786. local Frames = (Time / Rate)
  787. for Frame = 1, Frames do
  788. wait(Rate)
  789. local Percent = (Frame / Frames)
  790. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  791. TextLabel.TextTransparency = Percent
  792. end
  793. if EffectPart and EffectPart.Parent then
  794. EffectPart:Destroy()
  795. end
  796. end)
  797. end
  798.  
  799. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  800.  
  801. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.400000006, 0.600000024, 1))
  802. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.876270771, -0.000350952148, -0.0871963501, 3.02468436e-007, -0.999996781, -4.86355759e-007, 1.93715664e-007, -4.86354111e-007, 1, -1, -3.02467555e-007, 1.93715522e-007))
  803. mesh("CylinderMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  804. HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Toothpaste","HitboxA",Vector3.new(1.00000012, 3.80000019, 0.400000036))
  805. HitboxAweld=weld(m,HandleA,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09956372, -1.52587891e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  806. mesh("BlockMesh",HitboxA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.150000066))
  807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  808. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.05311584e-006, -0.599895477, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  809. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000036, 1.39999998, 0.400000036))
  810. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399844766, -3.05175781e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  812. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.499806166, 0.799808502, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.420000017, 0.400000006))
  814. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399841189, 2.28881836e-005, 0.499961853, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  815. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  816. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  817. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399842381, 2.28881836e-005, -0.68977356, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  818. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.420000017, 1.20000005))
  820. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399840355, 2.28881836e-005, -0.0999221802, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  822. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.499804497, -0.799888611, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  824. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399841309, 2.28881836e-005, 0.399986267, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  825. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  827. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -0.799911499, -0.299885631, 1.70607336e-006, 2.68221839e-007, -1, -2.26939449e-007, 1, 2.6822147e-007, 0.999993563, 2.26934105e-007, 1.70608041e-006))
  828. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.420000017, 0.400000006))
  830. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399842381, 2.28881836e-005, -0.699806213, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  831. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(1.00000012, 0.200000018, 0.400000036))
  833. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09956372, -1.52587891e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  834. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.150000066))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  836. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.7220459e-006, 0.599834442, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  837. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  838. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.799816132, -0.299886942, -8.19355193e-007, -2.68222067e-007, 1, 5.3691457e-007, -1, -2.68221612e-007, 0.999993563, 5.369115e-007, 8.19356728e-007))
  839. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  840. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 1))
  841. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.48362732e-006, 0.399921417, 0, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  842. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  843. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  844. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.37712097, 0.686037064, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  845. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1.20000005, 0.200000003))
  847. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.67708588, 0.0862731934, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  848. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  849. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  850. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.27713776, 0.885951996, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  851. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  852. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  853. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.47715378, 0.486082077, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  854. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  855. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1, 0.200000003))
  856. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.5770607, 0.286224365, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  857. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  858. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  859. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.27767563, 0.885528564, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  860. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  861. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  862. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28881836e-005, -1.17765045, 1.08547592, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  863. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  865. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28881836e-005, -1.37765884, 0.685609818, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  866. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  868. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.17710876, 1.0859108, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  869. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  870. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  871. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399842143, 2.28881836e-005, 0.599914551, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  872. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1, 0.200000003))
  874. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.57758713, 0.285804749, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  875. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1.20000005, 0.200000003))
  877. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.67761993, 0.0858478546, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  878. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  879. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  880. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.34057617e-005, -0.599933624, 0.299871683, 1.70607336e-006, 2.68221839e-007, -1, -2.26939449e-007, 1, 2.6822147e-007, 0.999993563, 2.26934105e-007, 1.70608041e-006))
  881. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  882. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  883. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.47767639, 0.485664368, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  884. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  886. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-005, -0.599796295, 0.299871922, -2.76205924e-006, -2.38419574e-007, 1, 1.06996549e-006, -1, -2.38416632e-007, 0.999993563, 1.06996549e-006, 2.76207334e-006))
  887. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  888. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 1))
  889. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.29153442e-006, -0.399951935, 0, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  890. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  891. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Wedge",Vector3.new(0.400000006, 1, 0.800000072))
  892. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.09956384, 0.500591278, -5.34829326e-007, -1.34110962e-007, 1, 0.999993563, 5.60880665e-007, 5.34828928e-007, -5.6088345e-007, 1, 1.3411065e-007))
  893. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  894. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Wedge",Vector3.new(0.400000006, 1, 0.800000072))
  895. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.09956241, 0.499965668, 5.17126352e-007, 5.96053695e-008, -1, 0.999993563, -6.50743459e-008, 5.17125784e-007, -6.50676384e-008, -1, -5.96054264e-008))
  896. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  897.  
  898. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.400000006, 0.600000024, 1))
  899. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.876271009, -0.000350952148, 0.112800598, 3.02468436e-007, -0.999996781, -4.86355759e-007, 1.93715664e-007, -4.86354111e-007, 1, -1, -3.02467555e-007, 1.93715522e-007))
  900. mesh("CylinderMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  901. HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Toothpaste","HitboxB",Vector3.new(1.00000012, 3.80000019, 0.400000036))
  902. HitboxBweld=weld(m,HandleB,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0995636, -1.52587891e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  903. mesh("BlockMesh",HitboxB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.150000066))
  904. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  905. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.05311584e-006, -0.599895477, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  906. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000036, 1.39999998, 0.400000036))
  907. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399844646, -3.05175781e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  908. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  909. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.499806046, 0.799808502, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  910. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.420000017, 0.400000006))
  911. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399841428, 2.28881836e-005, 0.499961853, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  912. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  913. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  914. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.39984262, 2.28881836e-005, -0.68977356, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  915. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  916. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.420000017, 1.20000005))
  917. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399840593, 2.28881836e-005, -0.0999221802, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  918. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  919. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.499804378, -0.799888611, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  920. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  921. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399841547, 2.28881836e-005, 0.399986267, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  922. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  923. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  924. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -0.799911499, -0.299885511, 1.70607336e-006, 2.68221839e-007, -1, -2.26939449e-007, 1, 2.6822147e-007, 0.999993563, 2.26934105e-007, 1.70608041e-006))
  925. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  926. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.420000017, 0.400000006))
  927. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.39984262, 2.28881836e-005, -0.699806213, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  928. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  929. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(1.00000012, 0.200000018, 0.400000036))
  930. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0995636, -1.52587891e-005, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  931. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.150000066))
  932. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  933. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.7220459e-006, 0.599834442, 7.62939453e-006, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  934. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  935. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.799816132, -0.299886703, -8.19355193e-007, -2.68222067e-007, 1, 5.3691457e-007, -1, -2.68221612e-007, 0.999993563, 5.369115e-007, 8.19356728e-007))
  936. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  937. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 1))
  938. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.48362732e-006, 0.399921417, 0, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  939. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  940. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  941. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.37712097, 0.686037064, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  942. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  943. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1.20000005, 0.200000003))
  944. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.67708588, 0.0862731934, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  945. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  946. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  947. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.27713776, 0.885951996, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  948. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  949. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  950. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.47715378, 0.486082077, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  951. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  952. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1, 0.200000003))
  953. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.57705688, 0.286226273, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  954. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  955. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  956. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.27767181, 0.885528564, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  957. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  958. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  959. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28881836e-005, -1.17764664, 1.08547783, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  960. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  961. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  962. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28881836e-005, -1.37765884, 0.685609818, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  963. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  964. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  965. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.17710876, 1.0859108, -3.19909276e-007, -4.26937277e-008, 1, 0.624627113, 0.780920088, 2.33164513e-007, -0.780915022, 0.624631047, -2.23154302e-007))
  966. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  967. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.439999998, 0.200000003))
  968. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399842381, 2.28881836e-005, 0.599914551, 0.999987125, 3.11936617e-007, -1.54066669e-007, 1.39158743e-007, -3.12922936e-007, 0.999996305, 3.11942586e-007, -0.999996305, -4.17230723e-007))
  969. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.300000012))
  970. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1, 0.200000003))
  971. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.57758331, 0.285804749, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  972. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  973. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 1.20000005, 0.200000003))
  974. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.67761993, 0.085849762, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  975. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  976. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  977. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.34057617e-005, -0.599933624, 0.299871683, 1.70607336e-006, 2.68221839e-007, -1, -2.26939449e-007, 1, 2.6822147e-007, 0.999993563, 2.26934105e-007, 1.70608041e-006))
  978. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  979. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  980. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.47767258, 0.485664368, 7.32046772e-007, 1.04308597e-007, -1, 0.624627948, -0.780919373, 3.75803722e-007, -0.780914307, -0.624631882, -6.36824609e-007))
  981. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  982. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  983. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-005, -0.599796295, 0.299871922, -2.76205924e-006, -2.38419574e-007, 1, 1.06996549e-006, -1, -2.38416632e-007, 0.999993563, 1.06996549e-006, 2.76207334e-006))
  984. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  985. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 1))
  986. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.29153442e-006, -0.399951935, 0, 0.999993563, -3.18323146e-012, -1.94162568e-012, -3.12638804e-012, 1, 0, -1.97004739e-012, 0, 1))
  987. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1, 1))
  988. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Wedge",Vector3.new(0.400000006, 1, 0.800000072))
  989. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.09956384, 0.500591278, -5.34829326e-007, -1.34110962e-007, 1, 0.999993563, 5.60880665e-007, 5.34828928e-007, -5.6088345e-007, 1, 1.3411065e-007))
  990. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  991. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Toothpaste","Wedge",Vector3.new(0.400000006, 1, 0.800000072))
  992. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.09956253, 0.499965668, 5.17126352e-007, 5.96053695e-008, -1, 0.999993563, -6.50743459e-008, 5.17125784e-007, -6.50676384e-008, -1, -5.96054264e-008))
  993. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.160000026, 1, 1))
  994.  
  995. ManaBar_Color = BrickColor.new("Toothpaste")
  996. EnergyBar_Color = BrickColor.new("Dark stone grey")
  997. Primary_Color = BrickColor.new("Really black")
  998.  
  999. GUI = script.WeaponGUI
  1000.  
  1001. Bar1 = GUI.Bar1
  1002. Bar2 = GUI.Bar2
  1003. Skill1 = GUI.Skill1
  1004. Skill2 = GUI.Skill2
  1005. Skill3 = GUI.Skill3
  1006. Skill4 = GUI.Skill4
  1007.  
  1008. Bar1Cover = Bar1.Cover
  1009. Bar2Cover = Bar2.Cover
  1010. Cover1 = Skill1.Cover
  1011. Cover2 = Skill2.Cover
  1012. Cover3 = Skill3.Cover
  1013. Cover4 = Skill4.Cover
  1014.  
  1015. Bar1.BackgroundColor3 = ManaBar_Color.Color
  1016. Bar1Cover.BackgroundColor3 = ManaBar_Color.Color
  1017. Bar2.BackgroundColor3 = EnergyBar_Color.Color
  1018. Bar2Cover.BackgroundColor3 = EnergyBar_Color.Color
  1019. Skill1.BackgroundColor3 = Primary_Color.Color
  1020. Cover1.BackgroundColor3 = Primary_Color.Color
  1021. Skill2.BackgroundColor3 = Primary_Color.Color
  1022. Cover2.BackgroundColor3 = Primary_Color.Color
  1023. Skill3.BackgroundColor3 = Primary_Color.Color
  1024. Cover3.BackgroundColor3 = Primary_Color.Color
  1025. Skill4.BackgroundColor3 = Primary_Color.Color
  1026. Cover4.BackgroundColor3 = Primary_Color.Color
  1027.  
  1028. Skill1text = Skill1.Label
  1029. Skill2text = Skill2.Label
  1030. Skill3text = Skill3.Label
  1031. Skill4text = Skill4.Label
  1032.  
  1033. Skill1text.Text = "[Z] Slash Dance"
  1034. Skill2text.Text = "[X] Assault of Slashes"
  1035. Skill3text.Text = "[C] Dazzling Beauty"
  1036. Skill4text.Text = "[V] Meteor Strike"
  1037.  
  1038. GUI.Parent = PlayerGui
  1039.  
  1040. effect = m
  1041. Effects = {}
  1042.  
  1043. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1044.  
  1045. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1046. NoOutline(Part)
  1047. return Part
  1048. end
  1049.  
  1050. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1051.  
  1052. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1053. if Mesh == "SpecialMesh" then
  1054. Msh.MeshType = MeshType
  1055. Msh.MeshId = MeshId
  1056. end
  1057. return Msh
  1058. end
  1059.  
  1060. SlashEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1061.  
  1062. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1063. prt.Anchored = true
  1064. prt.CFrame = cframe
  1065. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1066. game:GetService("Debris"):AddItem(prt, 2)
  1067. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  1068.  
  1069. for i = 0, 1, delay do
  1070. swait()
  1071. Part.Transparency = i
  1072. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1073. end
  1074. Part.Parent = nil
  1075. end
  1076. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  1077. end
  1078.  
  1079. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1080.  
  1081. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1082. prt.Anchored = true
  1083. prt.CFrame = cframe
  1084. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1085. game:GetService("Debris"):AddItem(prt, 10)
  1086. if Type == 1 or Type == nil then
  1087. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1088. else
  1089. if Type == 2 then
  1090. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1091. end
  1092. end
  1093. end
  1094.  
  1095. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1096.  
  1097. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1098. prt.Anchored = true
  1099. prt.CFrame = cframe
  1100. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1101. game:GetService("Debris"):AddItem(prt, 10)
  1102. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1103. end
  1104.  
  1105. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1106.  
  1107. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1108. prt.Anchored = true
  1109. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1110. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1111. game:GetService("Debris"):AddItem(prt, 10)
  1112. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1113. end
  1114.  
  1115. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1116.  
  1117. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1118. prt.Anchored = true
  1119. prt.CFrame = cframe
  1120. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1121. game:GetService("Debris"):AddItem(prt, 10)
  1122. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1123. end
  1124.  
  1125. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1126.  
  1127. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1128. prt.Anchored = true
  1129. prt.CFrame = cframe
  1130. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1131. game:GetService("Debris"):AddItem(prt, 10)
  1132. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1133. end
  1134.  
  1135. function ExplosionEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1136. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1137. prt.Anchored = true
  1138. prt.CFrame = cframe
  1139. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://15170610", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1140. game:GetService("Debris"):AddItem(prt, 10)
  1141. table.insert(Effects, {prt,"Block1",delay,x3,y3,z3,msh})
  1142. end
  1143.  
  1144. function OpenHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1145. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1146. prt.Anchored = true
  1147. prt.CFrame = cframe
  1148. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://73031750", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1149. game:GetService("Debris"):AddItem(prt, 10)
  1150. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1151. end
  1152.  
  1153. function CloseHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1154. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1155. prt.Anchored = true
  1156. prt.CFrame = cframe
  1157. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://90718752", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1158. game:GetService("Debris"):AddItem(prt, 10)
  1159. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1160. end
  1161.  
  1162. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1163. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1164. prt.Anchored = true
  1165. prt.CFrame = cframe
  1166. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1167. game:GetService("Debris"):AddItem(prt, 10)
  1168. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1169. end
  1170.  
  1171. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1172.  
  1173. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1174. prt.Anchored = true
  1175. prt.CFrame = cframe
  1176. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1177. game:GetService("Debris"):AddItem(prt, 10)
  1178. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1179. end
  1180.  
  1181. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1182. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1183. prt.Anchored = true
  1184. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1185. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1186. local num = math.random(10, 50) / 1000
  1187. game:GetService("Debris"):AddItem(prt, 10)
  1188. table.insert(Effects, {prt,"Shatter",num,prt.CFrame,math.random() - math.random(),0,math.random(50, 100) / 100})
  1189. end
  1190.  
  1191.  
  1192. CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1193.  
  1194. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1195. prt.Anchored = true
  1196. prt.CFrame = cframe
  1197. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1198. game:GetService("Debris"):AddItem(prt, 10)
  1199. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1200. end
  1201.  
  1202. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1203. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1204. prt.Anchored=true
  1205. prt.CFrame=cframe
  1206. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1207. game:GetService("Debris"):AddItem(prt,5)
  1208. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1209. end
  1210.  
  1211. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1212. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1213. prt.Anchored=true
  1214. prt.CFrame=cframe
  1215. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1216. game:GetService("Debris"):AddItem(prt,5)
  1217. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1218. end
  1219.  
  1220. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1221. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1222. prt.Anchored=true
  1223. prt.CFrame=cframe
  1224. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1225. game:GetService("Debris"):AddItem(prt,2)
  1226. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1227. end
  1228.  
  1229. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1230. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1231. prt.Anchored=true
  1232. prt.CFrame=cframe
  1233. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1234. game:GetService("Debris"):AddItem(prt,2)
  1235. coroutine.resume(coroutine.create(function(Part,Mesh)
  1236. for i=0,1,delay do
  1237. swait()
  1238. Part.CFrame=Part.CFrame
  1239. Part.Transparency=i
  1240. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1241. end
  1242. Part.Parent=nil
  1243. end),prt,msh)
  1244. end
  1245.  
  1246. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1247. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1248. prt.Anchored=true
  1249. prt.CFrame=cframe
  1250. prt.CanCollide = false
  1251. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1252. game:GetService("Debris"):AddItem(prt,2)
  1253. coroutine.resume(coroutine.create(function(Part,Mesh)
  1254. for i=0,1,delay do
  1255. swait()
  1256. Part.CFrame=Part.CFrame
  1257. Part.Transparency=i
  1258. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1259. end
  1260. Part.Parent=nil
  1261. end),prt,msh)
  1262. end
  1263.  
  1264. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1265. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1266. prt.Anchored=true
  1267. prt.CFrame=cframe
  1268. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1269. game:GetService("Debris"):AddItem(prt,2)
  1270. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1271. for i=0,1,delay do
  1272. swait()
  1273. Part.Transparency=i
  1274. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1275. end
  1276. Part.Parent=nil
  1277. end),prt,msh,(math.random(0,1)+math.random())/5)
  1278. end
  1279.  
  1280. function Laser(Part,Color1,Color2,LaserSize1,LaserSize2,Size1,Size2,Magnitude,Mindam,Maxdam,Knock,Type)
  1281. sp = Part.Position
  1282. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
  1283. local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
  1284. local las=Instance.new("Part",Character)
  1285. las.Material = "SmoothPlastic"
  1286. las.Anchored=true
  1287. las.Locked=true
  1288. las.CanCollide=false
  1289. las.TopSurface=0
  1290. las.BottomSurface=0
  1291. rootlook=RootPart.CFrame
  1292. las.FormFactor = "Custom"
  1293. las.BrickColor=BrickColor.new(Color1)
  1294. las.Size=Vector3.new(1,1,1)
  1295. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  1296. local msh=Instance.new("SpecialMesh",las)
  1297. mag = (Part.Position-pos).magnitude
  1298. msh.Scale=Vector3.new(0.1,mag,0.1)
  1299. so("rbxassetid://263610152",Part,1,1.5)
  1300. coroutine.resume(coroutine.create(function(Part,Mesh)
  1301. for i = 0,1,0.1 do
  1302. wait()
  1303. Part.Transparency = Part.Transparency + 0.1
  1304. Mesh.Scale = Mesh.Scale + Vector3.new(LaserSize1,LaserSize2,LaserSize1)
  1305. end
  1306. Part.Parent = nil
  1307. end),las,msh)
  1308. if pos ~= nil then
  1309. RingEffect(BrickColor.new(Color1),cf(pos)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),Size1,Size1,Size1,Size1,Size1,Size1,.07)
  1310. ExplosionEffect(BrickColor.new(Color2),cf(pos),Size2,Size2,Size2,Size2,Size2,Size2,.07)
  1311. end
  1312. if hit ~= nil and pos ~= nil then
  1313. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1314. if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1315. MagniDamage(hit.Parent.Torso,hit.Parent.Torso,Magnitude,Mindam,Maxdam,Knock,Type)
  1316. end
  1317. end
  1318. end
  1319. end
  1320.  
  1321. function attackone()
  1322. attack = true
  1323. local con1 = HitboxA.Touched:connect(function(hit)
  1324. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1325. end)
  1326. local con2 = HitboxB.Touched:connect(function(hit)
  1327. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1328. end)
  1329. for i = 0,1,0.1 do
  1330. swait()
  1331. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1332. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1333. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.3)
  1334. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.3)
  1335. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(-30)),.3)
  1336. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1337. end
  1338. so("http://roblox.com/asset/?id=199145095",HitboxA,1,1)
  1339. for i = 0,1,0.1 do
  1340. swait()
  1341. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(120)),.3)
  1342. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1343. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1344. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1345. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1346. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1347. end
  1348. attack = false
  1349. con1:disconnect()
  1350. con2:disconnect()
  1351. end
  1352.  
  1353. function attacktwo()
  1354. attack = true
  1355. local con1 = HitboxA.Touched:connect(function(hit)
  1356. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1357. end)
  1358. local con2 = HitboxB.Touched:connect(function(hit)
  1359. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1360. end)
  1361. for i = 0,1,0.1 do
  1362. swait()
  1363. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1364. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1365. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(140), math.rad(80)), 0.3)
  1366. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-90)), 0.3)
  1367. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1368. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1369. end
  1370. so("http://roblox.com/asset/?id=199145146",HitboxB,1,1)
  1371. for i = 0,1,0.1 do
  1372. swait()
  1373. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(-120)),.3)
  1374. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(110)),.3)
  1375. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(80)), 0.3)
  1376. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-140), math.rad(-90)), 0.3)
  1377. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(-30)),.3)
  1378. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1379. end
  1380. attack = false
  1381. con1:disconnect()
  1382. con2:disconnect()
  1383. end
  1384.  
  1385. function shootone()
  1386. attack = true
  1387. local con1 = HitboxA.Touched:connect(function(hit)
  1388. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1389. end)
  1390. local con2 = HitboxB.Touched:connect(function(hit)
  1391. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1392. end)
  1393. for i = 0,1,0.1 do
  1394. swait()
  1395. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1396. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1397. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.3)
  1398. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.3)
  1399. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(-30)),.3)
  1400. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1401. end
  1402. so("http://roblox.com/asset/?id=199145095",HitboxA,1,1)
  1403. for i=0,math.random(3,7) do
  1404. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Reference",vt())
  1405. ref.Anchored=true
  1406. if i == 0 then
  1407. ref.CFrame=RootPart.CFrame*CFrame.new(0,0,-4)
  1408. else
  1409. ref.CFrame=RootPart.CFrame*CFrame.new(0,0,i*-8 + -4)
  1410. end
  1411. game:GetService("Debris"):AddItem(ref,0.5)
  1412. so("rbxassetid://263610152",ref,1,1.5)
  1413. SlashEffect(BrickColor.new("Teal"),ref.CFrame*angles(math.rad(90),1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1414. SlashEffect(BrickColor.new("White"),ref.CFrame*CFrame.new(0,0,2)*angles(math.rad(90),-1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1415. MagniDamage(ref,ref,12,20,25,0,"Normal")
  1416. end
  1417. for i = 0,1,0.1 do
  1418. swait()
  1419. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(120)),.3)
  1420. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1421. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1422. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1423. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1424. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1425. end
  1426. attack = false
  1427. con1:disconnect()
  1428. con2:disconnect()
  1429. end
  1430.  
  1431. function shoottwo()
  1432. attack = true
  1433. local con1 = HitboxA.Touched:connect(function(hit)
  1434. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1435. end)
  1436. local con2 = HitboxB.Touched:connect(function(hit)
  1437. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1438. end)
  1439. for i = 0,1,0.1 do
  1440. swait()
  1441. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1442. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1443. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(140), math.rad(80)), 0.3)
  1444. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-90)), 0.3)
  1445. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1446. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1447. end
  1448. so("http://roblox.com/asset/?id=199145146",HitboxB,1,1)
  1449. for i=0,math.random(3,7) do
  1450. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Reference",vt())
  1451. ref.Anchored=true
  1452. if i == 0 then
  1453. ref.CFrame=RootPart.CFrame*CFrame.new(0,0,-4)
  1454. else
  1455. ref.CFrame=RootPart.CFrame*CFrame.new(0,0,i*-8 + -4)
  1456. end
  1457. game:GetService("Debris"):AddItem(ref,0.5)
  1458. so("rbxassetid://263610152",ref,1,1.5)
  1459. SlashEffect(BrickColor.new("Teal"),ref.CFrame*angles(math.rad(90),-1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1460. SlashEffect(BrickColor.new("White"),ref.CFrame*CFrame.new(0,0,2)*angles(math.rad(90),1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1461. MagniDamage(ref,ref,12,20,25,0,"Normal")
  1462. end
  1463. for i = 0,1,0.1 do
  1464. swait()
  1465. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(-120)),.3)
  1466. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(110)),.3)
  1467. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(80)), 0.3)
  1468. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-140), math.rad(-90)), 0.3)
  1469. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(-30)),.3)
  1470. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1471. end
  1472. attack = false
  1473. con1:disconnect()
  1474. con2:disconnect()
  1475. end
  1476.  
  1477. function Z()
  1478. attack = true
  1479. local con1 = HitboxA.Touched:connect(function(hit)
  1480. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1481. end)
  1482. local con2 = HitboxB.Touched:connect(function(hit)
  1483. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1484. end)
  1485. for i = 0,1,0.1 do
  1486. swait()
  1487. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(120)),.3)
  1488. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1489. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1490. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1491. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1492. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1493. end
  1494. for i = 0,1,0.5 do
  1495. swait()
  1496. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  1497. for i = 0,1,0.1 do
  1498. swait()
  1499. Torso.Velocity = RootPart.CFrame.lookVector * 125
  1500. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(0),math.rad(0),-6*i),.3)
  1501. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1502. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1503. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1504. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1505. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1506. end
  1507. end
  1508. attack = false
  1509. con1:disconnect()
  1510. con2:disconnect()
  1511. end
  1512.  
  1513. function X()
  1514. attack = true
  1515. local con1 = HitboxA.Touched:connect(function(hit)
  1516. Damagefunc(HitboxA,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1517. end)
  1518. local con2 = HitboxB.Touched:connect(function(hit)
  1519. Damagefunc(HitboxB,hit,15,20,math.random(1,5),"Normal",RootPart,.2,1)
  1520. end)
  1521. for i = 0,1,0.1 do
  1522. swait()
  1523. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(120)),.3)
  1524. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1525. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1526. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1527. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1528. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1529. end
  1530. for c=0,5 do
  1531. swait()
  1532. for i = 0,1,0.5 do
  1533. swait()
  1534. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  1535. for i = 0,1,0.1 do
  1536. swait()
  1537. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Reference",vt())
  1538. ref.Anchored=true
  1539. if c == 0 then
  1540. ref.CFrame=Torso.CFrame*CFrame.new(0,0,-17.5)
  1541. else
  1542. ref.CFrame=Torso.CFrame*CFrame.new(0,0,-17.5*c)
  1543. end
  1544. game:GetService("Debris"):AddItem(ref,0.5)
  1545. so("rbxassetid://263610152",ref,1,1.5)
  1546. SlashEffect(BrickColor.new("Teal"),ref.CFrame*angles(math.rad(90),-1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1547. SlashEffect(BrickColor.new("White"),ref.CFrame*CFrame.new(0,0,2)*angles(math.rad(90),1.2,0),0.001,0.1,0.1,0,0.001,0.001,0.07)
  1548. MagniDamage(ref,ref,12,20,25,0,"Normal")
  1549. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(0),math.rad(0),-6*i),.3)
  1550. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-100)),.3)
  1551. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1552. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1553. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1554. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1555. end
  1556. end
  1557. end
  1558. attack = false
  1559. con1:disconnect()
  1560. con2:disconnect()
  1561. end
  1562.  
  1563. function C()
  1564. for i=10,1,-1 do
  1565. swait()
  1566. for i=1,math.pi*2,0.05 do
  1567. swait()
  1568. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(0,i,0)*CFrame.new(0,0,5),1,1,1,0.1,0.1,0.1,0.05)
  1569. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(i,0,0)*CFrame.new(0,0,7.5),1,1,1,0.1,0.1,0.1,0.05)
  1570. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(i,i,0)*CFrame.new(0,0,15),1,1,1,0.1,0.1,0.1,0.05)
  1571. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(0,i,i)*CFrame.new(0,0,12.5),1,1,1,0.1,0.1,0.1,0.05)
  1572. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(i,i,i)*CFrame.new(0,0,10),1,1,1,0.1,0.1,0.1,0.05)
  1573. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(0,-i,0)*CFrame.new(0,0,5),1,1,1,0.1,0.1,0.1,0.05)
  1574. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(-i,0,0)*CFrame.new(0,0,7.5),1,1,1,0.1,0.1,0.1,0.05)
  1575. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(-i,-i,0)*CFrame.new(0,0,15),1,1,1,0.1,0.1,0.1,0.05)
  1576. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(0,-i,-i)*CFrame.new(0,0,12.5),1,1,1,0.1,0.1,0.1,0.05)
  1577. SpecialEffect("New Yeller",RootPart.CFrame*CFrame.Angles(-i,-i,-i)*CFrame.new(0,0,10),1,1,1,0.1,0.1,0.1,0.05)
  1578. MagniDamage(RootPart,RootPart,20,10,20,0,"Snare")
  1579. end
  1580. end
  1581. end
  1582.  
  1583. function V()
  1584. attack = true
  1585. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1586. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1587. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  1588. so("http://roblox.com/asset/?id=153092348",Torso,1,.9)
  1589. Humanoid.Jump = true
  1590. for i = 0, 1, 0.05 do
  1591. swait()
  1592. Torso.Velocity = Vector3.new(0, 150, 0)
  1593. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -.5) * angles(6 * i, math.rad(0), math.rad(0)), .2)
  1594. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1595. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 1, .7) * angles(math.rad(180), math.rad(0), math.rad(-50)), .3)
  1596. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 1, .7) * angles(math.rad(180), math.rad(0), math.rad(50)), .3)
  1597. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-20)), .3)
  1598. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(20)), .3)
  1599. end
  1600. for i = 0, 1, 0.017 do
  1601. swait()
  1602. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -.5) * angles(math.rad(-10), math.rad(0), math.rad(0)), .2)
  1603. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(40), math.rad(0), math.rad(0)), .3)
  1604. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 1, .7) * angles(math.rad(180), math.rad(0), math.rad(-50)), .3)
  1605. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 1, .7) * angles(math.rad(180), math.rad(0), math.rad(50)), .3)
  1606. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1607. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  1608. end
  1609. for i = 0,1,0.05 do
  1610. swait()
  1611. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.5)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1612. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1613. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  1614. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1615. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1616. LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(50))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1617. end
  1618. repeat wait() until hitfloor ~= nil
  1619. swait(3)
  1620. so("http://roblox.com/asset/?id=199145264",Torso,1,.9)
  1621. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  1622. for i=6,1,-1 do
  1623. MagicRing("Institutional white",RootPart.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360)),2.5,2.5,0.1,2.5,2.5,0.1,0.05)
  1624. end
  1625. MagicCircle("Institutional white",RootPart.CFrame*CFrame.new(0,-1,0),6,6,6,6,6,6,0.05)
  1626. for i=5,1,-1 do
  1627. MagicCircle("Toothpaste",RootPart.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),2,8,2,0,8,0,0.05)
  1628. end
  1629. MagicCylinder2("Toothpaste",RootPart.CFrame*CFrame.new(0,-1,0),25,0.1,25,25,0.1,25,0.05)
  1630. MagicCylinder2("Institutional white",RootPart.CFrame*CFrame.new(0,-1,0),50,0.1,50,50,0.1,50,0.05)
  1631. MagniDamage(RootPart,RootPart,50,25,50,-30,0,"Snare")
  1632. MagniDamage(RootPart,RootPart,100,5,10,-40,0,"Knockdown")
  1633. MagniDamage(RootPart,RootPart,150,1,5,-50,0,"Normal")
  1634. MagicRing("Institutional white",RootPart.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),0,0),10,10,25,10,10,25,0.05)
  1635. MagniDamage(RootPart,RootPart,185,20,25,-60,0,"Knockdown")
  1636. attack = false
  1637. end
  1638.  
  1639. cd1 = false
  1640. cd2 = false
  1641. cd3 = false
  1642. cd4 = false
  1643.  
  1644. mouse.Button1Down:connect(function()
  1645. if attack == true then return end
  1646. if attacktype == 1 then
  1647. attacktype = 2
  1648. attackone()
  1649. elseif attacktype == 2 then
  1650. attacktype = 3
  1651. attacktwo()
  1652. elseif attacktype == 3 then
  1653. attacktype = 4
  1654. shootone()
  1655. elseif attacktype == 4 then
  1656. attacktype = 1
  1657. shoottwo()
  1658. end
  1659. end)
  1660.  
  1661. mouse.KeyDown:connect(function(key)
  1662. key = key:lower()
  1663. if key == "z" and cd1 == false and Mana.Value >= 10 and attack == false then
  1664. cd1 = true
  1665. Cover1.Size = UDim2.new(0,0,1,0)
  1666. Mana.Value = Mana.Value - 10
  1667. Z()
  1668. Cover1:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',3)
  1669. repeat wait() until Cover1.Size == UDim2.new(1,0,1,0)
  1670. cd1 = false
  1671. elseif key == "x" and cd2 == false and Mana.Value >= 15 and attack == false then
  1672. cd2 = true
  1673. Cover2.Size = UDim2.new(0,0,1,0)
  1674. Mana.Value = Mana.Value - 15
  1675. X()
  1676. Cover2:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',5)
  1677. repeat wait() until Cover2.Size == UDim2.new(1,0,1,0)
  1678. cd2 = false
  1679. elseif key == "c" and cd3 == false and Mana.Value >= 27 then
  1680. cd3 = true
  1681. Cover3.Size = UDim2.new(0,0,1,0)
  1682. Mana.Value = Mana.Value - 27
  1683. C()
  1684. Cover3:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',9)
  1685. repeat wait() until Cover3.Size == UDim2.new(1,0,1,0)
  1686. cd3 = false
  1687. elseif key == "v" and cd4 == false and Mana.Value >= 50 and attack == false then
  1688. cd4 = true
  1689. Cover4.Size = UDim2.new(0,0,1,0)
  1690. Mana.Value = Mana.Value - 50
  1691. V()
  1692. Cover4:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',13)
  1693. repeat wait() until Cover4.Size == UDim2.new(1,0,1,0)
  1694. cd4 = false
  1695. elseif key == "h" then
  1696. Mana.Value = MaxMana
  1697. Energy.Value = MaxEnergy
  1698. end
  1699. end)
  1700.  
  1701. local sine = 0
  1702. local change = 1
  1703. local val = 0
  1704. local Mananum = 0
  1705. local Energynum = 0
  1706.  
  1707. while true do
  1708. swait()
  1709. if Mana.Value >= MaxMana then
  1710. Mana.Value = MaxMana
  1711. else
  1712. if Mananum <= ManaInterval then
  1713. Mananum = Mananum + 1
  1714. else
  1715. Mananum = 0
  1716. Mana.Value = math.floor(Mana.Value) + Recover_Mana
  1717. end
  1718. end
  1719. if Energy.Value >= MaxEnergy then
  1720. Energy.Value = MaxEnergy
  1721. else
  1722. if Energynum <= EnergyInterval then
  1723. Energynum = Energynum + 1
  1724. else
  1725. Energynum = 0
  1726. Energy.Value = math.floor(Energy.Value) + Recover_Energy
  1727. end
  1728. end
  1729. sine = sine + change
  1730. Bar1.Label.Text = "Mana ~{"..Mana.Value.."}~"
  1731. Bar2.Label.Text = "Energy ~{"..Energy.Value.."}~"
  1732. Bar1Cover:TweenSize(UDim2.new(1 * (Mana.Value / MaxMana), 0, 1, 0), "Out", "Linear", 0.5)
  1733. Bar2Cover:TweenSize(UDim2.new(1 * (Energy.Value / MaxEnergy), 0, 1, 0), "Out", "Linear", 0.5)
  1734. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1735. local velderp=RootPart.Velocity.y
  1736. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1737. if equipped==true or equipped==false then
  1738. if attack==false then
  1739. idle=idle+1
  1740. else
  1741. idle=0
  1742. end
  1743. if idle>=500 then
  1744. if attack==false then
  1745. end
  1746. end
  1747. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1748. Anim="Jump"
  1749. if attack==false then
  1750. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(0,math.rad(0),math.rad(0)),.3)
  1751. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1752. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
  1753. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1754. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1755. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1756. end
  1757. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1758. Anim="Fall"
  1759. if attack==false then
  1760. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1761. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1762. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(70)), 0.3)
  1763. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)), 0.3)
  1764. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1765. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1766. end
  1767. elseif torvel<1 and hitfloor~=nil then
  1768. Anim="Idle"
  1769. if attack==false then
  1770. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.4)* angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1771. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.3)
  1772. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  1773. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1774. RH.C0=clerp(RH.C0,cf(1,-.5,0)*angles(math.rad(0),math.rad(60),math.rad(10)),.3)
  1775. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1776. end
  1777. elseif torvel>2 and hitfloor~=nil then
  1778. Anim="Walk"
  1779. if attack==false then
  1780. change=3
  1781. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1782. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1783. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.3)
  1784. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1785. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1786. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1787. end
  1788. end
  1789. end
  1790. if #Effects>0 then
  1791. for e=1,#Effects do
  1792. if Effects[e]~=nil then
  1793. local Thing=Effects[e]
  1794. if Thing~=nil then
  1795. local Part=Thing[1]
  1796. local Mode=Thing[2]
  1797. local Delay=Thing[3]
  1798. local IncX=Thing[4]
  1799. local IncY=Thing[5]
  1800. local IncZ=Thing[6]
  1801. if Thing[1].Transparency<=1 then
  1802. if Thing[2]=="Block1" then
  1803. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1804. Mesh=Thing[1].Mesh
  1805. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1806. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1807. elseif Thing[2]=="Cylinder" then
  1808. Mesh=Thing[1].Mesh
  1809. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1810. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1811. elseif Thing[2]=="Blood" then
  1812. Mesh=Thing[7]
  1813. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1814. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1815. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1816. elseif Thing[2]=="Elec" then
  1817. Mesh=Thing[1].Mesh
  1818. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1819. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1820. elseif Thing[2]=="Disappear" then
  1821. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1822. end
  1823. else
  1824. Part.Parent=nil
  1825. table.remove(Effects,e)
  1826. end
  1827. end
  1828. end
  1829. end
  1830. end
  1831. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement