Dark_EccentricYT

Untitled

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