Advertisement
Gokussjg

Untitled

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