Advertisement
memberhero

Fixed Script 2

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