UltimateGate

BLACK MAGIC - Kyuuga [2016]

May 8th, 2018
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.68 KB | None | 0 0
  1. Ply = game.Players.LocalPlayer
  2. --FIXED WITH TRIGECTORY's CheatSheet--
  3. cheatsheetplr = game.Players.LocalPlayer
  4. i = Instance.new("NumberValue", cheatsheetplr )
  5. i.Name = "FPSCH"
  6. Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
  7. script.Parent = Bin
  8. local cf = CFrame.new
  9. local RbxUtility = LoadLibrary("RbxUtility")
  10. local Create = RbxUtility.Create
  11. RW = Create("Weld")({Name = "Right Shoulder", Part0 = Tor, C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  12.  
  13. 0), Part1 = RA, Parent = Tor})
  14. LW = Create("Weld")({Name = "Left Shoulder", Part0 = Tor, C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  15.  
  16. 0), Part1 = LA, Parent = Tor})
  17. Player=game:GetService("Players").LocalPlayer
  18. Character=Player.Character
  19. local effectz = Instance.new('Model', Character)
  20. effectz.Name = "effects"
  21. PlayerGui=Player.PlayerGui
  22. Backpack=Player.Backpack
  23. Torso=Character.Torso
  24. Head=Character.Head
  25. Humanoid=Character.Humanoid
  26. m=Instance.new('Model',Character)
  27. LeftArm=Character["Left Arm"]
  28. LeftLeg=Character["Left Leg"]
  29. RightArm=Character["Right Arm"]
  30. RightLeg=Character["Right Leg"]
  31. LS=Torso["Left Shoulder"]
  32. LH=Torso["Left Hip"]
  33. RS=Torso["Right Shoulder"]
  34. RH=Torso["Right Hip"]
  35. Face = Head.face
  36. Neck=Torso.Neck
  37. it=Instance.new
  38. attacktype=1
  39. vt=Vector3.new
  40. cf=CFrame.new
  41. euler=CFrame.fromEulerAnglesXYZ
  42. angles=CFrame.Angles
  43. cloaked=false
  44. xenabled=true cenabled=true venabled=true zenabled=true
  45. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  46. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  47. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  48. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  49. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  50. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  51. RootPart=Character.HumanoidRootPart
  52. RootJoint=RootPart.RootJoint
  53. RootCF=euler(-1.57,0,3.14)
  54. attack = false
  55. attackdebounce = false
  56. deb=false
  57. equipped=true
  58. hand=false
  59. MMouse=nil
  60. combo=0
  61. mana=0
  62. cam=workspace.CurrentCamera
  63. RocketTarget=nil
  64. Targetting=false
  65. trispeed=.2
  66. attackmode='none'
  67. local idle=0
  68. local Anim="Idle"
  69. local Effects={}
  70. local gun=false
  71. local shoot=false
  72. player=nil
  73. mana=0
  74.  
  75. mouse=Player:GetMouse()
  76. --save shoulders
  77. RSH, LSH=nil, nil
  78. --welds
  79. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  80. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  81. LH=Torso["Left Hip"]
  82. RH=Torso["Right Hip"]
  83. TorsoColor=Torso.BrickColor
  84. function NoOutline(Part)
  85. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  86. end
  87. player=Player
  88. ch=Character
  89. RSH=ch.Torso["Right Shoulder"]
  90. LSH=ch.Torso["Left Shoulder"]
  91. --
  92. RSH.Parent=nil
  93. LSH.Parent=nil
  94. --
  95. RW.Name="Right Shoulder"
  96. RW.Part0=ch.Torso
  97. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  98. RW.C1=cf(0, 0.5, 0)
  99. RW.Part1=ch["Right Arm"]
  100. RW.Parent=ch.Torso
  101. --
  102. LW.Name="Left Shoulder"
  103. LW.Part0=ch.Torso
  104. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  105. LW.C1=cf(0, 0.5, 0)
  106. LW.Part1=ch["Left Arm"]
  107. LW.Parent=ch.Torso
  108.  
  109. Player=game:GetService('Players').LocalPlayer
  110. Character=Player.Character
  111. Mouse=Player:GetMouse()
  112. m=Instance.new('Model',Character)
  113.  
  114.  
  115. local function weldBetween(a, b)
  116. local weldd = Instance.new("ManualWeld")
  117. weldd.Part0 = a
  118. weldd.Part1 = b
  119. weldd.C0 = CFrame.new()
  120. weldd.C1 = b.CFrame:inverse() * a.CFrame
  121. weldd.Parent = a
  122. return weldd
  123. end
  124.  
  125. ArtificialHB = Instance.new("BindableEvent", script)
  126. ArtificialHB.Name = "Heartbeat"
  127.  
  128. script:WaitForChild("Heartbeat")
  129.  
  130. frame = 1 / 30
  131. if Player.FPSCH.Value==true then
  132. frame = 1/60
  133. else
  134. frame=1/30
  135. end
  136. tf = 0
  137. allowframeloss = false
  138. tossremainder = false
  139. lastframe = tick()
  140. script.Heartbeat:Fire()
  141.  
  142. game:GetService("RunService").Heartbeat:connect(function(s, p)
  143. tf = tf + s
  144. if tf >= frame then
  145. if allowframeloss then
  146. script.Heartbeat:Fire()
  147. lastframe = tick()
  148. else
  149. for i = 1, math.floor(tf / frame) do
  150. script.Heartbeat:Fire()
  151. end
  152. lastframe = tick()
  153. end
  154. if tossremainder then
  155. tf = 0
  156. else
  157. tf = tf - frame * math.floor(tf / frame)
  158. end
  159. end
  160. end)
  161.  
  162. function swait(num)
  163. if num == 0 or num == nil then
  164. ArtificialHB.Event:wait()
  165. else
  166. for i = 0, num do
  167. ArtificialHB.Event:wait()
  168. end
  169. end
  170. end
  171. function pwait(num)
  172. if num==0 or num==nil then
  173. game:service'RunService'.Heartbeat:wait(0)
  174. else
  175. for i=0,num do
  176. game:service'RunService'.Heartbeat:wait(0)
  177. end
  178. end
  179. end
  180.  
  181. function nooutline(part)
  182. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  183. end
  184.  
  185. local fengui=it("GuiMain")
  186. fengui.Parent=Player.PlayerGui
  187. fengui.Name="WeaponGUI"
  188. local fenframe1=it("TextLabel")
  189. fenframe1.Parent=fengui
  190. fenframe1.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  191. fenframe1.BackgroundTransparency=0.3
  192. fenframe1.BorderSizePixel=5
  193. fenframe1.BorderColor3=Color3.new(1,1,1)
  194. fenframe1.Size=UDim2.new(0.05, 0, 0.1, 0)
  195. fenframe1.Position=UDim2.new(0.325,0,0.7,0)
  196. fenframe1.Text="Z"
  197. fenframe1.TextWrapped=true
  198. fenframe1.FontSize=7
  199. fenframe1.TextColor3=Color3.new(1,1,1)
  200. local fenframe1a=it("TextLabel")
  201. fenframe1a.Parent=fengui
  202. fenframe1a.BackgroundColor3=Color3.new(200/255,200/255,200/255)
  203. fenframe1a.BackgroundTransparency=0.3
  204. fenframe1a.BorderSizePixel=5
  205. fenframe1a.BorderColor3=Color3.new(1,1,1)
  206. fenframe1a.Size=UDim2.new(0.05, 0, 0.1, 0)
  207. fenframe1a.Position=UDim2.new(0.325,0,0.7,0)
  208. fenframe1a.Text=""
  209. local fenframe2=it("TextLabel")
  210. fenframe2.Parent=fengui
  211. fenframe2.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  212. fenframe2.BackgroundTransparency=0.3
  213. fenframe2.BorderSizePixel=5
  214. fenframe2.BorderColor3=Color3.new(1,1,1)
  215. fenframe2.Size=UDim2.new(0.05, 0, 0.1, 0)
  216. fenframe2.Position=UDim2.new(0.425,0,0.7,0)
  217. fenframe2.Text="X"
  218. fenframe2.TextWrapped=true
  219. fenframe2.FontSize=7
  220. fenframe2.TextColor3=Color3.new(1,1,1)
  221. local fenframe2a=it("TextLabel")
  222. fenframe2a.Parent=fengui
  223. fenframe2a.BackgroundColor3=Color3.new(200/255,200/255,200/255)
  224. fenframe2a.BackgroundTransparency=0.3
  225. fenframe2a.BorderSizePixel=5
  226. fenframe2a.BorderColor3=Color3.new(1,1,1)
  227. fenframe2a.Size=UDim2.new(0.05, 0, 0.1, 0)
  228. fenframe2a.Position=UDim2.new(0.425,0,0.7,0)
  229. fenframe2a.Text=""
  230. local fenframe3=it("TextLabel")
  231. fenframe3.Parent=fengui
  232. fenframe3.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  233. fenframe3.BackgroundTransparency=0.3
  234. fenframe3.BorderSizePixel=5
  235. fenframe3.BorderColor3=Color3.new(1,1,1)
  236. fenframe3.Size=UDim2.new(0.05, 0, 0.1, 0)
  237. fenframe3.Position=UDim2.new(0.525,0,0.7,0)
  238. fenframe3.Text="C"
  239. fenframe3.TextWrapped=true
  240. fenframe3.FontSize=7
  241. fenframe3.TextColor3=Color3.new(1,1,1)
  242. local fenframe3a=it("TextLabel")
  243. fenframe3a.Parent=fengui
  244. fenframe3a.BackgroundColor3=Color3.new(200/255,200/255,200/255)
  245. fenframe3a.BackgroundTransparency=0.3
  246. fenframe3a.BorderSizePixel=5
  247. fenframe3a.BorderColor3=Color3.new(1,1,1)
  248. fenframe3a.Size=UDim2.new(0.05, 0, 0.1, 0)
  249. fenframe3a.Position=UDim2.new(0.525,0,0.7,0)
  250. fenframe3a.Text=""
  251. local fenframe4=it("TextLabel")
  252. fenframe4.Parent=fengui
  253. fenframe4.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  254. fenframe4.BackgroundTransparency=0.3
  255. fenframe4.BorderSizePixel=5
  256. fenframe4.BorderColor3=Color3.new(1,1,1)
  257. fenframe4.Size=UDim2.new(0.05, 0, 0.1, 0)
  258. fenframe4.Position=UDim2.new(0.625,0,0.7,0)
  259. fenframe4.Text="V"
  260. fenframe4.TextWrapped=true
  261. fenframe4.FontSize=7
  262. fenframe4.TextColor3=Color3.new(1,1,1)
  263. local fenframe4a=it("TextLabel")
  264. fenframe4a.Parent=fengui
  265. fenframe4a.BackgroundColor3=Color3.new(200/255,200/255,200/255)
  266. fenframe4a.BackgroundTransparency=0.3
  267. fenframe4a.BorderSizePixel=5
  268. fenframe4a.BorderColor3=Color3.new(1,1,1)
  269. fenframe4a.Size=UDim2.new(0.05, 0, 0.1, 0)
  270. fenframe4a.Position=UDim2.new(0.625,0,0.7,0)
  271. fenframe4a.Text=""
  272.  
  273. fenframe1a.Size=UDim2.new(0,0,0.1,0)
  274. fenframe2a.Size=UDim2.new(0,0,0.1,0)
  275. fenframe3a.Size=UDim2.new(0,0,0.1,0)
  276. fenframe4a.Size=UDim2.new(0,0,0.1,0)
  277.  
  278. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  279. local fp=it("Part")
  280. fp.formFactor=formfactor
  281. fp.Parent=parent
  282. fp.Reflectance=reflectance
  283. fp.Transparency=transparency
  284. fp.CanCollide=false
  285. fp.Locked=true
  286. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  287. fp.Name=name
  288. fp.Size=size
  289. fp.Position=Character.Torso.Position
  290. nooutline(fp)
  291. fp.Material=material
  292. fp:BreakJoints()
  293. return fp
  294. end
  295.  
  296. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  297. local mesh=it(Mesh)
  298. mesh.Parent=part
  299. if Mesh=="SpecialMesh" then
  300. mesh.MeshType=meshtype
  301. mesh.MeshId=meshid
  302. end
  303. mesh.Offset=offset
  304. mesh.Scale=scale
  305. return mesh
  306. end
  307.  
  308. function weld(parent,part0,part1,c0,c1)
  309. local weld=it("Weld")
  310. weld.Parent=parent
  311. weld.Part0=part0
  312. weld.Part1=part1
  313. weld.C0=c0
  314. weld.C1=c1
  315. return weld
  316. end
  317.  
  318.  
  319. local function CFrameFromTopBack(at, top, back)
  320. local right = top:Cross(back)
  321. return CFrame.new(at.x, at.y, at.z,
  322. right.x, top.x, back.x,
  323. right.y, top.y, back.y,
  324. right.z, top.z, back.z)
  325. end
  326.  
  327. function Triangle(a, b, c)
  328. local edg1 = (c-a):Dot((b-a).unit)
  329. local edg2 = (a-b):Dot((c-b).unit)
  330. local edg3 = (b-c):Dot((a-c).unit)
  331. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  332. a, b, c = a, b, c
  333. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  334. a, b, c = b, c, a
  335. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  336. a, b, c = c, a, b
  337. else
  338. assert(false, "unreachable")
  339. end
  340.  
  341. local len1 = (c-a):Dot((b-a).unit)
  342. local len2 = (b-a).magnitude - len1
  343. local width = (a + (b-a).unit*len1 - c).magnitude
  344.  
  345. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  346.  
  347. local list = {}
  348.  
  349. local TrailColor = ("Dark grey")
  350.  
  351. if len1 > 0.01 then
  352. local w1 = Instance.new('WedgePart', m)
  353. game:GetService("Debris"):AddItem(w1,5)
  354. w1.Material = "SmoothPlastic"
  355. w1.FormFactor = 'Custom'
  356. w1.BrickColor = BrickColor.new(TrailColor)
  357. w1.Transparency = 0
  358. w1.Reflectance = 0
  359. w1.Material = "SmoothPlastic"
  360. w1.CanCollide = false
  361. NoOutline(w1)
  362. local sz = Vector3.new(0.2, width, len1)
  363. w1.Size = sz
  364. local sp = Instance.new("SpecialMesh",w1)
  365. sp.MeshType = "Wedge"
  366. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  367. w1:BreakJoints()
  368. w1.Anchored = true
  369. w1.Parent = workspace
  370. w1.Transparency = 0.7
  371. table.insert(Effects,{w1,"Disappear",.01})
  372. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  373. table.insert(list,w1)
  374. end
  375.  
  376. if len2 > 0.01 then
  377. local w2 = Instance.new('WedgePart', m)
  378. game:GetService("Debris"):AddItem(w2,5)
  379. w2.Material = "SmoothPlastic"
  380. w2.FormFactor = 'Custom'
  381. w2.BrickColor = BrickColor.new(TrailColor)
  382. w2.Transparency = 0
  383. w2.Reflectance = 0
  384. w2.Material = "SmoothPlastic"
  385. w2.CanCollide = false
  386. NoOutline(w2)
  387. local sz = Vector3.new(0.2, width, len2)
  388. w2.Size = sz
  389. local sp = Instance.new("SpecialMesh",w2)
  390. sp.MeshType = "Wedge"
  391. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  392. w2:BreakJoints()
  393. w2.Anchored = true
  394. w2.Parent = workspace
  395. w2.Transparency = 0.7
  396. table.insert(Effects,{w2,"Disappear",.01})
  397. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  398. table.insert(list,w2)
  399. end
  400. return unpack(list)
  401. end
  402.  
  403.  
  404. so = function(id,par,vol,pit)
  405. coroutine.resume(coroutine.create(function()
  406. local sou = Instance.new("Sound",par or workspace)
  407. sou.Volume=vol
  408. sou.Pitch=pit or 1
  409. sou.SoundId=id
  410. swait()
  411. sou:play()
  412. game:GetService("Debris"):AddItem(sou,6)
  413. end))
  414. end
  415.  
  416.  
  417. local fengui=it("GuiMain")
  418. fengui.Parent=Player.PlayerGui
  419. fengui.Name="WeaponGUI"
  420. local fenframe=it("Frame")
  421. fenframe.Parent=fengui
  422. fenframe.BackgroundColor3=Color3.new(255,255,255)
  423. fenframe.BackgroundTransparency=1
  424. fenframe.BorderColor3=Color3.new(17,17,17)
  425. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  426. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  427. local fenbarmana1=it("TextLabel")
  428. fenbarmana1.Parent=fenframe
  429. fenbarmana1.Text=" "
  430. fenbarmana1.BackgroundTransparency=0
  431. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  432. fenbarmana1.SizeConstraint="RelativeXY"
  433. fenbarmana1.TextXAlignment="Center"
  434. fenbarmana1.TextYAlignment="Center"
  435. fenbarmana1.Position=UDim2.new(0,0,0,0)
  436. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  437. local fenbarmana2=it("TextLabel")
  438. fenbarmana2.Parent=fenframe
  439. fenbarmana2.Text=" "
  440. fenbarmana2.BackgroundTransparency=0
  441. fenbarmana2.BackgroundColor3=Torso.Color
  442. fenbarmana2.SizeConstraint="RelativeXY"
  443. fenbarmana2.TextXAlignment="Center"
  444. fenbarmana2.TextYAlignment="Center"
  445. fenbarmana2.Position=UDim2.new(0,0,0,0)
  446. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  447. local fenbarmana3=it("TextLabel")
  448. fenbarmana3.Parent=fenframe
  449. fenbarmana3.Text=" "
  450. fenbarmana3.BackgroundTransparency=0
  451. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  452. fenbarmana3.SizeConstraint="RelativeXY"
  453. fenbarmana3.TextXAlignment="Center"
  454. fenbarmana3.TextYAlignment="Center"
  455. fenbarmana3.Position=UDim2.new(0,0,0,0)
  456. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  457. local fenbarmana4=it("TextLabel")
  458. fenbarmana4.Parent=fenframe
  459. fenbarmana4.Text="Energy("..mana..")"
  460. fenbarmana4.BackgroundTransparency=1
  461. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  462. fenbarmana4.SizeConstraint="RelativeXY"
  463. fenbarmana4.TextXAlignment="Center"
  464. fenbarmana4.TextYAlignment="Center"
  465. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  466. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  467. fenbarmana4.FontSize="Size9"
  468. fenbarmana4.TextStrokeTransparency=0
  469. fenbarmana4.TextColor=BrickColor.new("White")
  470.  
  471.  
  472. function clerp(a,b,t)
  473. local qa = {QuaternionFromCFrame(a)}
  474. local qb = {QuaternionFromCFrame(b)}
  475. local ax, ay, az = a.x, a.y, a.z
  476. local bx, by, bz = b.x, b.y, b.z
  477. local _t = 1-t
  478. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  479. end
  480.  
  481. function QuaternionFromCFrame(cf)
  482. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  483. local trace = m00 + m11 + m22
  484. if trace > 0 then
  485. local s = math.sqrt(1 + trace)
  486. local recip = 0.5/s
  487. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  488. else
  489. local i = 0
  490. if m11 > m00 then
  491. i = 1
  492. end
  493. if m22 > (i == 0 and m00 or m11) then
  494. i = 2
  495. end
  496. if i == 0 then
  497. local s = math.sqrt(m00-m11-m22+1)
  498. local recip = 0.5/s
  499. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  500. elseif i == 1 then
  501. local s = math.sqrt(m11-m22-m00+1)
  502. local recip = 0.5/s
  503. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  504. elseif i == 2 then
  505. local s = math.sqrt(m22-m00-m11+1)
  506. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  507. end
  508. end
  509. end
  510.  
  511. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  512. local xs, ys, zs = x + x, y + y, z + z
  513. local wx, wy, wz = w*xs, w*ys, w*zs
  514. local xx = x*xs
  515. local xy = x*ys
  516. local xz = x*zs
  517. local yy = y*ys
  518. local yz = y*zs
  519. local zz = z*zs
  520. 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))
  521. end
  522.  
  523. function QuaternionSlerp(a, b, t)
  524. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  525. local startInterp, finishInterp;
  526. if cosTheta >= 0.0001 then
  527. if (1 - cosTheta) > 0.0001 then
  528. local theta = math.acos(cosTheta)
  529. local invSinTheta = 1/math.sin(theta)
  530. startInterp = math.sin((1-t)*theta)*invSinTheta
  531. finishInterp = math.sin(t*theta)*invSinTheta
  532. else
  533. startInterp = 1-t
  534. finishInterp = t
  535. end
  536. else
  537. if (1+cosTheta) > 0.0001 then
  538. local theta = math.acos(-cosTheta)
  539. local invSinTheta = 1/math.sin(theta)
  540. startInterp = math.sin((t-1)*theta)*invSinTheta
  541. finishInterp = math.sin(t*theta)*invSinTheta
  542. else
  543. startInterp = t-1
  544. finishInterp = t
  545. end
  546. end
  547. 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
  548. end
  549.  
  550. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  551.  
  552.  
  553. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  554. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  555. end
  556.  
  557.  
  558. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  559. if hit.Parent==nil then
  560. return
  561. end
  562. local h=hit.Parent:FindFirstChild("Humanoid")
  563. for _,v in pairs(hit.Parent:children()) do
  564. if v:IsA("Humanoid") then
  565. h=v
  566. end
  567. end
  568. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  569. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  570. end
  571. if hit.Parent.className=="Accessory" then
  572. hit=hit.Parent.Parent:findFirstChild("Head")
  573. end
  574. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  575. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  576. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  577. return
  578. end]]
  579. -- hs(hit,1.2)
  580. local c=Instance.new("ObjectValue")
  581. c.Name="creator"
  582. c.Value=game:service("Players").LocalPlayer
  583. c.Parent=h
  584. game:GetService("Debris"):AddItem(c,.5)
  585. local Damage=math.random(minim,maxim)
  586. -- h:TakeDamage(Damage)
  587. local blocked=false
  588. local block=hit.Parent:findFirstChild("Block")
  589. if block~=nil then
  590. print(block.className)
  591. if block.className=="NumberValue" then
  592. if block.Value>0 then
  593. blocked=true
  594. if decreaseblock==nil then
  595. block.Value=block.Value-1
  596. end
  597. end
  598. end
  599. if block.className=="IntValue" then
  600. if block.Value>0 then
  601. blocked=true
  602. if decreaseblock~=nil then
  603. block.Value=block.Value-1
  604. end
  605. end
  606. end
  607. end
  608. if blocked==false then
  609. -- h:TakeDamage(Damage)
  610. HitHealth=h.Health
  611. h.Health=h.Health-Damage
  612.  
  613. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  614. print("gained spree")
  615. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  616. end
  617. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 then
  618. print("gained kill")
  619. Player.PlayerGui.Kills.Value=Player.PlayerGui.Kills.Value+1
  620. end
  621. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Cannon Pirate" and h.Parent.Name~="Hologram" then
  622. print("gained kill")
  623. script.Parent.Kills.Value=script.Parent.Kills.Value+1
  624. end
  625. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  626. else
  627. h.Health=h.Health-(Damage/2)
  628. 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)
  629. end
  630. if Type=="Knockdown" then
  631. local hum=hit.Parent.Humanoid
  632. hum.PlatformStand=true
  633. coroutine.resume(coroutine.create(function(HHumanoid)
  634. swait(1)
  635. HHumanoid.PlatformStand=false
  636. end),hum)
  637. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  638. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  639. local bodvol=Instance.new("BodyVelocity")
  640. bodvol.velocity=angle*knockback
  641. bodvol.P=5000
  642. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  643. bodvol.Parent=hit
  644. local rl=Instance.new("BodyAngularVelocity")
  645. rl.P=3000
  646. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  647. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  648. rl.Parent=hit
  649. game:GetService("Debris"):AddItem(bodvol,.5)
  650. game:GetService("Debris"):AddItem(rl,.5)
  651. elseif Type=="Normal" then
  652. local vp=Instance.new("BodyVelocity")
  653. vp.P=500
  654. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  655. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  656. if KnockbackType==1 then
  657. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  658. elseif KnockbackType==2 then
  659. vp.velocity=Property.CFrame.lookVector*knockback
  660. end
  661. if knockback>0 then
  662. vp.Parent=hit.Parent.Torso
  663. end
  664. game:GetService("Debris"):AddItem(vp,.5)
  665. elseif Type=="Up" then
  666. local bodyVelocity=Instance.new("BodyVelocity")
  667. bodyVelocity.velocity=vt(0,60,0)
  668. bodyVelocity.P=5000
  669. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  670. bodyVelocity.Parent=hit
  671. game:GetService("Debris"):AddItem(bodyVelocity,1)
  672. local rl=Instance.new("BodyAngularVelocity")
  673. rl.P=3000
  674. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  675. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  676. rl.Parent=hit
  677. game:GetService("Debris"):AddItem(rl,.5)
  678. elseif Type=="Snare" then
  679. local bp=Instance.new("BodyPosition")
  680. bp.P=2000
  681. bp.D=100
  682. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  683. bp.position=hit.Parent.Torso.Position
  684. bp.Parent=hit.Parent.Torso
  685. game:GetService("Debris"):AddItem(bp,1)
  686. elseif Type=="Target" then
  687. local Targetting = false
  688. if Targetting==false then
  689. ZTarget=hit.Parent.Torso
  690. coroutine.resume(coroutine.create(function(Part)
  691. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  692. swait(5)
  693. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  694. end),ZTarget)
  695. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  696. local targetgui=Instance.new("BillboardGui")
  697. targetgui.Parent=ZTarget
  698. targetgui.Size=UDim2.new(10,100,10,100)
  699. local targ=Instance.new("ImageLabel")
  700. targ.Parent=targetgui
  701. targ.BackgroundTransparency=1
  702. targ.Image="rbxassetid://4834067"
  703. targ.Size=UDim2.new(1,0,1,0)
  704. cam.CameraType="Scriptable"
  705. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  706. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  707. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  708. Targetting=true
  709. RocketTarget=ZTarget
  710. for i=1,Property do
  711. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  712. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  713. swait()
  714. end
  715. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  716. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  717. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  718. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  719. end
  720. Targetting=false
  721. RocketTarget=nil
  722. targetgui.Parent=nil
  723. cam.CameraType="Custom"
  724. end
  725. end
  726. local debounce=Instance.new("BoolValue")
  727. debounce.Name="DebounceHit"
  728. debounce.Parent=hit.Parent
  729. debounce.Value=true
  730. game:GetService("Debris"):AddItem(debounce,Delay)
  731. c=Instance.new("ObjectValue")
  732. c.Name="creator"
  733. c.Value=Player
  734. c.Parent=h
  735. game:GetService("Debris"):AddItem(c,.5)
  736. end
  737. end
  738.  
  739.  
  740. function ShowDamage(Pos, Text, Time, Color)
  741. local Rate = (1 / 30)
  742. local Pos = (Pos or Vector3.new(0, 0, 0))
  743. local Text = (Text or "")
  744. local Time = (Time or 2)
  745. local Color = (Color or Color3.new(1, 0, 0))
  746. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  747. EffectPart.Anchored = true
  748. local BillboardGui = Instance.new("BillboardGui")
  749. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  750. BillboardGui.Adornee = EffectPart
  751. local TextLabel = Instance.new("TextLabel")
  752. TextLabel.BackgroundTransparency = 1
  753. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  754. TextLabel.Text = Text
  755. TextLabel.TextColor3 = Color
  756. TextLabel.TextScaled = true
  757. TextLabel.Font = Enum.Font.ArialBold
  758. TextLabel.Parent = BillboardGui
  759. BillboardGui.Parent = EffectPart
  760. game.Debris:AddItem(EffectPart, (Time + 0.1))
  761. EffectPart.Parent = game:GetService("Workspace")
  762. Delay(0, function()
  763. local Frames = (Time / Rate)
  764. for Frame = 1, Frames do
  765. wait(Rate)
  766. local Percent = (Frame / Frames)
  767. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  768. TextLabel.TextTransparency = Percent
  769. end
  770. if EffectPart and EffectPart.Parent then
  771. EffectPart:Destroy()
  772. end
  773. end)
  774. end
  775.  
  776. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Handle",Vector3.new(0.34799999, 0.927999973, 0.34799999))
  777. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.938414574, -0.115570068, -0.00793266296, 0, 0.999999881, 0, 0, 0, -0.999999046, -0.999999046, 0, 0))
  778. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  779. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Toothpaste","Hitbox",Vector3.new(1.08780003, 9, 0.899399996))
  780. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0970962048, -5.57445526, 0.00290489197, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  781. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  782. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.68219757, -5.14984131e-005, 0.999999821, 0, -4.02306711e-007, 0, 0.999991417, 0, 3.57606126e-007, 0, 0.999991179))
  783. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(1.24815989, 0.867680013, 1.23192))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.232000008, 0.34799999))
  785. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -3.59598541, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  786. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.782999933, 1.39431989, 0.778360009))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  788. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -5.68367767, -3.24249268e-005, 0.999999821, 0, -5.36409459e-007, 0, 0.999991417, 0, 4.91710011e-007, 0, 0.999991179))
  789. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 5.19216013, 0.22040002))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  791. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -2.14612579, -7.05718994e-005, 0.999999821, 0, -4.47007636e-007, 0, 0.999991417, 0, 4.0230745e-007, 0, 0.999991179))
  792. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.91523993, 0.867680013, 0.907119989))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  794. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, -5.68369293, -6.91413879e-006, -1.19198532e-007, -0, -0.999991179, 0, 0.999991417, 0, 0.999999821, 0, -1.63901163e-007))
  795. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 5.19216013, 0.22040002))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  797. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.521995544, 9.53674316e-006, 1, 1.7108473e-010, -2.23197063e-007, 1.71018547e-010, -0.999998093, 1.04308484e-007, -2.23197276e-007, -1.04308427e-007, -0.999998093))
  798. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  800. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, 1.50800323, 0, 0.999999821, -2.96461249e-021, -4.91710807e-007, 0, 0.999991417, 0, 4.47011018e-007, 0, 0.999991179))
  801. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.305079967, 0.361919999, 0.591600001))
  802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  803. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -0.754074097, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217239e-010, -0.999993324, 1.04302835e-007, -8.59442116e-006, -1.04302607e-007, -0.999993324))
  804. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  806. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.522018433, 0, 1, 0, 0, 0, 0.999996185, 0, 0, 0, 0.999996185))
  807. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  809. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.91413879e-006, -5.33583832, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  810. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 4.88244009, 0.870000005))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  812. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.75402832, 0, 1, 0, 0, 0, 0.999999046, 7.10543075e-015, 0, -7.10543075e-015, 0.999999046))
  813. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.579999983, 0.34799999))
  815. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -1.10206604, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217336e-010, -0.999993801, 1.04302885e-007, -8.59442571e-006, -1.04302657e-007, -0.999993801))
  816. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.579999983, 0.34799999))
  818. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.10198212, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 7.10537654e-015, 0, -7.10537654e-015, 0.999991417))
  819. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  821. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.91413879e-006, -0.637992859, 0, 1, 4.60644977e-013, -8.94141579e-008, 4.88280857e-013, -0.999998093, 1.04307915e-007, -8.94142431e-008, -1.04307858e-007, -0.999998093))
  822. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  824. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.638046265, 0, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  825. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.579999983, 0.34799999))
  827. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.18641663, -0.249622345, -0.000322341919, 0.500003457, 0.866022587, -3.37136134e-006, 0.866023421, -0.50000298, -8.41949077e-006, -8.97717655e-006, 1.29009675e-006, -0.999999046))
  828. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  830. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.79817963, -4.19616699e-005, 0.999999821, 0, -1.78808278e-007, 0, 0.999991417, 0, 1.3410579e-007, 0, 0.999991179))
  831. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(1.15999997, 0.867680013, 1.15999997))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  833. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, 1.50806427, 2.0980835e-005, 1, 7.81442897e-011, -5.80920357e-007, -7.8144366e-011, 0.999999046, -1.0800461e-012, 5.80920926e-007, 1.08009142e-012, 0.999999046))
  834. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.361919999, 0.579999983))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  836. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.39097595e-006, -3.17259979, -1.90734863e-006, -0.999999821, 1.19231245e-007, 3.65482788e-006, -1.19235082e-007, -0.999991417, -7.90913816e-007, 3.61015532e-006, -7.90914498e-007, 0.999991179))
  837. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1.65067995, 0.579999983))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.231999978, 0.579999983, 0.200000003))
  839. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.174030304, -2.95802307, -0.000284194946, 1, 1.8752648e-010, -8.46019702e-006, 1.88912469e-010, -0.999994755, 1.04302373e-007, -8.46021976e-006, -1.04302146e-007, -0.999994755))
  840. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.231999978, 0.579999983, 0.200000003))
  842. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173971176, -2.95800018, 0.000217437744, -1, -1.87007035e-010, 8.46098919e-006, 1.8662806e-010, -0.999994755, -1.04306039e-007, 8.46101102e-006, -1.04306267e-007, 0.999994755))
  843. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  845. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -1.45005798, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217517e-010, -0.999994755, 1.04302984e-007, -8.59443389e-006, -1.04302757e-007, -0.999994755))
  846. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  847. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799996, 0.579999983, 0.200000003))
  848. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.231966019, -2.37802124, -0.000297546387, 1, 1.87817525e-010, -8.37092921e-006, 1.89194216e-010, -0.999994755, 1.04303041e-007, -8.37095104e-006, -1.04302813e-007, -0.999994755))
  849. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  850. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.463999957, 0.579999983, 0.200000003))
  851. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.290027618, -1.7980423, -0.000324249268, 1, 1.87817525e-010, -8.72850342e-006, 1.89231505e-010, -0.999994755, 1.04302856e-007, -8.72852706e-006, -1.04302629e-007, -0.999994755))
  852. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  853. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  854. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -3.53798676, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  855. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.843319952, 1.90935993, 0.842159986))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(1.68780005, 0.200000003, 1.69939995))
  857. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0029027462, -0.974441528, 0.00290489197, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  858. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.40999973, -0.0220399927, 0.964000046))
  859. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  860. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.39097595e-006, -3.17259979, -1.90734863e-006, -0.999999821, 1.19231245e-007, 3.65482788e-006, -1.19235082e-007, -0.999991417, -7.90913816e-007, 3.61015532e-006, -7.90914498e-007, 0.999991179))
  861. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.37816, 1.65067995, 0.58348))
  862. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799996, 0.579999983, 0.200000003))
  863. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.232032299, -2.37804413, -0.000301361084, 1, 1.87817525e-010, -8.32623846e-006, 1.89189539e-010, -0.999994755, 1.04303076e-007, -8.32626029e-006, -1.04302849e-007, -0.999994755))
  864. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  865. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.463999957, 0.579999983, 0.200000003))
  866. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.289971113, -1.79801941, 0.00030708313, -1, -1.87825297e-010, 8.29646706e-006, 1.87463448e-010, -0.999994755, -1.04311042e-007, 8.29648798e-006, -1.04311269e-007, 0.999994755))
  867. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  868. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  869. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.62643528, -0.951271057, -0.000335693359, 1, -3.96298265e-006, -8.49380376e-006, -3.9629922e-006, -0.999999046, -7.02569139e-007, -8.49380922e-006, 7.0260279e-007, -0.999999046))
  870. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  871. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.232000008, 0.347999901, 0.34799999))
  872. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626426697, -0.603294373, -0.00036239624, 1, -3.9629831e-006, -8.49380558e-006, -3.96299265e-006, -0.999999046, -7.02569196e-007, -8.49381104e-006, 7.02602847e-007, -0.999999046))
  873. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  874. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.812000036, 0.34799999))
  875. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626428843, -0.0233230591, -0.000335693359, 1, -3.9633087e-006, -8.49454591e-006, -3.96331825e-006, -0.999999046, -7.02571128e-007, -8.49455137e-006, 7.0260478e-007, -0.999999046))
  876. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  877. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  878. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626432657, 0.904624939, -0.0003490448, 1, -3.96292535e-006, -8.4936737e-006, -3.9629349e-006, -0.999999046, -7.02568741e-007, -8.49367916e-006, 7.02602392e-007, -0.999999046))
  879. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  880. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.232000008, 0.232000008))
  881. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626425028, -1.00920105, -0.000328063965, 1, -3.94804647e-006, -8.76134891e-006, -3.94805465e-006, -0.999999046, -4.96231166e-007, -8.76135528e-006, 4.96265784e-007, -0.999999046))
  882. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  883. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  884. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626425743, -0.835296631, -0.000347137451, 1, -3.9628535e-006, -8.49350818e-006, -3.96286305e-006, -0.999999046, -7.025684e-007, -8.49351363e-006, 7.02602051e-007, -0.999999046))
  885. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  886. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.232000008, 0.347999901, 0.34799999))
  887. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626431227, 0.556632996, -0.000364303589, 1, -3.9629831e-006, -8.49380649e-006, -3.96299265e-006, -0.999999046, -7.02569196e-007, -8.49381195e-006, 7.02602847e-007, -0.999999046))
  888. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  889. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  890. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626422167, 0.788658142, -0.0003490448, 1, -3.96295445e-006, -8.49373919e-006, -3.962964e-006, -0.999999046, -7.02568968e-007, -8.49374464e-006, 7.0260262e-007, -0.999999046))
  891. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  892. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.231999993))
  893. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -1.7980423, 0.637979746, -6.71722273e-006, -6.84618513e-008, -0.999994755, -4.47188995e-006, -0.999994755, 6.84921204e-008, -1, 4.47186721e-006, 6.71721045e-006))
  894. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  895. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.463999987))
  896. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000324249268, 1.45005798, 0.290027618, -7.92391802e-006, 4.49062575e-012, -0.999994755, -1.88321053e-010, 0.999994755, 4.26325251e-012, 1, 1.87817512e-010, -7.92389801e-006))
  897. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 1))
  898. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.463999987))
  899. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.24249268e-005, 1.45010376, 0.290006161, -8.94506798e-008, -2.06058938e-013, 0.999991179, 1.5543988e-014, 0.999991417, 2.06058884e-013, -0.999999821, 1.55438796e-014, -4.47463009e-008))
  900. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 1))
  901. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  902. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000303268433, -2.14605713, 0.463969707, -1.46147377e-005, 2.92297784e-007, -0.999994755, 5.21027971e-007, -0.999994755, -2.92305174e-007, -1, -5.21028994e-007, 1.4614684e-005))
  903. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  904. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  905. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000150680542, -3.42198181, 0.231970549, -1.48875824e-006, -6.99275446e-008, -0.999994755, 3.68025803e-006, -0.999994755, 6.99223008e-008, -1, -3.68023825e-006, 1.48877371e-006))
  906. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  907. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  908. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000110626221, -3.42199707, 0.2320292, -3.17398462e-006, 2.9802635e-008, 0.999994755, 3.96858286e-006, -0.999994755, 2.98154603e-008, 1, 3.96856194e-006, 3.1739462e-006))
  909. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  910. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.200000003))
  911. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000276565552, -2.95803833, 0.347976208, -8.62883098e-008, 2.9804923e-008, -0.999994755, -3.96778796e-006, -0.999994755, -2.98043332e-008, -1, 3.96776795e-006, 8.63109619e-008))
  912. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  913. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.200000003))
  914. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -2.95804596, 0.348043203, 5.35680556e-007, 2.97995939e-008, 0.999994755, 3.96787027e-006, -0.999994755, 2.97976968e-008, 1, 3.96784935e-006, -5.35700053e-007))
  915. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  916. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  917. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -2.14606476, 0.464031935, 1.08596987e-005, -3.78481161e-007, 0.999999046, 7.11488326e-007, -0.999999046, -3.78488892e-007, 1, 7.11491737e-007, -1.08596887e-005))
  918. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  919. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.232000008))
  920. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00023651123, -1.79804993, 0.638024807, 5.36701737e-006, 1.93710392e-007, 0.999994755, -4.97899055e-006, -0.999994755, 1.9373735e-007, 1, -4.97896599e-006, -5.36701009e-006))
  921. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  922.  
  923. function attackone()
  924. attack=true
  925. for i=0,1,0.1 do
  926. swait()
  927. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  928. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  929. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(10)), 0.3)
  930. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  931. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  932. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  933. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(50),math.rad(-10),math.rad(0)),.3)
  934. end
  935. so("http://roblox.com/asset/?id=189505639",Hitbox,1,1.1)
  936. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,7,13,math.random(5,10),"Normal",RootPart,.2,1) end)
  937. for i=0,1,0.1 do
  938. swait()
  939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  941. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(10)), 0.3)
  942. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  943. RH.C0=clerp(RH.C0,cf(1,-1,-0.2)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  944. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(0),math.rad(-90),math.rad(-15))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  945. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(10),math.rad(0)),.3)
  946. --Torso.Velocity=Head.CFrame.lookVector*50
  947. end
  948. attack=false
  949. con:disconnect()
  950. end
  951.  
  952. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  953. local prt=part(3,effectz,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  954. prt.Anchored=true
  955. prt.CFrame=cframe
  956. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  957. --game:GetService("Debris"):AddItem(prt,2)
  958. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  959. for i=0,1,delay do
  960. swait()
  961. Part.Transparency=i
  962. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  963. end
  964. Part.Parent=nil
  965. end),prt,msh,(math.random(0,1)+math.random())/5)
  966. end
  967. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  968. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  969. prt.Anchored=true
  970. prt.CFrame=cframe
  971. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  972. --game:GetService("Debris"):AddItem(prt,2)
  973. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  974. end
  975.  
  976. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  977. local prt=part(3,effectz,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  978. prt.Anchored=true
  979. prt.CFrame=cframe
  980. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  981. game:GetService("Debris"):AddItem(prt,5)
  982. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  983. end
  984.  
  985. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  986. for _,c in pairs(workspace:children()) do
  987. local hum=c:findFirstChild("Humanoid")
  988. if hum~=nil then
  989. local head=c:findFirstChild("Torso")
  990. if head~=nil then
  991. local targ=head.Position-Part.Position
  992. local mag=targ.magnitude
  993. if mag<=magni and c.Name~=Player.Name then
  994. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  995. end
  996. end
  997. end
  998. end
  999. end
  1000.  
  1001. function PlaySound(id, pitch, parent, volume)
  1002. if volume == nil then volume=tonumber(1) end
  1003. local epicsound = Instance.new("Sound")
  1004. epicsound.Name = "Epicosound"
  1005. epicsound.SoundId = "rbxassetid://"..id
  1006. epicsound.Volume = volume
  1007. epicsound.Pitch = pitch
  1008. epicsound.Looped = false
  1009. epicsound.Parent = parent
  1010. wait()
  1011. epicsound:Play()
  1012. game:service'Debris':AddItem(epicsound, 8)
  1013. end
  1014.  
  1015. Shots = {263609809, 263609836, 263609864, 263609874, 263609898}
  1016.  
  1017. Shot = function(part)
  1018. local shot=math.random(1, #Shots)
  1019. PlaySound(Shots[shot], 1, part)
  1020. end
  1021.  
  1022. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1023. local prt=part(3,effectz,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1024. prt.Anchored=true
  1025. prt.CFrame=cframe
  1026. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1027. game:GetService("Debris"):AddItem(prt,5)
  1028. coroutine.resume(coroutine.create(function(Part,Mesh)
  1029. for i=0,1,delay do
  1030. wait()
  1031. Part.CFrame=Part.CFrame
  1032. Part.Transparency=i
  1033. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1034. end
  1035. Part.Parent=nil
  1036. end),prt,msh)
  1037. end
  1038.  
  1039.  
  1040. function CelestialStorm()
  1041. local n=2
  1042. attack = true
  1043. for i=0,1,0.1 do
  1044. swait()
  1045. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1046. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(0)),.3)
  1047. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  1048. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(-20)), 0.3)
  1049. 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)
  1050. 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)
  1051. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1052. end
  1053. for i=1,5 do
  1054. wait(.05)
  1055. MagicBlock(BrickColor.new("Toothpaste"),LeftArm.CFrame*cf(0,-1,0),5,5,5,2,2,2,0.1)
  1056. local orb=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("Toothpaste"),"Orb",vt())
  1057. orb.Anchored=true
  1058. Shot(orb)
  1059. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  1060. orb.CFrame=cf(Player:GetMouse().Hit.p+vt(math.random(-10,10),math.random(50,100),math.random(-10,10)))
  1061. MagicCircle(BrickColor.new("Toothpaste"),orb.CFrame,10,10,10,1,1,1,0.1)
  1062. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1063. wait(1)
  1064. Part.Parent=nil
  1065. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  1066. local TheHit=Part.Position+vt(0,-1,0)
  1067. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  1068. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  1069. local mag=(Part.Position-pos).magnitude
  1070. MagicCylinder(BrickColor.new("Toothpaste"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  1071. MagicBlock(BrickColor.new("White"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  1072. MagicBlock(BrickColor.new("Toothpaste"),cf(pos),15,15,15,6,6,6,0.1)
  1073. MagicRing(BrickColor.new("Toothpaste"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  1074. local ref=part(3,effectz,"SmoothPlastic",0,1,BrickColor.new("Toothpaste"),"Effect",vt())
  1075. ref.CFrame=cf(pos)
  1076. so("http://roblox.com/asset/?id=231917788",ref,1,1.4)
  1077. coroutine.resume(coroutine.create(function(Part)
  1078. wait(1)
  1079. Part.Parent=nil
  1080. end),ref)
  1081. MagniDamage(ref,ref,15,5,10,0,"Normal",RootPart)
  1082. if hit~=nil then
  1083. Damagefunc(ref,hit,20,40,1,"Knockdown",RootPart,0)
  1084. end
  1085. end),orb,omsh)
  1086. end
  1087. wait(0.5)
  1088. local n=2
  1089. for i=0,1,0.1 do
  1090. wait()
  1091. --[[Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  1092. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n)
  1093. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1094. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  1095. LW.C1=cf(0,0.5,0)*euler(0,0,0)]]
  1096. n=n-0.1
  1097. end
  1098. attack = false
  1099. end
  1100.  
  1101. function Charge()
  1102. attack = true
  1103. hitdebounce=false
  1104. Humanoid.WalkSpeed=0
  1105. local con = Hitbox.Touched:connect(function(hit)
  1106. local ht = hit.Parent
  1107. local hum1=ht:FindFirstChild('Humanoid')
  1108. if hum1 ~= nil then
  1109. if hitdebounce == false then
  1110. hitdebounce = true
  1111. for i = 0,1,0.1 do
  1112. swait()
  1113. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1114. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1115. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  1116. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1117. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1118. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1119. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),.3)
  1120. end
  1121. MagniDamage(hum1.Torso,hum1.Torso,5,8,13,10,"Knockdown",RootPart)
  1122. MagicBlock(BrickColor.new("Toothpaste"),hum1.Parent.Torso.CFrame,35,35,35,.5,.5,.5,.06)
  1123. so("http://roblox.com/asset/?id=233856146",hum1.Parent.Torso,1,.8)
  1124. so("http://roblox.com/asset/?id=199145264",Torso,1,1)
  1125. so("http://roblox.com/asset/?id=200632561",Torso,1,1.1)
  1126. MagicBlock(BrickColor.new("White"),hum1.Parent.Torso.CFrame,35,35,35,.5,.5,.5,.06)
  1127. MagicCircle(BrickColor.new("White"),hum1.Parent.Torso.CFrame,25,25,25,5,5,5,.06)
  1128. RootPart.CFrame=RootPart.CFrame*cf(0,0,-20)
  1129. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1130. so("rbxassetid://199145913",Hitbox,1,1)
  1131. for i = 0,1,0.1 do
  1132. swait()
  1133. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1134. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(60)),.3)
  1135. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(0), math.rad(-10), math.rad(70)), 0.3)
  1136. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  1137. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1138. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1139. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(20),math.rad(0),math.rad(60)),.3)
  1140. end
  1141. con:disconnect()
  1142. end
  1143. end
  1144. end)
  1145. coroutine.resume(coroutine.create(function()
  1146. for i = 0,1,.1 do
  1147. swait()
  1148. MagicRing(BrickColor.new("Toothpaste"),handle.CFrame*euler(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))),1,.5,1,.5,.5,.5,.06)
  1149. MagicBlock(BrickColor.new("White"),handle.CFrame,1,1,1,2,2,2,.08)
  1150. MagicBlock(BrickColor.new("Toothpaste"),handle.CFrame,2,2,2,2,2,2,.06)
  1151. end
  1152. end))
  1153. for i = 0,1,0.05 do
  1154. swait()
  1155. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1156. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1157. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1158. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1159. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1160. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1161. handleweld.C0=clerp(handleweld.C0,cf(0,3,2)*angles(math.rad(-90),math.rad(0),math.rad(-90)),.3)
  1162. end
  1163. MagicRing(BrickColor.new("Toothpaste"),Hitbox.CFrame*euler(math.rad(90),math.rad(0),math.rad(0)),2,1,2,1,1,1,.06)
  1164. coroutine.resume(coroutine.create(function()
  1165. for i = 0,1,.5 do
  1166. swait()
  1167. so("http://roblox.com/asset/?id=199145264",Torso,1,.7)
  1168. so("http://roblox.com/asset/?id=200632561",Torso,1,.8)
  1169. MagicRing(BrickColor.new("Toothpaste"),Hitbox.CFrame*euler(math.rad(90),math.rad(0),math.rad(0)),1,.5,1,.5,.5,.5,.06)
  1170. end
  1171. end))
  1172. for i = 0,1,0.05 do
  1173. swait()
  1174. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1175. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1176. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1177. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1178. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1179. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1180. handleweld.C0=clerp(handleweld.C0,cf(0,-15,2)*angles(math.rad(-90),math.rad(0),math.rad(-90)),.3)
  1181. end
  1182. so("rbxassetid://199145913",Hitbox,1,1)
  1183. attack = false
  1184. hitdebounce=false
  1185. Humanoid.WalkSpeed=16
  1186. con:disconnect()
  1187. end
  1188.  
  1189. function SelfCharge()
  1190. attack = true
  1191. hitdebounce=false
  1192. local con = Hitbox.Touched:connect(function(hit)
  1193. local ht = hit.Parent
  1194. local hum1=ht:FindFirstChild('Humanoid')
  1195. if hum1 ~= nil then
  1196. if hitdebounce == false then
  1197. hitdebounce = true
  1198. MagicRing(BrickColor.new("Toothpaste"),hum1.Torso.CFrame*euler(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))),5,.5,5,.5,.5,.5,.06)
  1199. MagicBlock(BrickColor.new("White"),hum1.Torso.CFrame,1,1,1,2,2,2,.08)
  1200. so("http://roblox.com/asset/?id=199145264",Torso,1,1.1)
  1201. so("http://roblox.com/asset/?id=200632561",Torso,1,1)
  1202. MagicBlock(BrickColor.new("Toothpaste"),hum1.Torso.CFrame,2,2,2,2,2,2,.06)
  1203. MagniDamage(hum1.Torso,hum1.Torso,5,10,20,30,"Knockdown",RootPart)
  1204. end
  1205. end
  1206. end)
  1207. coroutine.resume(coroutine.create(function()
  1208. for i = 0,1,.1 do
  1209. swait()
  1210. MagicRing(BrickColor.new("Toothpaste"),handle.CFrame*euler(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))),1,.5,1,.5,.5,.5,.06)
  1211. MagicBlock(BrickColor.new("White"),handle.CFrame,1,1,1,2,2,2,.08)
  1212. MagicBlock(BrickColor.new("Toothpaste"),handle.CFrame,2,2,2,2,2,2,.06)
  1213. end
  1214. end))
  1215. for i = 0,1,0.05 do
  1216. swait()
  1217. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1218. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1219. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1220. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1221. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1222. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1223. handleweld.C0=clerp(handleweld.C0,cf(1,-3,0.5)*angles(math.rad(-90),math.rad(0),math.rad(-90)),.3)
  1224. end
  1225. MagicRing(BrickColor.new("Toothpaste"),Hitbox.CFrame*euler(math.rad(90),math.rad(0),math.rad(0)),2,1,2,1,1,1,.06)
  1226. coroutine.resume(coroutine.create(function()
  1227. for i = 0,1,.5 do
  1228. swait()
  1229. MagicRing(BrickColor.new("Toothpaste"),Hitbox.CFrame*euler(math.rad(90),math.rad(0),math.rad(0)),1,.5,1,.5,.5,.5,.06)
  1230. end
  1231. end))
  1232. so("http://roblox.com/asset/?id=199145264",Torso,1,.7)
  1233. so("http://roblox.com/asset/?id=200632561",Torso,1,.8)
  1234. for i = 0,1,0.05 do
  1235. swait()
  1236. Torso.Velocity=RootPart.CFrame.lookVector*100
  1237. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1238. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1239. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1240. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1241. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1242. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1243. handleweld.C0=clerp(handleweld.C0,cf(1,-3,0.5)*angles(math.rad(-90),math.rad(0),math.rad(-90)),.3)
  1244. end
  1245. so("rbxassetid://199145913",Hitbox,1,1)
  1246. attack = false
  1247. hitdebounce=false
  1248. con:disconnect()
  1249. end
  1250.  
  1251.  
  1252.  
  1253.  
  1254. function attacktwo()
  1255. attack = true
  1256. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,7,13,math.random(5,10),"Normal",RootPart,.2,1) end)
  1257. for i = 0,1,0.1 do
  1258. swait()
  1259. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1260. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1261. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  1262. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  1263. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1264. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1265. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),.3)
  1266. end
  1267. so("rbxassetid://199145913",Hitbox,1,1)
  1268. for i = 0,1,0.1 do
  1269. swait()
  1270. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1271. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(60)),.3)
  1272. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(0), math.rad(-10), math.rad(70)), 0.3)
  1273. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  1274. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1275. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1276. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(20),math.rad(0),math.rad(60)),.3)
  1277. end
  1278. attack = false
  1279. con:disconnect()
  1280. end
  1281.  
  1282.  
  1283. function Celestia()
  1284. attack = true
  1285. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  1286. for i = 0,1,0.05 do
  1287. swait()
  1288. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1289. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  1290. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(0), math.rad(130)), 0.3)
  1291. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  1292. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1293. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1294. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1295. end
  1296. so("rbxassetid://199145913",Hitbox,1,1)
  1297. MagicRing(BrickColor.new("Toothpaste"),RootPart.CFrame*angles(math.rad(90),math.rad(0),math.rad(0))+vt(0,-3,0),25,25,1,5,5,0,0.07)
  1298. MagicRing(BrickColor.new("Toothpaste"),RootPart.CFrame*angles(math.rad(90),math.rad(0),math.rad(0))+vt(0,-3,0),15,15,1,1,1,10,0.07)
  1299. MagicRing(BrickColor.new("Toothpaste"),RootPart.CFrame*angles(math.rad(90),math.rad(0),math.rad(0))+vt(0,-3,0),5,5,500,.5,.5,100,0.07)
  1300. MagniDamage(Torso,Torso,30,20,30,50,"Knockdown",RootPart)
  1301. MagicCircle(BrickColor.new("Toothpaste"),RootPart.CFrame+vt(0,-3,0),150,150,150,10,10,10,0.1)
  1302. so("http://roblox.com/asset/?id=191395725",Hitbox,1,.666)
  1303. MagicCircle(BrickColor.new("Toothpaste"),RootPart.CFrame+vt(0,-3,0),70,300,70,10,50,10,0.1)
  1304. MagicCircle(BrickColor.new("Toothpaste"),RootPart.CFrame+vt(0,-3,0),150,1,150,5,0,5,0.1)
  1305. for i = 0,1,0.1 do
  1306. swait()
  1307. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1308. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(-60)),.3)
  1309. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1310. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  1311. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1312. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1313. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1314. end
  1315. attack = false
  1316. con:disconnect()
  1317. end
  1318.  
  1319. function attackthree()
  1320. attack = true
  1321. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,7,13,math.random(5,10),"Normal",RootPart,.2,1) end)
  1322. so("http://roblox.com/asset/?id=153092348",Torso,1,.8)
  1323. for i = 0,1,0.1 do
  1324. swait()
  1325. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(-80)),.3)
  1327. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(130), math.rad(80)), 0.3)
  1328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-20)), 0.3)
  1329. 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)
  1330. 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)
  1331. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1332. --Torso.Velocity=Head.CFrame.lookVector*100
  1333. end
  1334. so("http://roblox.com/asset/?id=199145327",Torso,1,.9)
  1335. for i = 0,1,0.1 do
  1336. swait()
  1337. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),-7*i),.3)
  1338. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1339. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  1340. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-40)), 0.3)
  1341. 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)
  1342. 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)
  1343. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1344. end
  1345. attack = false
  1346. con:disconnect()
  1347. end
  1348. function ob1u()
  1349.  
  1350. end
  1351. function ob1d()
  1352. if attack==false then
  1353. if attacktype==1 then
  1354. attack=true
  1355. attacktype=2
  1356. attackone()
  1357. elseif attacktype==2 then
  1358. attack=true
  1359. attacktype=3
  1360. attacktwo()
  1361. elseif attacktype==3 then
  1362. attack=true
  1363. attacktype=1
  1364. attackthree()
  1365. end
  1366. end
  1367. end
  1368.  
  1369. function key(k)
  1370. k=k:lower()
  1371. if k=='z' and attack==false and mana>=10 and zenabled==true then
  1372. zenabled=false
  1373. coroutine.resume(coroutine.create(function()
  1374. for i=1,0,-0.01 do
  1375. swait()
  1376. fenframe1a.Size=UDim2.new(0.05*i,0,0.1,0)
  1377. end
  1378. zenabled=true
  1379. fenframe1a.Size=UDim2.new(0,0,0.1,0)
  1380. end))
  1381. mana=mana-10
  1382. Charge()
  1383. elseif k=='x' and attack==false and mana>=15 and xenabled==true then
  1384. xenabled=false
  1385.  
  1386. coroutine.resume(coroutine.create(function()
  1387. for i=1,0,-0.01 do
  1388. swait()
  1389. fenframe2a.Size=UDim2.new(0.05*i,0,0.1,0)
  1390. end
  1391. xenabled=true
  1392. fenframe2a.Size=UDim2.new(0,0,0.1,0)
  1393. end))
  1394. mana=mana-15
  1395. SelfCharge()
  1396. elseif k=='c' and attack==false and mana>=25 and cenabled==true then
  1397. cenabled=false
  1398.  
  1399. coroutine.resume(coroutine.create(function()
  1400. for i=1,0,-0.005 do
  1401. swait()
  1402. fenframe3a.Size=UDim2.new(0.05*i,0,0.1,0)
  1403. end
  1404. cenabled=true
  1405. fenframe3a.Size=UDim2.new(0,0,0.1,0)
  1406. end))
  1407. mana=mana-35
  1408. CelestialStorm()
  1409. elseif k=='v' and attack==false and mana>=40 and venabled==true then
  1410. venabled=false
  1411. coroutine.resume(coroutine.create(function()
  1412. for i=1,0,-0.0025 do
  1413. swait()
  1414. fenframe4a.Size=UDim2.new(0.05*i,0,0.1,0)
  1415. end
  1416. venabled=true
  1417. fenframe4a.Size=UDim2.new(0,0,0.1,0)
  1418. end))
  1419. mana=mana-40
  1420. Celestia()
  1421. end
  1422. end
  1423.  
  1424.  
  1425. Bin=script.Parent
  1426.  
  1427. function ds(mouse)
  1428. end
  1429.  
  1430. function s(mouse)
  1431. print("Selected")
  1432. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1433. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1434. mouse.KeyDown:connect(key)
  1435.  
  1436. end
  1437.  
  1438. Bin.Selected:connect(s)
  1439. Bin.Deselected:connect(ds)
  1440.  
  1441.  
  1442. local sine = 0
  1443. local change = 1
  1444. local val = 0
  1445. local donum=0
  1446. local mananum=0
  1447.  
  1448. while true do
  1449. pwait()
  1450. sine = sine + change
  1451. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1452. local velderp=RootPart.Velocity.y
  1453. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1454. if equipped==true or equipped==false then
  1455. if attack==false then
  1456. idle=idle+1
  1457. else
  1458. idle=0
  1459. end
  1460. if idle>=500 then
  1461. if attack==false then
  1462. end
  1463. end
  1464. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1465. Anim="Jump"
  1466. if attack==false then
  1467. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1468. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1469. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1470. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1471. 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)
  1472. 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)
  1473. --FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1474. end
  1475. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1476. Anim="Fall"
  1477. if attack==false then
  1478. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1479. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1480. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(50)), 0.3)
  1481. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
  1482. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1483. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1484. end
  1485. elseif torvel<1 and hitfloor~=nil then
  1486. Anim="Idle"
  1487. if attack==false then
  1488. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  1489. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-2),math.rad(-2),math.rad(30)),.3)
  1490. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  1491. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-20)), 0.3)
  1492. 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)
  1493. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1494. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1495. end
  1496. elseif torvel>2 and hitfloor~=nil then
  1497. Anim="Walk"
  1498. if attack==false then
  1499. change=3
  1500. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1501. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1502. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1503. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15)*math.cos(sine/13), math.rad(0), math.rad(-10)), 0.3)
  1504. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1505. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1506. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1507. end
  1508. end
  1509. end
  1510. if #Effects>0 then
  1511. for e=1,#Effects do
  1512. if Effects[e]~=nil then
  1513. local Thing=Effects[e]
  1514. if Thing~=nil then
  1515. local Part=Thing[1]
  1516. local Mode=Thing[2]
  1517. local Delay=Thing[3]
  1518. local IncX=Thing[4]
  1519. local IncY=Thing[5]
  1520. local IncZ=Thing[6]
  1521. if Thing[1].Transparency<=1 then
  1522. if Thing[2]=="Block1" then
  1523. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1524. Mesh=Thing[1].Mesh
  1525. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1526. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1527. elseif Thing[2]=="Cylinder" then
  1528. Mesh=Thing[1].Mesh
  1529. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1530. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1531. elseif Thing[2]=="Blood" then
  1532. Mesh=Thing[7]
  1533. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1534. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1535. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1536. elseif Thing[2]=="Elec" then
  1537. Mesh=Thing[1].Mesh
  1538. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1539. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1540. elseif Thing[2]=="Disappear" then
  1541. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1542. end
  1543. else
  1544. Part.Parent=nil
  1545. table.remove(Effects,e)
  1546. end
  1547. end
  1548. end
  1549. end
  1550. end
  1551. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1552. fenbarmana4.Text="[Purity] <{[ "..mana.." ]}> [Purity]"
  1553. if mana>=100 then
  1554. mana=100
  1555. else
  1556. if mananum<=8 then
  1557. mananum=mananum+1
  1558. else
  1559. mananum=0
  1560. mana=mana+1
  1561. end
  1562. end
  1563. end
Add Comment
Please, Sign In to add comment