End of Last


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:16 a.m.

FORMAT: Lua

SIZE: 54.7 kB

HITS: 279

  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. LeftArm=Character["Left Arm"]
  9. LeftLeg=Character["Left Leg"]
  10. RightArm=Character["Right Arm"]
  11. RightLeg=Character["Right Leg"]
  12. LS=Torso["Left Shoulder"]
  13. LH=Torso["Left Hip"]
  14. RS=Torso["Right Shoulder"]
  15. RH=Torso["Right Hip"]
  16. Face = Head.face
  17. Neck=Torso.Neck
  18. it=Instance.new
  19. attacktype=1
  20. vt=Vector3.new
  21. cf=CFrame.new
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. cloaked=false
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. deb=false
  37. equipped=true
  38. hand=false
  39. MMouse=nil
  40. combo=0
  41. mana=0
  42. trispeed=.2
  43. attackmode='none'
  44. local idle=0
  45. local Anim="Idle"
  46. local Effects={}
  47. local gun=false
  48. local shoot=false
  49. player=nil
  50. mana=0
  51. cam = workspace.CurrentCamera
  52. ZTarget = nil
  53. RocketTarget = nil
  54. local m = Instance.new("Model",Character)
  55. m.Name = "WeaponModel"
  56. mouse=Player:GetMouse()
  57. --save shoulders
  58. RSH, LSH=nil, nil
  59. --welds
  60. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  61. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  62. LH=Torso["Left Hip"]
  63. RH=Torso["Right Hip"]
  64. TorsoColor=Torso.BrickColor
  65. function NoOutline(Part)
  66. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  67. end
  68. player=Player
  69. ch=Character
  70. RSH=ch.Torso["Right Shoulder"]
  71. LSH=ch.Torso["Left Shoulder"]
  72. --
  73. RSH.Parent=nil
  74. LSH.Parent=nil
  75. --
  76. RW.Name="Right Shoulder"
  77. RW.Part0=ch.Torso
  78. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  79. RW.C1=cf(0, 0.5, 0)
  80. RW.Part1=ch["Right Arm"]
  81. RW.Parent=ch.Torso
  82. --
  83. LW.Name="Left Shoulder"
  84. LW.Part0=ch.Torso
  85. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  86. LW.C1=cf(0, 0.5, 0)
  87. LW.Part1=ch["Left Arm"]
  88. LW.Parent=ch.Torso
  89. function swait(num)
  90. if num==0 or num==nil then
  91. game:service'RunService'.Heartbeat:wait(0)
  92. else
  93. for i=0,num do
  94. game:service'RunService'.Heartbeat:wait(0)
  95. end
  96. end
  97. end
  98. function nooutline(part)
  99. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  100. end
  101. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  102. local fp=it("Part")
  103. fp.formFactor=formfactor
  104. fp.Parent=parent
  105. fp.Reflectance=reflectance
  106. fp.Transparency=transparency
  107. fp.CanCollide=false
  108. fp.Locked=true
  109. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  110. fp.Name=name
  111. fp.Size=size
  112. fp.Position=Character.Torso.Position
  113. nooutline(fp)
  114. fp.Material=material
  115. fp:BreakJoints()
  116. return fp
  117. end
  118. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  119. local mesh=it(Mesh)
  120. mesh.Parent=part
  121. if Mesh=="SpecialMesh" then
  122. mesh.MeshType=meshtype
  123. mesh.MeshId=meshid
  124. end
  125. mesh.Offset=offset
  126. mesh.Scale=scale
  127. return mesh
  128. end
  129. function weld(parent,part0,part1,c0,c1)
  130. local weld=it("Weld")
  131. weld.Parent=parent
  132. weld.Part0=part0
  133. weld.Part1=part1
  134. weld.C0=c0
  135. weld.C1=c1
  136. return weld
  137. end
  138. local function CFrameFromTopBack(at, top, back)
  139. local right = top:Cross(back)
  140. return CFrame.new(at.x, at.y, at.z,
  141. right.x, top.x, back.x,
  142. right.y, top.y, back.y,
  143. right.z, top.z, back.z)
  144. end
  145. function Triangle(a, b, c)
  146. local edg1 = (c-a):Dot((b-a).unit)
  147. local edg2 = (a-b):Dot((c-b).unit)
  148. local edg3 = (b-c):Dot((a-c).unit)
  149. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  150. a, b, c = a, b, c
  151. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  152. a, b, c = b, c, a
  153. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  154. a, b, c = c, a, b
  155. else
  156. assert(false, "unreachable")
  157. end
  158. local len1 = (c-a):Dot((b-a).unit)
  159. local len2 = (b-a).magnitude - len1
  160. local width = (a + (b-a).unit*len1 - c).magnitude
  161. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  162. local list = {}
  163. local TrailColor = ("Gold")
  164. if len1 > 0.01 then
  165. local w1 = Instance.new('WedgePart', m)
  166. game:GetService("Debris"):AddItem(w1,5)
  167. w1.Material = "SmoothPlastic"
  168. w1.FormFactor = 'Custom'
  169. w1.BrickColor = BrickColor.new(TrailColor)
  170. w1.Transparency = 0
  171. w1.Reflectance = 0
  172. w1.Material = "SmoothPlastic"
  173. w1.CanCollide = false
  174. NoOutline(w1)
  175. local sz = Vector3.new(0.2, width, len1)
  176. w1.Size = sz
  177. local sp = Instance.new("SpecialMesh",w1)
  178. sp.MeshType = "Wedge"
  179. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  180. w1:BreakJoints()
  181. w1.Anchored = true
  182. w1.Parent = workspace
  183. w1.Transparency = 0.7
  184. table.insert(Effects,{w1,"Disappear",.01})
  185. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  186. table.insert(list,w1)
  187. end
  188. if len2 > 0.01 then
  189. local w2 = Instance.new('WedgePart', m)
  190. game:GetService("Debris"):AddItem(w2,5)
  191. w2.Material = "SmoothPlastic"
  192. w2.FormFactor = 'Custom'
  193. w2.BrickColor = BrickColor.new(TrailColor)
  194. w2.Transparency = 0
  195. w2.Reflectance = 0
  196. w2.Material = "SmoothPlastic"
  197. w2.CanCollide = false
  198. NoOutline(w2)
  199. local sz = Vector3.new(0.2, width, len2)
  200. w2.Size = sz
  201. local sp = Instance.new("SpecialMesh",w2)
  202. sp.MeshType = "Wedge"
  203. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  204. w2:BreakJoints()
  205. w2.Anchored = true
  206. w2.Parent = workspace
  207. w2.Transparency = 0.7
  208. table.insert(Effects,{w2,"Disappear",.01})
  209. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  210. table.insert(list,w2)
  211. end
  212. return unpack(list)
  213. end
  214. so = function(id,par,vol,pit)
  215. coroutine.resume(coroutine.create(function()
  216. local sou = Instance.new("Sound",par or workspace)
  217. sou.Volume=vol
  218. sou.Pitch=pit or 1
  219. sou.SoundId=id
  220. swait()
  221. sou:play()
  222. game:GetService("Debris"):AddItem(sou,6)
  223. end))
  224. end
  225. function clerp(a,b,t)
  226. local qa = {QuaternionFromCFrame(a)}
  227. local qb = {QuaternionFromCFrame(b)}
  228. local ax, ay, az = a.x, a.y, a.z
  229. local bx, by, bz = b.x, b.y, b.z
  230. local _t = 1-t
  231. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  232. end
  233. function QuaternionFromCFrame(cf)
  234. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  235. local trace = m00 + m11 + m22
  236. if trace > 0 then
  237. local s = math.sqrt(1 + trace)
  238. local recip = 0.5/s
  239. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  240. else
  241. local i = 0
  242. if m11 > m00 then
  243. i = 1
  244. end
  245. if m22 > (i == 0 and m00 or m11) then
  246. i = 2
  247. end
  248. if i == 0 then
  249. local s = math.sqrt(m00-m11-m22+1)
  250. local recip = 0.5/s
  251. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  252. elseif i == 1 then
  253. local s = math.sqrt(m11-m22-m00+1)
  254. local recip = 0.5/s
  255. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  256. elseif i == 2 then
  257. local s = math.sqrt(m22-m00-m11+1)
  258. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  259. end
  260. end
  261. end
  262. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  263. local xs, ys, zs = x + x, y + y, z + z
  264. local wx, wy, wz = w*xs, w*ys, w*zs
  265. local xx = x*xs
  266. local xy = x*ys
  267. local xz = x*zs
  268. local yy = y*ys
  269. local yz = y*zs
  270. local zz = z*zs
  271. 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))
  272. end
  273. function QuaternionSlerp(a, b, t)
  274. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  275. local startInterp, finishInterp;
  276. if cosTheta >= 0.0001 then
  277. if (1 - cosTheta) > 0.0001 then
  278. local theta = math.acos(cosTheta)
  279. local invSinTheta = 1/math.sin(theta)
  280. startInterp = math.sin((1-t)*theta)*invSinTheta
  281. finishInterp = math.sin(t*theta)*invSinTheta
  282. else
  283. startInterp = 1-t
  284. finishInterp = t
  285. end
  286. else
  287. if (1+cosTheta) > 0.0001 then
  288. local theta = math.acos(-cosTheta)
  289. local invSinTheta = 1/math.sin(theta)
  290. startInterp = math.sin((t-1)*theta)*invSinTheta
  291. finishInterp = math.sin(t*theta)*invSinTheta
  292. else
  293. startInterp = t-1
  294. finishInterp = t
  295. end
  296. end
  297. 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
  298. end
  299. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  300. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  301. end
  302. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  303. if hit.Parent==nil then
  304. return
  305. end
  306. local h=hit.Parent:FindFirstChild("Humanoid")
  307. for _,v in pairs(hit.Parent:children()) do
  308. if v:IsA("Humanoid") then
  309. h=v
  310. end
  311. end
  312. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  313. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  314. end
  315. if hit.Parent.className=="Hat" then
  316. hit=hit.Parent.Parent:findFirstChild("Head")
  317. end
  318. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  319. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  320. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  321. return
  322. end]]
  323. -- hs(hit,1.2)
  324. local c=Instance.new("ObjectValue")
  325. c.Name="creator"
  326. c.Value=game:service("Players").LocalPlayer
  327. c.Parent=h
  328. game:GetService("Debris"):AddItem(c,.5)
  329. local Damage=math.random(minim,maxim)
  330. -- h:TakeDamage(Damage)
  331. local blocked=false
  332. local block=hit.Parent:findFirstChild("Block")
  333. if block~=nil then
  334. print(block.className)
  335. if block.className=="NumberValue" then
  336. if block.Value>0 then
  337. blocked=true
  338. if decreaseblock==nil then
  339. block.Value=block.Value-1
  340. end
  341. end
  342. end
  343. if block.className=="IntValue" then
  344. if block.Value>0 then
  345. blocked=true
  346. if decreaseblock~=nil then
  347. block.Value=block.Value-1
  348. end
  349. end
  350. end
  351. end
  352. if blocked==false then
  353. -- h:TakeDamage(Damage)
  354. h.Health=h.Health-Damage
  355. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  356. else
  357. h.Health=h.Health-(Damage/2)
  358. 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)
  359. end
  360. if Type=="Knockdown" then
  361. local hum=hit.Parent.Humanoid
  362. hum.PlatformStand=true
  363. coroutine.resume(coroutine.create(function(HHumanoid)
  364. swait(1)
  365. HHumanoid.PlatformStand=false
  366. end),hum)
  367. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  368. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  369. local bodvol=Instance.new("BodyVelocity")
  370. bodvol.velocity=angle*knockback
  371. bodvol.P=5000
  372. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  373. bodvol.Parent=hit
  374. local rl=Instance.new("BodyAngularVelocity")
  375. rl.P=3000
  376. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  377. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  378. rl.Parent=hit
  379. game:GetService("Debris"):AddItem(bodvol,.5)
  380. game:GetService("Debris"):AddItem(rl,.5)
  381. elseif Type=="Normal" then
  382. local vp=Instance.new("BodyVelocity")
  383. vp.P=500
  384. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  385. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  386. if KnockbackType==1 then
  387. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  388. elseif KnockbackType==2 then
  389. vp.velocity=Property.CFrame.lookVector*knockback
  390. end
  391. if knockback>0 then
  392. vp.Parent=hit.Parent.Torso
  393. end
  394. game:GetService("Debris"):AddItem(vp,.5)
  395. elseif Type=="Up" then
  396. local bodyVelocity=Instance.new("BodyVelocity")
  397. bodyVelocity.velocity=vt(0,60,0)
  398. bodyVelocity.P=5000
  399. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  400. bodyVelocity.Parent=hit
  401. game:GetService("Debris"):AddItem(bodyVelocity,1)
  402. local rl=Instance.new("BodyAngularVelocity")
  403. rl.P=3000
  404. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  405. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  406. rl.Parent=hit
  407. game:GetService("Debris"):AddItem(rl,.5)
  408. elseif Type=="Snare" then
  409. local bp=Instance.new("BodyPosition")
  410. bp.P=2000
  411. bp.D=100
  412. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  413. bp.position=hit.Parent.Torso.Position
  414. bp.Parent=hit.Parent.Torso
  415. game:GetService("Debris"):AddItem(bp,1)
  416. elseif Type=="Target" then
  417. local Targetting = false
  418. if Targetting==false then
  419. ZTarget=hit.Parent.Torso
  420. coroutine.resume(coroutine.create(function(Part)
  421. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  422. swait(5)
  423. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  424. end),ZTarget)
  425. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  426. local targetgui=Instance.new("BillboardGui")
  427. targetgui.Parent=ZTarget
  428. targetgui.Size=UDim2.new(10,100,10,100)
  429. local targ=Instance.new("ImageLabel")
  430. targ.Parent=targetgui
  431. targ.BackgroundTransparency=1
  432. targ.Image="rbxassetid://4834067"
  433. targ.Size=UDim2.new(1,0,1,0)
  434. cam.CameraType="Scriptable"
  435. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  436. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  437. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  438. Targetting=true
  439. RocketTarget=ZTarget
  440. for i=1,Property do
  441. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  442. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  443. swait()
  444. end
  445. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  446. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  447. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  448. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  449. end
  450. Targetting=false
  451. RocketTarget=nil
  452. targetgui.Parent=nil
  453. cam.CameraType="Custom"
  454. end
  455. end
  456. local debounce=Instance.new("BoolValue")
  457. debounce.Name="DebounceHit"
  458. debounce.Parent=hit.Parent
  459. debounce.Value=true
  460. game:GetService("Debris"):AddItem(debounce,Delay)
  461. c=Instance.new("ObjectValue")
  462. c.Name="creator"
  463. c.Value=Player
  464. c.Parent=h
  465. game:GetService("Debris"):AddItem(c,.5)
  466. end
  467. end
  468. function ShowDamage(Pos, Text, Time, Color)
  469. local Rate = (1 / 30)
  470. local Pos = (Pos or Vector3.new(0, 0, 0))
  471. local Text = (Text or "")
  472. local Time = (Time or 2)
  473. local Color = (Color or Color3.new(1, 0, 0))
  474. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  475. EffectPart.Anchored = true
  476. local BillboardGui = Instance.new("BillboardGui")
  477. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  478. BillboardGui.Adornee = EffectPart
  479. local TextLabel = Instance.new("TextLabel")
  480. TextLabel.BackgroundTransparency = 1
  481. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  482. TextLabel.Text = Text
  483. TextLabel.TextColor3 = Color
  484. TextLabel.TextScaled = true
  485. TextLabel.Font = Enum.Font.ArialBold
  486. TextLabel.Parent = BillboardGui
  487. BillboardGui.Parent = EffectPart
  488. game.Debris:AddItem(EffectPart, (Time + 0.1))
  489. EffectPart.Parent = game:GetService("Workspace")
  490. Delay(0, function()
  491. local Frames = (Time / Rate)
  492. for Frame = 1, Frames do
  493. wait(Rate)
  494. local Percent = (Frame / Frames)
  495. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  496. TextLabel.TextTransparency = Percent
  497. end
  498. if EffectPart and EffectPart.Parent then
  499. EffectPart:Destroy()
  500. end
  501. end)
  502. end
  503. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  504. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Handle",Vector3.new(0.215725347, 2.48084044, 0.215725198))
  505. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.930069566, 0.055798471, 0.0282652378, -3.40461134e-016, -0.999999821, -6.30770316e-008, -6.29188719e-008, 6.30770458e-008, -1, 0.999999821, 1.98435256e-015, -6.29188506e-008))
  506. mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  507. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  508. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, 0.877086639, 0.877086878, -1.64392133e-015, 7.10542736e-015, -0.999999762, -0.70710659, 0.707106709, 1.60117253e-009, 0.70710659, 0.707106769, 1.60117963e-009))
  509. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.166108504, 1.43349433, 0.238376439))
  510. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  511. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, 0.877083898, 0.877084196, -1.64392133e-015, 7.10542736e-015, -0.999999762, -0.70710659, 0.707106709, 1.60117253e-009, 0.70710659, 0.707106769, 1.60117963e-009))
  512. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.191995561, 1.10127747, 0.238376409))
  513. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  514. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, 0.877086878, -0.87708658, -5.96046377e-008, 1.58652291e-008, -0.999999762, 0.70710659, 0.707106769, 1.60117963e-009, 0.70710659, -0.707106709, -6.12058102e-008))
  515. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.166108519, 1.43349433, 0.238376409))
  516. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  517. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, 0.877086878, -0.87708658, -5.96046377e-008, 1.58652291e-008, -0.999999762, 0.70710659, 0.707106769, 1.60117963e-009, 0.70710659, -0.707106709, -6.12058102e-008))
  518. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.191995561, 1.10127747, 0.238376409))
  519. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Gold","Hitbox",Vector3.new(0.769999981, 5.98999977, 0.200000003))
  520. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0150751472, -4.91083813, -0.0016169548, -0.999999702, -5.73936916e-007, -5.47717682e-005, -5.77330525e-007, 0.999997854, 6.21783911e-005, 5.47730524e-005, 6.19993443e-005, -0.999992728))
  521. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.75503844, 0.539313197))
  522. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00539362431, -7.44250202, 0.00538212061, -2.98023135e-008, -1.42108547e-014, 0.999999583, 0, 1, -7.10542736e-015, -0.999999583, 7.10542736e-015, -2.98023171e-008))
  523. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.529605746, 1.00399995, 1.00200009))
  524. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.539313316, 5.17740393, 0.200000003))
  525. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00538235903, -4.4762826, 0.0053935051, 0.999999762, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392133e-015, -7.10542736e-015, 0.999999762))
  526. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.539313197))
  527. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.215725347, 5.17201138, 0.200000003))
  528. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00539427996, -4.47358704, 0.0107843876, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  529. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.647175848))
  530. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.501561701, 0.253477186))
  531. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0134806633, -7.32113934, 0.0188638568, -2.980231e-008, -1.42108547e-014, 0.999999464, 0, 1, -7.10542736e-015, -0.999999464, 7.10542736e-015, -2.98023135e-008))
  532. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.662007093, 1.00399995, 1.00200009))
  533. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Institutional white","Part",Vector3.new(0.361340016, 2.80442786, 0.215725288))
  534. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.018881321, -4.47627687, -0.00539439917, -8.65512771e-016, 4.23146105e-008, -0.999999762, -2.98023224e-008, 0.999999821, 4.2314575e-008, 0.999999642, 2.98023224e-008, 2.96747935e-015))
  535. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.225432992, 3.07947803, 0.238376409))
  536. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  537. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -1.56397903, 9.77516174e-006, 2.980231e-008, 1.42108547e-014, -0.999999464, 0, 1, -7.10542736e-015, 0.999999464, -7.10542736e-015, 2.98023135e-008))
  538. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.248084143, 1.10127747, 0.170422956))
  539. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.253477365, 0.431450427, 0.388305366))
  540. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0188752413, -1.86010051, -0.326661348, -5.96046341e-008, 4.36079972e-009, -0.999999762, -0.499999702, 0.86602515, 3.84612591e-008, 0.866024971, 0.499999821, -6.72013272e-008))
  541. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.225432992, 1.13795078, 0.238376409))
  542. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.253477365, 0.431450427, 0.388305366))
  543. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0188757181, 0.321341991, -1.57047582, -1.46031357e-006, -8.17437694e-007, -0.999999821, -0.866024792, -0.499999702, 1.64672406e-006, -0.499999583, 0.866024971, 3.8461252e-008))
  544. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.225432992, 1.13795078, 0.238376409))
  545. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.215725347, 0.647175789, 0.215725288))
  546. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -1.56399763, 1.54972076e-006, 2.980231e-008, 1.42108547e-014, -0.999999464, 0, 1, -7.10542736e-015, 0.999999464, -7.10542736e-015, 2.98023135e-008))
  547. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.191995561, 1.10127747, 0.238376409))
  548. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.253477365, 0.431450427, 0.388305366))
  549. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0188748837, -1.8600893, 0.326698363, 1.49011584e-007, -5.18991783e-009, -0.999999821, 0.499999791, 0.86602515, 3.84612591e-008, 0.866024971, -0.499999881, 6.72013343e-008))
  550. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.225432992, 1.13795078, 0.238376409))
  551. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.431450427, 0.539312899, 0.215725288))
  552. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-007, -1.50995862, -1.1920929e-007, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  553. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.88447392, 0.695713937, 0.873687387))
  554. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.431450427, 0.539312899, 0.215725288))
  555. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-007, -1.50995862, -1.1920929e-007, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  556. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.10882819, 0.77445364, 1.19511807))
  557. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.431450427, 0.539312899, 0.215725288))
  558. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-007, -1.50995862, -1.1920929e-007, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  559. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.14981616, 0.812205553, 0.873687387))
  560. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.253477365, 0.431450427, 0.388305366))
  561. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0188752413, 0.297257423, 1.57193804, 5.96046306e-008, -1.23396049e-007, -0.999999762, 0.866024733, -0.499999821, 1.26805972e-007, -0.499999762, -0.866024971, 5.09456939e-008))
  562. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.225432992, 1.13795078, 0.238376409))
  563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.258870542, 0.647175789, 0.431450546))
  564. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.96046448e-008, -0.911411881, 0, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  565. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  566. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.258870542, 0.647175789, 0.431450546))
  567. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.96046448e-008, 0.868290544, -3.57627869e-007, 0.999999642, 0, 1.64392112e-015, 0, 1, -7.10542736e-015, 1.64392112e-015, -7.10542736e-015, 0.999999642))
  568. Wing=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Medium stone grey","Wing",Vector3.new(1.61794007, 1.61793947, 0.539313138))
  569. Wingweld=weld(m,Character["Torso"],Wing,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.86392474, -2.08980489, 0.181039333, -0.759651601, 0.128951684, -0.637417376, 0.0987830982, 0.991651058, 0.0828883275, 0.642784059, 1.7327136e-007, -0.766047537))
  570. wmsh=mesh("SpecialMesh",Wing,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=111896510",Vector3.new(0, 0, 0),Vector3.new(1.29999995, 1.29999995, 1.29999995))
  571. wmsh.TextureId="http://www.roblox.com/asset/?id=111825642"
  572. function attackone()
  573. attack = true
  574. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,25,math.random(5,10),"Normal",RootPart,.2,1) end)
  575. for i = 0,1,0.1 do
  576. swait()
  577. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  578. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-2),math.rad(-2),math.rad(80)),.3)
  579. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.3)
  580. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)), 0.3)
  581. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  582. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  583. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  584. end
  585. so("rbxassetid://199145887",Hitbox,1,1)
  586. for i = 0,1,0.1 do
  587. swait()
  588. local blcf = Hitbox.CFrame*cf(0,0,0)
  589. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  590. local h = 5
  591. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  592. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  593. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  594. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  595. scfr = blcf
  596. elseif not scfr then
  597. scfr = blcf
  598. end
  599. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  600. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  601. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.3)
  602. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
  603. 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)
  604. 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)
  605. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(100)),.3)
  606. end
  607. attack = false
  608. con:disconnect()
  609. scfr = nil
  610. end
  611. function attacktwo()
  612. attack = true
  613. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,25,math.random(5,10),"Normal",RootPart,.2,1) end)
  614. for i = 0,1,0.1 do
  615. swait()
  616. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-2),math.rad(-50)),.3)
  618. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3)
  620. 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)
  621. 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)
  622. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),.3)
  623. end
  624. so("rbxassetid://199145913",Hitbox,1,1)
  625. for i = 0,1,0.1 do
  626. swait()
  627. local blcf = Hitbox.CFrame*cf(0,0,0)
  628. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  629. local h = 5
  630. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  631. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  632. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  633. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  634. scfr = blcf
  635. elseif not scfr then
  636. scfr = blcf
  637. end
  638. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  639. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(60)),.3)
  640. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(0), math.rad(-10), math.rad(70)), 0.3)
  641. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  642. 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)
  643. 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)
  644. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(60)),.3)
  645. end
  646. attack = false
  647. con:disconnect()
  648. scfr = nil
  649. end
  650. function attackthree()
  651. attack = true
  652. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,25,math.random(5,10),"Normal",RootPart,.2,1) end)
  653. so("http://roblox.com/asset/?id=153092348",Torso,1,.8)
  654. for i = 0,1,0.1 do
  655. swait()
  656. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  657. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(-80)),.3)
  658. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(130), math.rad(80)), 0.3)
  659. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-20)), 0.3)
  660. 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)
  661. 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)
  662. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  663. Torso.Velocity=Head.CFrame.lookVector*100
  664. end
  665. so("http://roblox.com/asset/?id=199145327",Torso,1,.9)
  666. for i = 0,1,0.1 do
  667. swait()
  668. local blcf = Hitbox.CFrame*cf(0,0,0)
  669. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  670. local h = 5
  671. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  672. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  673. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  674. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  675. scfr = blcf
  676. elseif not scfr then
  677. scfr = blcf
  678. end
  679. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),-7*i),.3)
  680. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  681. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  682. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-40)), 0.3)
  683. 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)
  684. 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)
  685. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  686. end
  687. attack = false
  688. con:disconnect()
  689. scfr = nil
  690. end
  691. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  692. for _,c in pairs(workspace:children()) do
  693. local hum=c:findFirstChild("Humanoid")
  694. if hum~=nil then
  695. local head=c:findFirstChild("Torso")
  696. if head~=nil then
  697. local targ=head.Position-Part.Position
  698. local mag=targ.magnitude
  699. if mag<=magni and c.Name~=Player.Name then
  700. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  701. end
  702. end
  703. end
  704. end
  705. end
  706. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  707. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  708. prt.Anchored=true
  709. prt.CFrame=cframe
  710. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  711. game:GetService("Debris"):AddItem(prt,5)
  712. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  713. end
  714. function attackfour()
  715. attack = true
  716. Humanoid.WalkSpeed = 0
  717. for i = 0,1,0.1 do
  718. swait()
  719. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  720. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  721. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  722. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  723. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  724. LH.C0=clerp(LH.C0,cf(-1,-.1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  725. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  726. end
  727. MagniDamage(Hitbox,LeftLeg,20,30,50,math.random(30,40),"Knockdown",true)
  728. so("http://roblox.com/asset/?id=199145264",LeftLeg,1,1.1)
  729. so("http://roblox.com/asset/?id=200632561",LeftLeg,1,1)
  730. MagicWave(BrickColor.new("New Yeller"),cf(LeftLeg.Position),.7,.7,.7,.7,.7,.7,.05)
  731. MagicWave(BrickColor.new("Gold"),cf(LeftLeg.Position),.6,.6,.6,.6,.6,.6,.05)
  732. for i = 0,1,0.1 do
  733. swait()
  734. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  735. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  736. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  737. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  738. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  739. LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  740. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-10)),.3)
  741. end
  742. attack = false
  743. Humanoid.WalkSpeed = 16
  744. end
  745. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  746. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  747. prt.Anchored=true
  748. prt.CFrame=cframe
  749. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  750. game:GetService("Debris"):AddItem(prt,2)
  751. coroutine.resume(coroutine.create(function(Part,Mesh)
  752. for i=0,1,delay do
  753. wait()
  754. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  755. Part.Transparency=i
  756. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  757. end
  758. Part.Parent=nil
  759. end),prt,msh)
  760. end
  761. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  762. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  763. prt.Anchored=true
  764. prt.CFrame=cframe
  765. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  766. game:GetService("Debris"):AddItem(prt,2)
  767. coroutine.resume(coroutine.create(function(Part,Mesh)
  768. local wld=nil
  769. for i=0,1,delay do
  770. wait()
  771. Part.CFrame=Part.CFrame
  772. Part.Transparency=i
  773. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  774. end
  775. Part.Parent=nil
  776. end),prt,msh)
  777. end
  778. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  779. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  780. prt.Anchored=true
  781. prt.CFrame=cframe
  782. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  783. game:GetService("Debris"):AddItem(prt,5)
  784. coroutine.resume(coroutine.create(function(Part,Mesh)
  785. for i=0,1,delay do
  786. wait()
  787. Part.CFrame=Part.CFrame
  788. Part.Transparency=i
  789. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  790. end
  791. Part.Parent=nil
  792. end),prt,msh)
  793. end
  794. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  795. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  796. prt.Anchored=true
  797. prt.CFrame=cframe
  798. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  799. game:GetService("Debris"):AddItem(prt,5)
  800. coroutine.resume(coroutine.create(function(Part,Mesh)
  801. for i=0,1,delay do
  802. wait()
  803. Part.CFrame=Part.CFrame
  804. Part.Transparency=i
  805. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  806. end
  807. Part.Parent=nil
  808. end),prt,msh)
  809. end
  810. local n = 0
  811. function Blast()
  812. n=2
  813. attack = true
  814. for i=0,1,0.1 do
  815. swait()
  816. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  817. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-2),math.rad(-2),math.rad(30)),.3)
  818. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  819. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
  820. 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)
  821. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  822. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  823. end
  824. so("http://roblox.com/asset/?id=160772554",Torso,1,0.6)
  825. so("http://roblox.com/asset/?id=161006069",Torso,1,0.6)
  826. local charging=true
  827. for _,c in pairs(workspace:children()) do
  828. if c.className=="Model" then
  829. if c:findFirstChild("Torso")~=nil and c:findFirstChild("Humanoid")~=nil and c.Name~="Vanta" then
  830. print(c)
  831. local Tors=c:findFirstChild("Torso")
  832. coroutine.resume(coroutine.create(function(Part)
  833. local ef=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("Gold"),"Laser",vt(0.2,0.2,0.2))
  834. ef.Anchored=true
  835. local emsh=mesh("SpecialMesh",ef,"Head","",vt(0,0,0),vt(1,1,1))
  836. game:GetService("Debris"):AddItem(ef,5)
  837. while charging==true do
  838. wait()
  839. local TheHit=Part.Position
  840. local MouseLook=cf((LeftArm.Position+TheHit)/2,TheHit)
  841. local hit,pos = rayCast(LeftArm.Position,MouseLook.lookVector,999,Character)
  842. local mag=(LeftArm.Position-pos).magnitude
  843. ef.CFrame=CFrame.new((LeftArm.Position+pos)/2,pos)*euler(1.57,0,0)
  844. emsh.Scale=vt(1,mag*5,1)
  845. end
  846. ef.Parent=nil
  847. local TheHit=Part.Position
  848. local MouseLook=cf((Torso.Position+TheHit)/2,TheHit)
  849. wait()
  850. local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character)
  851. local mag=(Torso.Position-pos).magnitude
  852. if hit~=nil then
  853. Damagefunc(hit,hit,20,40,50,"Knockdown",RootPart,0)
  854. MagicCircle(BrickColor.new("Gold"),cf(pos),5,5,5,6,6,6,0.02)
  855. MagicBlock(BrickColor.new("Gold"),cf(pos),5,5,5,7,7,7,0.02)
  856. MagicCylinder(BrickColor.new("Gold"),CFrame.new((LeftArm.Position+pos)/2,pos)*euler(1.57,0,0),5,mag*5,5,0.5,0,0.5,0.01)
  857. so("http://roblox.com/asset/?id=183763515",hit,1,1)
  858. so("http://roblox.com/asset/?id=183763512",hit,1,1)
  859. end
  860. end),Tors)
  861. end
  862. end
  863. end
  864. wait(1)
  865. n=2
  866. --[[for i=0,1,0.2 do
  867. wait()
  868. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  869. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n)
  870. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n)
  871. n=n-0.2
  872. end]]--
  873. charging=false
  874. wait(1)
  875. n=2
  876. --[[for i=0,1,0.1 do
  877. wait()
  878. Neck.C0=cf(0,1,0)*euler(-0.2,0,0)
  879. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.37*i*n)
  880. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.37*i*n)
  881. n=n-0.1
  882. end]]--
  883. attack = false
  884. end
  885. function PlaySound(id, pitch, parent, volume)
  886. if volume == nil then volume=tonumber(1) end
  887. local epicsound = Instance.new("Sound")
  888. epicsound.Name = "Epicosound"
  889. epicsound.SoundId = "rbxassetid://"..id
  890. epicsound.Volume = volume
  891. epicsound.Pitch = pitch
  892. epicsound.Looped = false
  893. epicsound.Parent = parent
  894. wait()
  895. epicsound:Play()
  896. game:service'Debris':AddItem(epicsound, 8)
  897. end
  898. Shots = {263609809, 263609836, 263609864, 263609874, 263609898}
  899. Shot = function(part)
  900. local shot=math.random(1, #Shots)
  901. PlaySound(Shots[shot], 1, part)
  902. end
  903. function CelestialStorm()
  904. local n=2
  905. attack = true
  906. for i=0,1,0.1 do
  907. swait()
  908. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  909. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(0)),.3)
  910. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  911. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(-20)), 0.3)
  912. 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)
  913. 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)
  914. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  915. end
  916. for i=1,math.random(5,10) do
  917. wait(.05)
  918. MagicBlock(BrickColor.new("New Yeller"),LeftArm.CFrame*cf(0,-1,0),5,5,5,2,2,2,0.1)
  919. local orb=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("New Yeller"),"Orb",vt())
  920. orb.Anchored=true
  921. Shot(orb)
  922. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  923. orb.CFrame=cf(Player:GetMouse().Hit.p+vt(math.random(-10,10),math.random(50,100),math.random(-10,10)))
  924. MagicCircle(BrickColor.new("New Yeller"),orb.CFrame,10,10,10,1,1,1,0.1)
  925. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  926. wait(1)
  927. Part.Parent=nil
  928. 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
  929. local TheHit=Part.Position+vt(0,-1,0)
  930. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  931. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  932. local mag=(Part.Position-pos).magnitude
  933. MagicCylinder(BrickColor.new("New Yeller"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  934. MagicBlock(BrickColor.new("New Yeller"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  935. MagicBlock(BrickColor.new("New Yeller"),cf(pos),15,15,15,6,6,6,0.1)
  936. MagicRing(BrickColor.new("New Yeller"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  937. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("New Yeller"),"Effect",vt())
  938. ref.CFrame=cf(pos)
  939. so("http://roblox.com/asset/?id=231917788",ref,1,1.4)
  940. coroutine.resume(coroutine.create(function(Part)
  941. wait(1)
  942. Part.Parent=nil
  943. end),ref)
  944. MagniDamage(ref,ref,15,5,10,0,"Normal",RootPart)
  945. if hit~=nil then
  946. Damagefunc(ref,hit,20,40,1,"Knockdown",RootPart,0)
  947. end
  948. end),orb,omsh)
  949. end
  950. wait(0.5)
  951. local n=2
  952. for i=0,1,0.1 do
  953. wait()
  954. --[[Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  955. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n)
  956. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  957. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  958. LW.C1=cf(0,0.5,0)*euler(0,0,0)]]
  959. n=n-0.1
  960. end
  961. attack = false
  962. end
  963. mouse.Button1Down:connect(function()
  964. if attack == false and attacktype == 1 then
  965. attacktype = 2
  966. attackone()
  967. elseif attack == false and attacktype == 2 then
  968. attacktype = 3
  969. attacktwo()
  970. elseif attack == false and attacktype == 3 then
  971. attacktype = 4
  972. attackthree()
  973. elseif attack == false and attacktype == 4 then
  974. attacktype = 1
  975. attackfour()
  976. end
  977. end)
  978. mouse.KeyDown:connect(function(k)
  979. k=k:lower()
  980. if attack == false and k == 'q' then
  981. CelestialStorm()
  982. elseif attack == false and k == 'e' then
  983. Blast()
  984. end
  985. end)
  986. local sine = 0
  987. local change = 1
  988. local val = 0
  989. local donum=0
  990. while true do
  991. swait()
  992. sine = sine + change
  993. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  994. local velderp=RootPart.Velocity.y
  995. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  996. if equipped==true or equipped==false then
  997. if attack==false then
  998. idle=idle+1
  999. else
  1000. idle=0
  1001. end
  1002. if idle>=500 then
  1003. if attack==false then
  1004. end
  1005. end
  1006. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1007. Anim="Jump"
  1008. if attack==false then
  1009. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1010. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1011. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1012. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1013. 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)
  1014. 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)
  1015. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1016. end
  1017. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1018. Anim="Fall"
  1019. if attack==false then
  1020. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1021. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1022. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(50)), 0.3)
  1023. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
  1024. 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)
  1025. 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)
  1026. end
  1027. elseif torvel<1 and hitfloor~=nil then
  1028. Anim="Idle"
  1029. if attack==false then
  1030. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  1031. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-2),math.rad(-2),math.rad(30)),.3)
  1032. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  1033. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-20)), 0.3)
  1034. 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)
  1035. 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)
  1036. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1037. end
  1038. elseif torvel>2 and hitfloor~=nil then
  1039. Anim="Walk"
  1040. if attack==false then
  1041. change=3
  1042. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1043. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1044. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15)*math.cos(sine/13), math.rad(0), math.rad(10)), 0.3)
  1045. 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)
  1046. 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)
  1047. 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)
  1048. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1049. end
  1050. end
  1051. end
  1052. if #Effects>0 then
  1053. for e=1,#Effects do
  1054. if Effects[e]~=nil then
  1055. local Thing=Effects[e]
  1056. if Thing~=nil then
  1057. local Part=Thing[1]
  1058. local Mode=Thing[2]
  1059. local Delay=Thing[3]
  1060. local IncX=Thing[4]
  1061. local IncY=Thing[5]
  1062. local IncZ=Thing[6]
  1063. if Thing[1].Transparency<=1 then
  1064. if Thing[2]=="Block1" then
  1065. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1066. Mesh=Thing[1].Mesh
  1067. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1068. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1069. elseif Thing[2]=="Cylinder" then
  1070. Mesh=Thing[1].Mesh
  1071. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1072. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1073. elseif Thing[2]=="Blood" then
  1074. Mesh=Thing[7]
  1075. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1076. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1077. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1078. elseif Thing[2]=="Elec" then
  1079. Mesh=Thing[1].Mesh
  1080. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1081. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1082. elseif Thing[2]=="Disappear" then
  1083. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1084. end
  1085. else
  1086. Part.Parent=nil
  1087. table.remove(Effects,e)
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end

comments powered by Disqus