Advertisement
memberhero

Test

Jun 18th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.71 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. Class by speedydude900.
  4. hi
  5. i changed nam to LENNAH \o/
  6. ]]
  7. --[[allowed={"speedydude900","antiXemnas","robonack","Player","Player1","Fenrier","SazErenos","Reyne"}
  8. usable={"Huge_Nazo","DahNoob","GlaeKei"} --people who can use without sum1 from the allowed list having to be in the server
  9. gud2go=true
  10. for _,p in ipairs(game.Players:GetPlayers()) do
  11. for _,v in ipairs(allowed) doco
  12. if v==p.Name then
  13. gud2go=true
  14. end
  15. end
  16. end
  17. for _,v in ipairs(usable) do
  18. if v==game:GetService("Players").LocalPlayer.Name then
  19. gud2go=true
  20. end
  21. end
  22. if gud2go==true then
  23. print("yespls")
  24. wait(1)
  25. return end--]]
  26. repeat wait() until game.Workspace:FindFirstChild("damageFunc")
  27. Player=game:GetService("Players").LocalPlayer
  28. Character=Player.Character
  29. PlayerGui=Player.PlayerGui
  30. Backpack=Player.Backpack
  31. Torso=Character.Torso
  32. Head=Character.Head
  33. Humanoid=Character.Humanoid
  34. LeftArm=Character["Left Arm"]
  35. LeftLeg=Character["Left Leg"]
  36. RightArm=Character["Right Arm"]
  37. RightLeg=Character["Right Leg"]
  38. LS=Torso["Left Shoulder"]
  39. LH=Torso["Left Hip"]
  40. RS=Torso["Right Shoulder"]
  41. RH=Torso["Right Hip"]
  42. Neck=Torso.Neck
  43. it=Instance.new
  44. vt=Vector3.new
  45. cf=CFrame.new
  46. euler=CFrame.fromEulerAnglesXYZ
  47. angles=CFrame.Angles
  48. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  49. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  50. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  51. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  52. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  53. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  54. RootPart=Character.HumanoidRootPart
  55. RootJoint=RootPart.RootJoint
  56. RootCF=euler(-1.57,0,3.14)
  57. attack = false
  58. attackdebounce = false
  59. isblarghing=false
  60. MMouse=nil
  61. combo=0
  62. combospeed=0
  63. stop=false
  64. local hitfloor,posfloor=nil,nil
  65. local idle=0
  66. local Anim="Idle"
  67. local Effects={}
  68. local Weapon={}
  69. local Welds={}
  70. local decreaseatk=0
  71. local decreasedef=0
  72. local decreasemvmt=0
  73. local Mode="Defensive"
  74. local GuardStance=false
  75. local Target=nil
  76. local manualguardend=false
  77. local Fly=false
  78. local prop=Instance.new("RocketPropulsion")
  79. local move1="(Z)\
  80. Cannonball"
  81. local move2="(X)\
  82. Wipeout"
  83. local move3="(C)\
  84. Speech"
  85. local move4="(V)\
  86. not done confidential"
  87. local cooldowns={}
  88. local cooldown1=0 table.insert(cooldowns,cooldown1)
  89. local cooldown2=0 table.insert(cooldowns,cooldown2)
  90. local cooldown3=0 table.insert(cooldowns,cooldown3)
  91. local cooldown4=0 table.insert(cooldowns,cooldown4)
  92. local cooldown5=0 table.insert(cooldowns,cooldown5)
  93. local cooldownsadd={}
  94. local cooldownadd1=.55 table.insert(cooldownsadd,cooldownadd1)
  95. local cooldownadd2=.2 table.insert(cooldownsadd,cooldownadd2)
  96. local cooldownadd3=.25 table.insert(cooldownsadd,cooldownadd3)
  97. local cooldownadd4=.06 table.insert(cooldownsadd,cooldownadd4)
  98. local cooldownadd5=.06 table.insert(cooldownsadd,cooldownadd5)
  99. local cooldownmax=100
  100. ---local damageFunc=workspace.damageFunc
  101. --player
  102. player=nil
  103. --save shoulders
  104. RSH, LSH=nil, nil
  105. --welds
  106. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  107. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  108. LH=Torso["Left Hip"]
  109. RH=Torso["Right Hip"]
  110. TorsoColor=Torso.BrickColor
  111. --[[TorsoBlue=TorsoColor.Color.b
  112. NewCol=Color3.new(.5,.5,TorsoBlue)
  113. print(BrickColor.new(.5,.5,TorsoBlue))]]
  114. TorsoRed=TorsoColor.Color.r
  115. TorsoGreen=TorsoColor.Color.g
  116. NewCol=Color3.new(TorsoRed,TorsoGreen,1)
  117. if Player:findFirstChild("Color1")~=nil then
  118. NewCol=Player.Color1.Value
  119. end
  120. print(BrickColor.new(NewCol))
  121. local mdec=Instance.new("NumberValue",Decrease)
  122. mdec.Name="DecreaseDef"
  123. mdec.Value=.5
  124. local mdec2=Instance.new("NumberValue",Decrease)
  125. mdec2.Name="DecreaseMvmt"
  126. mdec2.Value=.1
  127.  
  128. local Animate=Humanoid.Animator
  129. --[[local animation=Instance.new("Animation")
  130. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  131. local animTrack=Humanoid:LoadAnimation(animation)]]
  132. local canjump=true
  133. function removeControl()
  134. canjump=false
  135. end
  136. function resumeControl()
  137. canjump=true
  138. end
  139. Player.Character.Humanoid.Changed:connect(function()
  140. if canjump==false then
  141. Player.Character.Humanoid.Jump=false
  142. end
  143. end)
  144.  
  145.  
  146. function swait(num)
  147. if num==0 or num==nil then
  148. --if Stagger.Value==false or Stun.Value<=100 then
  149. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  150. --end
  151. else
  152. for i=0,num do
  153. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  154. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  155. break
  156. end]]
  157. end
  158. end
  159. end
  160.  
  161.  
  162.  
  163. if Character:findFirstChild("dedliwepon",true) ~= nil then
  164. Character:findFirstChild("dedliwepon",true).Parent = nil
  165. end
  166. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  167. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  168. end
  169. if Character:findFirstChild("Stats",true) ~= nil then
  170. Character:findFirstChild("Stats",true).Parent = nil
  171. end
  172. local Stats=Instance.new("BoolValue")
  173. Stats.Name="Stats"
  174. Stats.Parent=Character
  175. local Atk=Instance.new("NumberValue")
  176. Atk.Name="Damage"
  177. Atk.Parent=Stats
  178. Atk.Value=1
  179. local Def=Instance.new("NumberValue")
  180. Def.Name="Defense"
  181. Def.Parent=Stats
  182. Def.Value=.5
  183. local Mvmt=Instance.new("NumberValue")
  184. Mvmt.Name="Movement"
  185. Mvmt.Parent=Stats
  186. Mvmt.Value=1
  187. local Block=Instance.new("BoolValue")
  188. Block.Name="Block"
  189. Block.Parent=Stats
  190. Block.Value=false
  191. local Stun=Instance.new("NumberValue")
  192. Stun.Name="Stun"
  193. Stun.Parent=Stats
  194. Stun.Value=0
  195. local StunT=Instance.new("NumberValue")
  196. StunT.Name="StunThreshold"
  197. StunT.Parent=Stats
  198. StunT.Value=100
  199. local Rooted=Instance.new("BoolValue")
  200. Rooted.Name="Rooted"
  201. Rooted.Parent=Stats
  202. Rooted.Value=false
  203. local Stunned=Instance.new("BoolValue")
  204. Stunned.Name="Stunned"
  205. Stunned.Parent=Stats
  206. Stunned.Value=false
  207. local Stagger=Instance.new("BoolValue")
  208. Stagger.Name="Stagger"
  209. Stagger.Parent=Stats
  210. Stagger.Value=false
  211. local StaggerHit=Instance.new("BoolValue")
  212. StaggerHit.Name="StaggerHit"
  213. StaggerHit.Parent=Stats
  214. StaggerHit.Value=false
  215. local RecentEnemy=Instance.new("ObjectValue")
  216. RecentEnemy.Name="RecentEnemy"
  217. RecentEnemy.Parent=Stats
  218. RecentEnemy.Value=nil
  219. local Decrease=Instance.new("BoolValue")
  220. Decrease.Name="Decrease"
  221. Decrease.Parent=Stats
  222. Decrease.Value=false
  223. local passive=Instance.new("NumberValue",Decrease)
  224. passive.Name="DecreaseMvmt"
  225. passive.Value=-.4
  226. local passive2=Instance.new("NumberValue",Decrease)
  227. passive2.Name="DecreaseDef"
  228. passive2.Value=.5
  229. local mana=Instance.new("NumberValue")
  230. mana.Name="Mana"
  231. mana.Parent=Stats
  232. mana.Value=0
  233.  
  234. function NoOutline(Part)
  235. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  236. end
  237.  
  238. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,material,anchor)
  239. local fp=it("Part")
  240. fp.formFactor=formfactor
  241. fp.Parent=parent
  242. fp.Reflectance=reflectance
  243. fp.Transparency=transparency
  244. fp.CanCollide=false
  245. fp.Locked=true
  246. fp.BrickColor=brickcolor
  247. fp.Name=name
  248. fp.Size=size
  249. fp.Position=Torso.Position
  250. NoOutline(fp)
  251. if material then
  252. fp.Material=material
  253. end
  254. if anchor then
  255. fp.Anchored=anchor
  256. end
  257. fp:BreakJoints()
  258. return fp
  259. end
  260.  
  261. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  262. local mesh=it(Mesh)
  263. mesh.Parent=part
  264. if Mesh=="SpecialMesh" then
  265. mesh.MeshType=meshtype
  266. if meshid~="nil" then
  267. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  268. end
  269. end
  270. mesh.Offset=offset
  271. mesh.Scale=scale
  272. return mesh
  273. end
  274.  
  275. function weld(parent,part0,part1,c0)
  276. local weld=it("Motor")
  277. weld.Parent=parent
  278. weld.Part0=part0
  279. weld.Part1=part1
  280. weld.C0=c0
  281. return weld
  282. end
  283.  
  284. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  285. local gui=it(GuiType)
  286. gui.Parent=parent
  287. gui.Text=text
  288. gui.BackgroundTransparency=backtrans
  289. gui.BackgroundColor3=backcol
  290. gui.SizeConstraint="RelativeXY"
  291. gui.TextXAlignment="Center"
  292. gui.TextYAlignment="Center"
  293. gui.Position=pos
  294. gui.Size=size
  295. gui.Font="SourceSans"
  296. gui.FontSize="Size14"
  297. gui.TextWrapped=false
  298. gui.TextStrokeTransparency=0
  299. gui.TextColor=BrickColor.new("White")
  300. return gui
  301. end
  302.  
  303. local Color1=Torso.BrickColor
  304.  
  305. local fengui=it("GuiMain")
  306. fengui.Parent=Player.PlayerGui
  307. fengui.Name="WeaponGUI"
  308. local fenframe=it("Frame")
  309. fenframe.Parent=fengui
  310. fenframe.BackgroundColor3=Color3.new(255,255,255)
  311. fenframe.BackgroundTransparency=1
  312. fenframe.BorderColor3=Color3.new(17,17,17)
  313. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  314. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  315. local fenframe2=it("Frame")
  316. fenframe2.Parent=fengui
  317. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  318. fenframe2.BackgroundTransparency=1
  319. fenframe2.BorderColor3=Color3.new(17,17,17)
  320. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  321. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  322. local fenframe3=it("Frame")
  323. fenframe3.Parent=fengui
  324. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  325. fenframe3.BackgroundTransparency=1
  326. fenframe3.BorderColor3=Color3.new(17,17,17)
  327. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  328. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  329. local fenframe4=it("Frame")
  330. fenframe4.Parent=fengui
  331. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  332. fenframe4.BackgroundTransparency=1
  333. fenframe4.BorderColor3=Color3.new(17,17,17)
  334. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  335. fenframe4.Position=UDim2.new(0,0,0.7,0)
  336. local pressedf=false
  337. local fenframe5=it("Frame")
  338. fenframe5.Parent=fengui
  339. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  340. fenframe5.BackgroundTransparency=1
  341. fenframe5.BorderColor3=Color3.new(0,0,0)
  342. fenframe5.Size=UDim2.new(1,0,1,0)
  343. fenframe5.Position=UDim2.new(0,0,0,0)
  344. fenframe5.ZIndex=2
  345. local tellbar=gui("TextLabel",fenframe5,"Happy fun time class by speedydude900 and SazErenos. pres f to admn abose",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  346. tellbar.Font="Arial"
  347. tellbar.TextScaled=true
  348. tellbar.TextTransparency=1
  349. tellbar.TextStrokeTransparency=1
  350. tellbar.ZIndex=2
  351. local fnumb=0
  352. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  353. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  354. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  355. local fenbardamage=gui("TextLabel",fenframe2,"Damage",.55,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0))
  356. local fenbardef=gui("TextLabel",fenframe2,"Defense",0.55,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0))
  357. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",0.55,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0))
  358. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  359. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  360. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  361. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  362. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  363. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  364. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  365. fenbarmove1.ZIndex=2
  366. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  367. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  368. fenbarmove2.ZIndex=2
  369. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  370. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  371. fenbarmove3.ZIndex=2
  372. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  373. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  374. fenbarmove4.ZIndex=2
  375. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  376.  
  377. local modelzorz=Instance.new("Model")
  378. modelzorz.Parent=Character
  379. modelzorz.Name="dedliwepon"
  380.  
  381.  
  382. --function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  383. local handle=part(3,modelzorz,0,0.5,TorsoColor,"Handle",vt(),"Fabric")
  384. local prt1=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part01",vt(.2,.2,.2),"Fabric")
  385. local prt2=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part02",vt(.2,.2,.2),"Fabric")
  386. local prt3=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part03",vt(),"Fabric")
  387. local prt4=part(3,modelzorz,0,0,BrickColor.new("Steel blue"),"Part04",vt(),"Metal")
  388. local prt5=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part05",vt(.2,.2,.2),"Marble")
  389.  
  390. local msh1=mesh("BlockMesh",prt1,"","nil",vt(0,0,0),vt(6,5.5,5.4))
  391. local msh2=mesh("BlockMesh",prt2,"","nil",vt(0,0,0),vt(1, 5.6, 7.4))
  392. local msh3=mesh("BlockMesh",prt3,"","nil",vt(0,0,0),vt(1, 5.6, 7.4))
  393. local msh4=mesh("CylinderMesh",prt4,"","nil",vt(0,0,0),vt(2.5, 5.53, 2.5))
  394. local msh5=mesh("CylinderMesh",prt5,"","nil",vt(0,0,0),vt(2, 5.55, 2))
  395.  
  396. --local wld1=weld(prt1,prt1,Torso,euler(0,0,0)*cf(0,0,5))
  397. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  398. --local handlewld=weld(handle,handle,RightArm,euler(1.57,0,0)*cf(0,1,0))
  399. local handlewld=weld(handle,handle,Torso,euler(0,0,0)*cf(0,0,0))
  400. local wld1=weld(prt1,prt1,Torso,cf(0,0,0)*euler(math.rad(90),0,0))
  401. local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(.7,0,-.3))
  402. local wld3=weld(prt1,prt3,prt1,euler(0,0,0)*cf(-.7,0,-.3))
  403. local wld4=weld(prt1,prt4,prt1,euler(0,0,0)*cf(0,0,0))
  404. local wld5=weld(prt1,prt5,prt1,euler(0,0,0)*cf(0,0,0))
  405.  
  406. num=0
  407. num2=0
  408. num3=0
  409. num4=0
  410. num5=2
  411.  
  412. for _,c in pairs(modelzorz:children()) do
  413. table.insert(Weapon,c)
  414. end
  415. for _,c in pairs(prt1:children()) do
  416. if c.className=="Motor" then
  417. table.insert(Welds,c)
  418. end
  419. end
  420. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt())
  421. hitbox.Anchored=false
  422. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  423. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  424. hitbox2.Anchored=true
  425. local hitboxCF=cf(0,0,0)
  426.  
  427. hboxpos=Instance.new("BodyPosition",nil)
  428. hboxpos.P=2000
  429. hboxpos.D=100
  430. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  431.  
  432. function hitboxweld()
  433. hbwld.Parent=modelzorz
  434. hbwld.Part0=hitbox
  435. hbwld.Part1=prt5
  436. end
  437.  
  438. if (script.Parent.className~="HopperBin") then
  439. Tool=Instance.new("HopperBin")
  440. Tool.Parent=Backpack
  441. Tool.Name="dedliwepon"
  442. script.Parent=Tool
  443. end
  444. Bin=script.Parent
  445. if Bin.Name=="Allah" then
  446. Bin.Name="dedliwepon"
  447. end
  448.  
  449. local bodvel=Instance.new("BodyVelocity")
  450. local bg=Instance.new("BodyGyro")
  451.  
  452. so = function(id,par,vol,pit)
  453. local sou = Instance.new("Sound",par or workspace)
  454. sou.Volume=vol
  455. sou.Pitch=pit or 1
  456. sou.SoundId="http://www.roblox.com/asset/?id="..id
  457. --swait()
  458. sou:play()
  459. game:GetService("Debris"):AddItem(sou,6)
  460. end
  461.  
  462. function clerp(a,b,t)
  463. local qa = {QuaternionFromCFrame(a)}
  464. local qb = {QuaternionFromCFrame(b)}
  465. local ax, ay, az = a.x, a.y, a.z
  466. local bx, by, bz = b.x, b.y, b.z
  467. local _t = 1-t
  468. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  469. end
  470.  
  471. function QuaternionFromCFrame(cf)
  472. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  473. local trace = m00 + m11 + m22
  474. if trace > 0 then
  475. local s = math.sqrt(1 + trace)
  476. local recip = 0.5/s
  477. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  478. else
  479. local i = 0
  480. if m11 > m00 then
  481. i = 1
  482. end
  483. if m22 > (i == 0 and m00 or m11) then
  484. i = 2
  485. end
  486. if i == 0 then
  487. local s = math.sqrt(m00-m11-m22+1)
  488. local recip = 0.5/s
  489. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  490. elseif i == 1 then
  491. local s = math.sqrt(m11-m22-m00+1)
  492. local recip = 0.5/s
  493. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  494. elseif i == 2 then
  495. local s = math.sqrt(m22-m00-m11+1)
  496. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  497. end
  498. end
  499. end
  500.  
  501. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  502. local xs, ys, zs = x + x, y + y, z + z
  503. local wx, wy, wz = w*xs, w*ys, w*zs
  504. local xx = x*xs
  505. local xy = x*ys
  506. local xz = x*zs
  507. local yy = y*ys
  508. local yz = y*zs
  509. local zz = z*zs
  510. 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))
  511. end
  512.  
  513. function QuaternionSlerp(a, b, t)
  514. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  515. local startInterp, finishInterp;
  516. if cosTheta >= 0.0001 then
  517. if (1 - cosTheta) > 0.0001 then
  518. local theta = math.acos(cosTheta)
  519. local invSinTheta = 1/math.sin(theta)
  520. startInterp = math.sin((1-t)*theta)*invSinTheta
  521. finishInterp = math.sin(t*theta)*invSinTheta
  522. else
  523. startInterp = 1-t
  524. finishInterp = t
  525. end
  526. else
  527. if (1+cosTheta) > 0.0001 then
  528. local theta = math.acos(-cosTheta)
  529. local invSinTheta = 1/math.sin(theta)
  530. startInterp = math.sin((t-1)*theta)*invSinTheta
  531. finishInterp = math.sin(t*theta)*invSinTheta
  532. else
  533. startInterp = t-1
  534. finishInterp = t
  535. end
  536. end
  537. 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
  538. end
  539.  
  540. function hideanim()
  541. equipped=false
  542. for i=0,1,0.12 do
  543. swait()
  544. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  545. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  546. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.2)*euler(1.3,.5,0)*euler(0,0,-1),.3)
  547. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  548. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  549. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  550. end
  551. for i=0,1,0.18 do
  552. swait()
  553. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.5)
  554. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  555. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.2)*euler(1.3,.5,-1.2),.5)
  556. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  557. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.25),.5)
  558. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  559. end
  560. prt5.Material="Marble"
  561. prt5.BrickColor=BrickColor.new("Black")
  562. for i=0,1,0.1 do
  563. swait()
  564. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*euler(0,0,0)*cf(0,0,0),.3)
  565. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  566. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  568. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  569. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0)*euler(0,0,0)*euler(0,0,0),.3)
  570. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  571. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  572. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  573. end
  574. mdec.Parent=nil
  575. handlewld.Part1=Torso
  576. handlewld.C0=euler(-1.8,0,0)*cf(-1.1,1,0.65)
  577. mdec.Parent=Decrease
  578. mdec2.Parent=nil
  579. end
  580.  
  581. mdec.Parent=Decrease
  582. function equipanim()
  583. equipped=true
  584. mdec.Parent=nil
  585. for i=0,1,0.12 do
  586. swait()
  587. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  588. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  589. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.2)*euler(1.3,.5,0)*euler(0,0,-1),.3)
  590. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  591. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  592. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  593. end
  594. for i=0,1,0.18 do
  595. swait()
  596. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0),.5)
  597. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  598. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.2)*euler(1.3,.5,-1.2),.5)
  599. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  600. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.25),.5)
  601. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  602. end
  603. prt5.Material="Neon"
  604. prt5.BrickColor=BrickColor.new(NewCol)
  605. handlewld.Part1=LeftArm
  606. handlewld.C0=euler(1.5,1.4,0)*euler(0,0,-1)*cf(0,0,0)
  607. mdec2.Parent=Decrease
  608. end
  609.  
  610. function StaggerAnim()
  611. attack=true
  612. removeControl()
  613. for i=1,math.random(2,4) do
  614. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  615. end
  616. for i=0,1,0.35 do
  617. swait()
  618. Torso.Velocity=RootPart.CFrame.lookVector*-40
  619. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
  620. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  621. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.4)*euler(0,.4,0),.3)
  622. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  623. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.9)*euler(0,.7,0),.3)
  624. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  625. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.4,-.2,.4),.3)
  626. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  627. end
  628. for i=0,1,0.2 do
  629. swait()
  630. Torso.Velocity=RootPart.CFrame.lookVector*-40
  631. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  632. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.4,0,.6),.3)
  633. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6)*euler(0,.4,0),.3)
  634. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  635. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.9)*euler(0,.7,0),.3)
  636. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  637. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.5,-.2,.5),.3)
  638. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  639. end
  640. for i=0,1,0.1 do
  641. swait()
  642. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  643. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  644. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,.4),.3)
  645. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-.4),.3)
  646. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.3,0),.3)
  648. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  649. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.2,0)*euler(-.4,0,1.2),.3)
  650. LH.C0=clerp(LH.C0,cf(-1,.4,-.8)*euler(0,-1.57,0)*euler(0,.2,-.1),.3)
  651. end
  652. for i=1,40 do
  653. swait()
  654. if Stun.Value>=StunT.Value then
  655. break
  656. end
  657. end
  658. resumeControl()
  659. combo=0
  660. attack=false
  661. end
  662.  
  663. function StaggerHitt()
  664. attack=true
  665. for i=1,math.random(2,4) do
  666. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  667. end
  668. for i=0,1,0.1 do
  669. swait()
  670. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
  671. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  672. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4)*euler(0,.4,0),.3)
  673. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  674. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.9)*euler(0,.7,0),.3)
  675. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  676. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.2,-.2),.3)
  677. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  678. end
  679. attack=false
  680. end
  681.  
  682. function StunAnim()
  683. attack=true
  684. removeControl()
  685. Stunned.Value=true
  686. showDamage(Character,"Stunned","Interrupt")
  687. local dec=Instance.new("NumberValue",Decrease)
  688. dec.Name="DecreaseMvmt"
  689. dec.Value=10
  690. for i=0,1,0.3 do
  691. swait()
  692. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  693. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  694. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  696. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  697. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  698. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  699. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  700. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  701. end
  702. for i=0,1,0.3 do
  703. swait()
  704. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  705. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  706. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  708. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  709. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  710. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  711. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  712. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  713. end
  714. for i=0,1,0.3 do
  715. swait()
  716. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  717. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  718. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  719. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  720. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  721. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  722. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  723. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  724. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  725. end
  726. local gairost=Instance.new("BodyGyro")
  727. gairost.Parent=RootPart
  728. gairost.maxTorque=Vector3.new(2000,0,2000)
  729. gairost.P=2000
  730. gairost.cframe=cf(0,0,0)
  731. for i=0,1,0.1 do
  732. swait()
  733. if hitfloor~=nil then
  734. Torso.Velocity=vt(0,0,0)
  735. end
  736. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  737. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  738. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  739. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  740. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  741. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  742. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  743. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  744. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  745. end
  746. for i=1,70 do
  747. swait()
  748. gairost.cframe=RootPart.CFrame
  749. if hitfloor~=nil then
  750. Torso.Velocity=vt(0,0,0)
  751. end
  752. end
  753. for i=0,1,0.2 do
  754. swait()
  755. Stun.Value=0
  756. gairost.cframe=RootPart.CFrame
  757. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  758. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  759. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  760. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  761. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  762. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  763. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  764. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  765. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  766. end
  767. resumeControl()
  768. gairost.Parent=nil
  769. dec.Parent=nil
  770. Stun.Value=0
  771. combo=0
  772. Stunned.Value=false
  773. attack=false
  774. for i=1,10 do
  775. swait()
  776. Stun.Value=0
  777. end
  778. end
  779.  
  780. function dattackone()
  781. stop=true
  782. if isblarghing==false then
  783. attack=true
  784. for i=0,1,0.15 do
  785. swait()
  786. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(-.1,0,0),.3)
  787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,.5),.3)
  788. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,.2)*euler(0,0,0),.3)
  789. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  790. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.15)
  791. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  792. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  793. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  794. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  795. break
  796. end
  797. end
  798. local pl=part(3,workspace,0,1,BrickColor.new(NewCol),"Plane",vt(1,1,1))
  799. local pmsh=mesh("SpecialMesh",pl,"FileMesh","113216991",vt(0,0,0),vt(1,1,1))
  800. local pwld=weld(pl,pl,RightArm,euler(0,math.rad(180),math.rad(180))*cf(0,1.1,0))
  801. MagicBlock(BrickColor.new(NewCol),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,2,2,2,.15,2)
  802. pl.Transparency=0
  803. for i=0,1,0.15 do
  804. swait()
  805. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(-.3,0,0),.3)
  806. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,.5),.3)
  807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,.2)*euler(0,0,0),.3)
  808. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  809. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.3)
  810. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  811. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  812. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  813. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  814. break
  815. end
  816. end
  817. pwld.Parent=nil
  818. pl.Anchored=true
  819. local MainPos=pl.Position
  820. local MainPos2=MMouse.Hit.p
  821. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  822. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
  823. local num=15
  824. repeat
  825. swait()
  826. local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
  827. pl.CFrame=CFrame.new((Pos1+opos)/2,opos)
  828. MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  829. --MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(-.5,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  830. Pos1=Pos1+(Look.lookVector*5)
  831. pl.CFrame=CFrame.new(pl.Position,MMouse.Hit.p)
  832. if ohit~=nil then
  833. num=0
  834. end
  835. num=num-1
  836. until num<=0
  837. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  838. ref.Anchored=true
  839. ref.CFrame=cf(pl.Position)
  840. so("206049428",ref,.5,math.random(7,10)/10)
  841. game:GetService("Debris"):AddItem(ref,.5)
  842. local col={"Bright red","Bright yellow","Bright orange"}
  843. MagicCircle(BrickColor.new(col[math.random(1,#col)]),"SmoothPlastic",cf(ref.Position),2,2,2,2.5,2.5,2.5,.1,.2)
  844. for i=1,4 do
  845. MagicBlock(BrickColor.new(col[math.random(1,#col)]),cf(ref.Position)*cf(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100),3,3,3,1,1,1,.1)
  846. end
  847. --MagniDamage(ref,15,5,7,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  848. MagniDamage(ref,5,6,9,math.random(5,10),"Knockdown2",ref,.15,2,math.random(3,7),false,true,false,"Movement",.02,500)
  849. pl.Parent=nil
  850. end),MainPos,MainPos2,MouseLook)
  851. for i=0,1,0.2 do
  852. swait()
  853. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.1,0,0),.5)
  854. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,.5),.5)
  855. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.4,0,.2)*euler(0,0,0),.5)
  856. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  857. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.2)*euler(0,0,0),.5)
  858. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  859. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  860. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  861. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  862. break
  863. end
  864. end
  865. attack=false
  866. end
  867. end
  868.  
  869. function dattacktwo()
  870. stop=true
  871. if isblarghing==false then
  872. attack=true
  873. for i=0,1,0.15 do
  874. swait()
  875. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(-.1,0,0),.3)
  876. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,-.5),.3)
  877. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.5)*euler(0,0,0),.3)
  878. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  879. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.7,0,-.2)*euler(0,0,0),.15)
  880. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  881. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,-.2)*euler(0,0,0),.3)
  882. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,-.2),.3)
  883. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  884. break
  885. end
  886. end
  887. local pl=part(3,workspace,0,1,BrickColor.new(NewCol),"Plane",vt(1,1,1))
  888. local pmsh=mesh("SpecialMesh",pl,"FileMesh","113216991",vt(0,0,0),vt(1,1,1))
  889. local pwld=weld(pl,pl,LeftArm,euler(0,math.rad(180),math.rad(180))*cf(0,1.1,0))
  890. MagicBlock(BrickColor.new(NewCol),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,2,2,2,.15,2)
  891. pl.Transparency=0
  892. for i=0,1,0.15 do
  893. swait()
  894. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(-.3,0,0),.3)
  895. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,-.5),.3)
  896. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.5)*euler(0,0,0),.3)
  897. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  898. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,-.2)*euler(0,0,0),.3)
  899. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  900. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,-.2)*euler(0,0,0),.3)
  901. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,-.2),.3)
  902. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  903. break
  904. end
  905. end
  906. pwld.Parent=nil
  907. pl.Anchored=true
  908. local MainPos=pl.Position
  909. local MainPos2=MMouse.Hit.p
  910. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  911. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
  912. local num=15
  913. repeat
  914. swait()
  915. local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
  916. pl.CFrame=CFrame.new((Pos1+opos)/2,opos)
  917. MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  918. --MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(-.5,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  919. Pos1=Pos1+(Look.lookVector*5)
  920. pl.CFrame=CFrame.new(pl.Position,MMouse.Hit.p)
  921. if ohit~=nil then
  922. num=0
  923. end
  924. num=num-1
  925. until num<=0
  926. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  927. ref.Anchored=true
  928. ref.CFrame=cf(pl.Position)
  929. so("206049428",ref,.5,math.random(7,10)/10)
  930. game:GetService("Debris"):AddItem(ref,.5)
  931. local col={"Bright red","Bright yellow","Bright orange"}
  932. MagicCircle(BrickColor.new(col[math.random(1,#col)]),"SmoothPlastic",cf(ref.Position),2,2,2,2.5,2.5,2.5,.1,.2)
  933. for i=1,4 do
  934. MagicBlock(BrickColor.new(col[math.random(1,#col)]),cf(ref.Position)*cf(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100),3,3,3,1,1,1,.1)
  935. end
  936. --MagniDamage(ref,15,5,7,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  937. MagniDamage(ref,5,6,9,math.random(5,10),"Knockdown2",ref,.15,2,math.random(3,7),false,true,false,"Movement",.02,500)
  938. pl.Parent=nil
  939. end),MainPos,MainPos2,MouseLook)
  940. for i=0,1,0.2 do
  941. swait()
  942. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(-.1,0,0),.5)
  943. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,-.5),.5)
  944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.2)*euler(0,0,0),.5)
  945. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  946. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.4,0,-.2)*euler(0,0,0),.5)
  947. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  948. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,-.2)*euler(0,0,0),.3)
  949. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,-.2),.3)
  950. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  951. break
  952. end
  953. end
  954. attack=false
  955. end
  956. end
  957.  
  958.  
  959. function dattackthree()
  960. stop=true
  961. if isblarghing==false then
  962. attack=true
  963. for i=0,1,0.15 do
  964. swait()
  965. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.1,0,0),.3)
  966. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,0,.2)*euler(0,0,0),.3)
  968. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  969. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.15)
  970. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  971. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.1,0,.1)*euler(0,0,0),.3)
  972. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.1,0,.1),.3)
  973. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  974. break
  975. end
  976. end
  977. for i=0,1,0.15 do
  978. swait()
  979. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.2,0,.2)*euler(0,0,0),.3)
  982. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.3)
  984. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  985. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.1,0,.1)*euler(0,0,0),.3)
  986. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.1,0,.1),.3)
  987. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  988. break
  989. end
  990. end
  991. local ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  992. ref2.Anchored=true
  993. ref2.CFrame=Character.HumanoidRootPart.CFrame*CFrame.new(Vector3.new(0,7,0),MMouse.Hit.p)
  994. game:GetService("Debris"):AddItem(ref2,1)
  995. for i=-1,1 do
  996. local pl=part(3,workspace,0,1,BrickColor.new(NewCol),"Plane",vt(1,1,1))
  997. local pmsh=mesh("SpecialMesh",pl,"FileMesh","113216991",vt(0,0,0),vt(1,1,1))
  998. pl.CFrame=ref2.CFrame*CFrame.new(i*5,0,0)
  999. --local pwld=weld(pl,pl,LeftArm,euler(0,math.rad(180),math.rad(180))*cf(0,1.1,0))
  1000. MagicBlock(BrickColor.new(NewCol),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,2,2,2,.15,2)
  1001. pl.Transparency=0
  1002. --pwld.Parent=nil
  1003. pl.Anchored=true
  1004. local MainPos=pl.Position
  1005. local MainPos2=MMouse.Hit.p+Vector3.new(i+math.random(-250,250)/100,i+math.random(-250,250)/100,i+math.random(-250,250)/100)
  1006. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1007. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
  1008. local num=25
  1009. repeat
  1010. swait()
  1011. local ohit,opos=rayCast(Pos1,Look.lookVector,5,pl)
  1012. pl.CFrame=CFrame.new((Pos1+opos)/2,opos)
  1013. MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  1014. --MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(-.5,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,1,1,1,.15,2)
  1015. Pos1=Pos1+(Look.lookVector*5)
  1016. pl.CFrame=CFrame.new(pl.Position,MMouse.Hit.p)
  1017. if ohit~=nil then
  1018. num=0
  1019. end
  1020. num=num-1
  1021. until num<=0
  1022. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1023. ref.Anchored=true
  1024. ref.CFrame=cf(pl.Position)
  1025. so("206049428",ref,.5,math.random(7,10)/10)
  1026. game:GetService("Debris"):AddItem(ref,.5)
  1027. local col={"Bright red","Bright yellow","Bright orange"}
  1028. MagicCircle(BrickColor.new(col[math.random(1,#col)]),"SmoothPlastic",cf(ref.Position),2,2,2,2.5,2.5,2.5,.1,.2)
  1029. for i=1,4 do
  1030. MagicBlock(BrickColor.new(col[math.random(1,#col)]),cf(ref.Position)*cf(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100),3,3,3,1,1,1,.1)
  1031. end
  1032. --MagniDamage(ref,15,5,7,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  1033. MagniDamage(ref,5,8,12,math.random(5,10),"Knockdown2",ref,.01,2,math.random(3,7),false,true,false,"Movement",.02,500)
  1034. pl.Parent=nil
  1035. end),MainPos,MainPos2,MouseLook)
  1036. end
  1037. for i=0,1,0.15 do
  1038. swait()
  1039. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.3)
  1040. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1041. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0)*euler(0,0,0),.3)
  1042. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1043. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.3)
  1044. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1045. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.1,0,.1)*euler(0,0,0),.3)
  1046. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.1,0,.1),.3)
  1047. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1048. break
  1049. end
  1050. end
  1051. attack=false
  1052. end
  1053. end
  1054.  
  1055. function dattackfour()
  1056. stop=true
  1057. if isblarghing==false then
  1058. attack=true
  1059. for i=0,1,0.15 do
  1060. swait()
  1061. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.15,0,0),.3)
  1062. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1063. RW.C0=clerp(RW.C0,cf(1.5,1.2,0)*euler(2.5,0,.2)*euler(0,0,0),.3)
  1064. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1065. LW.C0=clerp(LW.C0,cf(-1.5,1.2,0)*euler(2.5,0,-.2)*euler(0,0,0),.3)
  1066. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1067. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  1068. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  1069. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1070. break
  1071. end
  1072. end
  1073. for i=0,1,0.15 do
  1074. swait()
  1075. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.25,0,0),.3)
  1076. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1077. RW.C0=clerp(RW.C0,cf(1.5,1.2,0)*euler(3,0,.2)*euler(0,0,0),.3)
  1078. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1079. LW.C0=clerp(LW.C0,cf(-1.5,1.2,0)*euler(3,0,-.2)*euler(0,0,0),.3)
  1080. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1081. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  1082. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  1083. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1084. break
  1085. end
  1086. end
  1087. local pl=part(3,workspace,0,1,BrickColor.new(NewCol),"Plane",vt(2,2,2))
  1088. local pmsh=mesh("SpecialMesh",pl,"FileMesh","113216991",vt(0,0,0),vt(4,4,4))
  1089. local pwld=weld(pl,pl,RightArm,euler(0,math.rad(180),math.rad(180))*cf(1.5,2.6,0))
  1090. MagicBlock(BrickColor.new(NewCol),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,2,2,5,5,5,.1,2)
  1091. pl.Transparency=0
  1092. for i=0,1,0.15 do
  1093. swait()
  1094. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.45,0,0),.3)
  1095. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1096. RW.C0=clerp(RW.C0,cf(1.5,1.2,0)*euler(3.8,0,.2)*euler(0,0,0),.3)
  1097. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1098. LW.C0=clerp(LW.C0,cf(-1.5,1.2,0)*euler(3.8,0,-.2)*euler(0,0,0),.3)
  1099. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1100. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  1101. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  1102. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1103. break
  1104. end
  1105. end
  1106. pwld.Parent=nil
  1107. pl.Anchored=true
  1108. local MainPos=pl.Position
  1109. local MainPos2=MMouse.Hit.p
  1110. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1111. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
  1112. local num=30
  1113. repeat
  1114. swait()
  1115. local ohit,opos=rayCast(Pos1,Look.lookVector,20,pl)
  1116. --game.Workspace:FindPartOnRay(Ray.new(Pos1,Look.lookVector,15,Character))
  1117. --rayCast(Pos1,Look.lookVector,15,Character)
  1118. pl.CFrame=CFrame.new((Pos1+opos)/2,opos)
  1119. --MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(0,0,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,.15,3)
  1120. MagicBlock(BrickColor.new("Bright red"),cf(pl.Position)*cf(0,-.55,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2.5,2.5,2.5,2,2,2,.15,2)
  1121. Pos1=Pos1+(Look.lookVector*5)
  1122. pl.CFrame=CFrame.new(pl.Position,MMouse.Hit.p)
  1123. if ohit~=nil then
  1124. num=0
  1125. end
  1126. num=num-1
  1127. until num<=0
  1128. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1129. ref.Anchored=true
  1130. ref.CFrame=cf(pl.Position)
  1131. so("206049428",ref,.8,math.random(4,6)/10)
  1132. game:GetService("Debris"):AddItem(ref,.5)
  1133. local col={"Bright red","Bright yellow","Bright orange"}
  1134. MagicCircle(BrickColor.new(col[math.random(1,#col)]),"SmoothPlastic",cf(ref.Position),5,5,5,10.5,10.5,10.5,.1,1)
  1135. for i=1,4 do
  1136. MagicBlock(BrickColor.new(col[math.random(1,#col)]),cf(ref.Position)*cf(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100),5,5,5,6,6,6,.1)
  1137. end
  1138. --MagniDamage(ref,15,5,7,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  1139. MagniDamage(ref,15,10,15,math.random(15,25),"Knockdown2",ref,.15,2,math.random(12,20),false,true,false,"Defense",.05,700)
  1140. pl.Parent=nil
  1141. end),MainPos,MainPos2,MouseLook)
  1142. for i=0,1,0.2 do
  1143. swait()
  1144. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.35,0,0),.5)
  1145. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.5)
  1146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.4,0,.2)*euler(0,0,0),.5)
  1147. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1148. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.4,0,-.2)*euler(0,0,0),.5)
  1149. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1150. RH.C0=clerp(RH.C0,cf(1.1,-.9,-.2)*euler(0,1.57,0)*euler(-.15,0,.2)*euler(0,0,0),.3)
  1151. LH.C0=clerp(LH.C0,cf(-1,-1,-.1)*euler(0,-1.57,0)*euler(-.15,0,.2),.3)
  1152. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1153. break
  1154. end
  1155. end
  1156. attack=false
  1157. end
  1158. end
  1159.  
  1160.  
  1161. function do1()
  1162. if attack==true then return end
  1163. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1164. if cooldowns[1]>=cooldownmax and mana.Value>=15 then
  1165. --if true then
  1166. stop=false
  1167. attack=true
  1168. isblarghing=true
  1169. cooldowns[1]=0
  1170. s = Character.Torso
  1171. local p = Instance.new("Sound",s)
  1172. p.SoundId="http://www.roblox.com/asset/?id=".."315652366"
  1173. p.Volume=1
  1174. game:GetService("Debris"):AddItem(p,4)
  1175. p:Play()
  1176. wait(.1)
  1177. s.Parent.Humanoid.PlatformStand=true
  1178. local v = Instance.new("BodyVelocity",s)
  1179. v.P=5000
  1180. v.maxForce=Vector3.new(545000,545000,545000)
  1181.  
  1182. local Dist = 80
  1183.  
  1184. v.velocity=s.CFrame.lookVector*(Dist) + Vector3.new(0,Dist,0)
  1185. game:GetService("Debris"):AddItem(v,.25)
  1186. s.Parent.Humanoid.PlatformStand = true
  1187. s.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))/2
  1188. wait(.175)
  1189. local x = false
  1190. attack=false
  1191. for i=1, 500 do
  1192. swait()
  1193. MagicBlock(BrickColor.new("Medium stone grey"),RootPart.CFrame*euler(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))),1,1,1,3,3,3,0.1)
  1194. for _,v in pairs(s:children()) do
  1195. hitfloord,posfloord=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1196. if v.className=="Motor" or v.className=="Weld" or v.className=="Motor6D" then
  1197. v.C0 = v.C0 * CFrame.Angles(math.random(-50,50)/30,math.random(-50,50)/30,math.random(-50,50)/30)
  1198. end
  1199. end
  1200. if stop then
  1201. s.Parent.Humanoid.PlatformStand=false
  1202. Torso.Velocity=Vector3.new(0,-100,0)
  1203. MagicBlock(BrickColor.new("Bright red"),RootPart.CFrame*euler(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360))),1,1,1,10,10,10,0.07)
  1204. MagicWave(BrickColor.new("Bright yellow"),cf(RootPart.Position)*euler(math.rad(math.random(-20,20)),math.rad(math.random(-200,200)),0),1,.5,1,3,3,3,.15)
  1205. end
  1206. if hitfloord then
  1207. s.Parent.Humanoid.PlatformStand=false
  1208. break
  1209. end
  1210. end
  1211. MagniDamage(RootPart,25,15,20,math.random(75,105),"Normal",RootPart,.15,2,math.random(55,97),true,true,false,"Movement",.25,400)
  1212. MagicWave(BrickColor.new("Bright yellow"),cf(posfloord)*cf(0,0,0),1.5,4,1.5,1.5,.5,1.5,.05)
  1213. MagicBlock(BrickColor.new("Bright yellow"),cf(posfloord)*cf(0,0,0),1.5,4,1.5,8,8,8,.05)
  1214. p = Instance.new("Sound",s)
  1215. p.SoundId="http://www.roblox.com/asset/?id=".."157878578"
  1216. p.Volume=1
  1217. p.Pitch=.9
  1218. p:Play()
  1219. game:GetService("Debris"):AddItem(p,4)
  1220. showDamage(Character,15,"Damage")
  1221. s.Parent.Humanoid:TakeDamage(15)
  1222. isblarghing=false
  1223. end
  1224. end
  1225.  
  1226. bombmeshes={
  1227. {["mesh"]="http://www.roblox.com/asset/?id=12891705",["texture"]="http://www.roblox.com/asset/?id=12891577",["offset"]=Vector3.new(0,4.4,0),["size"]=Vector3.new(2.5,2.5,2.5)},
  1228. {["mesh"]="http://www.roblox.com/asset/?id=11563093",["texture"]="http://www.roblox.com/asset/?id=11563076",["offset"]=Vector3.new(0,7.25,0),["size"]=Vector3.new(10,10,10)},
  1229. {["mesh"]="http://www.roblox.com/asset/?id=9419831",["texture"]="http://www.roblox.com/asset/?id=9419827",["offset"]=Vector3.new(0,7.25,0),["size"]=Vector3.new(8,8,8)},
  1230. }
  1231.  
  1232. xl = {"316012158","316012174","316012192"}
  1233. xe = {"316012212","316012229","316012256","316012287"}
  1234.  
  1235. function do2() --LALALALALALAL
  1236. if attack==true then return end
  1237. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1238. if cooldowns[2]>=cooldownmax and mana.Value>=20 then
  1239.  
  1240. stop=false
  1241. attack=true
  1242. cooldowns[2]=10
  1243. s = Character.Torso
  1244.  
  1245. local p = Instance.new("Sound",s)
  1246. p.SoundId="http://www.roblox.com/asset/?id="..xe[math.random(1,#xe)]
  1247. p.Volume=1
  1248. game:GetService("Debris"):AddItem(p,4)
  1249. p:Play()
  1250.  
  1251. for i=1,15 do
  1252. swait()
  1253. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.15)
  1254. Neck.C0=clerp(Neck.C0,necko*euler(-.7,0,0),.3)
  1255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.25)
  1256. RW.C0=clerp(RW.C0,cf(1.3,1.15,0)*euler(math.pi,0,0)*euler(0,0,.2),.25)
  1257. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1258. LW.C0=clerp(LW.C0,cf(-1.3,1.15,0)*euler(-math.pi,0,0)*euler(0,0,-.2),.25)
  1259. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1260. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),.25)
  1261. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),.25)
  1262. end
  1263. local b = Instance.new("Part",workspace)
  1264. b.Name="HEIL"
  1265. b.TopSurface=0
  1266. b.BottomSurface=0
  1267. b.formFactor="Symmetric"
  1268. b.CanCollide=false
  1269. b.Size=Vector3.new(5,5,5)
  1270. local m = Instance.new("SpecialMesh",b)
  1271. m.MeshType="FileMesh"
  1272. local rnd = math.random(0,100)
  1273. local rand = math.random(1,2)
  1274. if rnd <= 20 then
  1275. rand = 3
  1276. end
  1277. m.MeshId=bombmeshes[rand]["mesh"]
  1278. m.TextureId=bombmeshes[rand]["texture"]
  1279. m.Scale=bombmeshes[rand]["size"]
  1280. b.Transparency=1
  1281. local w = Instance.new("Weld",b)
  1282. w.Part0 = s
  1283. w.Part1=b
  1284. w.C0 = CFrame.new(bombmeshes[rand]["offset"])
  1285. local sus = Instance.new("ParticleEmitter",b)
  1286. sus.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  1287. sus.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,10)})
  1288. sus.Lifetime=NumberRange.new(1.5,2.25)
  1289. sus.RotSpeed=NumberRange.new(-20,20)
  1290. sus.Rotation=NumberRange.new(-360,360)
  1291. sus.Texture="http://www.roblox.com/asset/?id=133619974"
  1292. sus.Speed=NumberRange.new(2,6)
  1293. sus.Acceleration=Vector3.new(0,0,0)
  1294. sus.VelocitySpread=30
  1295. sus.LockedToPart=true
  1296. sus.Rate = 200
  1297. for i=1, 10 do
  1298. b.Transparency=1-i/10
  1299. swait()
  1300. end
  1301. sus.Enabled=false
  1302. wait(math.random(20,40)/10)
  1303. local p = Instance.new("Sound",s)
  1304. p.SoundId="http://www.roblox.com/asset/?id="..xl[math.random(1,#xl)]
  1305. p.Volume=1
  1306. p:Play()
  1307. game:GetService("Debris"):AddItem(p,4)
  1308. MagniDamage(RootPart,45,30,40,math.random(150,250),"Normal",b,.05,2,9999,false,false,false,"Defense",.2,550)
  1309. --Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration
  1310. local p = Instance.new("Sound",b)
  1311. p.SoundId="http://www.roblox.com/asset/?id=".."216782105"
  1312. p.Pitch=.8
  1313. p.Volume=1
  1314. p:Play()
  1315. game:GetService("Debris"):AddItem(p,4)
  1316.  
  1317. local eff = Instance.new("Part",workspace)
  1318. eff.formFactor="Custom"
  1319. eff.Size=Vector3.new(1,1,1)
  1320. eff.CFrame=b.CFrame * CFrame.Angles(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1321. eff.BrickColor=BrickColor.new("Bright yellow")
  1322. local m = Instance.new("BlockMesh",eff)
  1323. m.Scale=Vector3.new(10,10,10)
  1324. eff.Parent=workspace
  1325. eff.Name="Bewm"
  1326. eff.Anchored=true
  1327. eff.CanCollide=false
  1328. game:GetService("Debris"):AddItem(eff,5)
  1329. coroutine.resume(coroutine.create(function(p,V,x)
  1330. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1331. for i=1, 30 do
  1332. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(25.5,25.5,25.5)/20
  1333. p.Transparency=i/(30)
  1334. p.CFrame = p.CFrame*V
  1335. swait()
  1336. end
  1337. p:Remove()
  1338. end),eff,CFrame.Angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
  1339.  
  1340. local eff = Instance.new("Part",workspace)
  1341. eff.formFactor="Custom"
  1342. eff.Size=Vector3.new(1,1,1)
  1343. eff.CFrame=b.CFrame * CFrame.Angles(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1344. eff.BrickColor=BrickColor.new("Bright orange")
  1345. local m = Instance.new("BlockMesh",eff)
  1346. m.Scale=Vector3.new(10,10,10)
  1347. eff.Parent=workspace
  1348. eff.Name="Bewm"
  1349. eff.Anchored=true
  1350. eff.CanCollide=false
  1351. game:GetService("Debris"):AddItem(eff,5)
  1352. coroutine.resume(coroutine.create(function(p,V,x)
  1353. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1354. for i=1, 30 do
  1355. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(37.5,37.5,37.5)/20
  1356. p.Transparency=i/(30)
  1357. p.CFrame = p.CFrame*V
  1358. swait()
  1359. end
  1360. p:Remove()
  1361. end),eff,CFrame.Angles(math.rad(math.random(-8,8)),math.rad(math.random(-8,8)),math.rad(math.random(-8,8))))
  1362.  
  1363. local eff = Instance.new("Part",workspace)
  1364. eff.formFactor="Custom"
  1365. eff.Size=Vector3.new(1,1,1)
  1366. eff.CFrame=b.CFrame * CFrame.Angles(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1367. eff.BrickColor=BrickColor.new("Bright yellow")
  1368. local m = Instance.new("BlockMesh",eff)
  1369. m.Scale=Vector3.new(10,10,10)
  1370. eff.Parent=workspace
  1371. eff.Name="Bewm"
  1372. eff.Anchored=true
  1373. eff.CanCollide=false
  1374. game:GetService("Debris"):AddItem(eff,5)
  1375. coroutine.resume(coroutine.create(function(p,V,x)
  1376. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1377. for i=1, 30 do
  1378. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55,55,55)/20
  1379. p.Transparency=i/(30)
  1380. p.CFrame = p.CFrame*V
  1381. swait()
  1382. end
  1383. p:Remove()
  1384. end),eff,CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))))
  1385.  
  1386. hitfloord,posfloord=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1387. local eff = Instance.new("Part",workspace)
  1388. eff.formFactor="Custom"
  1389. eff.Size=Vector3.new(1,1,1)
  1390. eff.CFrame=CFrame.new(posfloord)
  1391. eff.BrickColor=BrickColor.new("Bright yellow")
  1392. local m = Instance.new("SpecialMesh",eff)
  1393. m.MeshType="FileMesh"
  1394. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1395. m.Scale=Vector3.new(10,10,10)
  1396. eff.Parent=workspace
  1397. eff.Name="Bewm"
  1398. eff.Anchored=true
  1399. eff.CanCollide=false
  1400. game:GetService("Debris"):AddItem(eff,5)
  1401. coroutine.resume(coroutine.create(function(p,V,x)
  1402. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1403. for i=1, 30 do
  1404. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55,0,55)/20
  1405. p.Transparency=i/30
  1406. p.CFrame = p.CFrame*V
  1407. swait()
  1408. end
  1409. p:Remove()
  1410. end),eff,CFrame.Angles(0,math.rad(math.random(-10,9)*3 + 5),0))
  1411.  
  1412. local eff = Instance.new("Part",workspace)
  1413. eff.formFactor="Custom"
  1414. eff.Size=Vector3.new(1,1,1)
  1415. eff.CFrame=CFrame.new(posfloord)
  1416. eff.BrickColor=BrickColor.new("Institutional white")
  1417. local m = Instance.new("SpecialMesh",eff)
  1418. m.MeshType="FileMesh"
  1419. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1420. m.Scale=Vector3.new(10,10,10)
  1421. eff.Parent=workspace
  1422. eff.Name="Bewm"
  1423. eff.Anchored=true
  1424. eff.CanCollide=false
  1425. game:GetService("Debris"):AddItem(eff,5)
  1426. coroutine.resume(coroutine.create(function(p,V,x)
  1427. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1428. for i=1, 12 do
  1429. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(100,0,100)/12
  1430. p.Transparency=.5 + i/(24)
  1431. p.CFrame = p.CFrame*V
  1432. swait()
  1433. end
  1434. p:Remove()
  1435. end),eff,CFrame.Angles(0,math.rad(math.random(-10,9)*3 + 5),0))
  1436.  
  1437. b:BreakJoints()
  1438. b.Transparency=1
  1439. b.Anchored=true
  1440. game:GetService("Debris"):AddItem(b,5)
  1441. showDamage(Character,20,"Damage")
  1442. s.Parent.Stats.Stun.Value=99999
  1443. s.Parent.Humanoid:TakeDamage(20)
  1444. local v = Instance.new("BodyVelocity",s)
  1445. v.velocity=Vector3.new(math.random(-50,50),math.random(5,50),math.random(-50,50)).unit * 70 + Vector3.new(0,20,0)
  1446. v.maxForce=Vector3.new(545000,545000,545000)
  1447. game:GetService("Debris"):AddItem(v,.3)
  1448. local v = Instance.new("BodyAngularVelocity",s)
  1449. v.angularvelocity=Vector3.new(math.random(-50,50),math.random(5,50),math.random(-50,50)).unit * 20
  1450. v.maxTorque=Vector3.new(500000000,500000000,500000000)
  1451. game:GetService("Debris"):AddItem(v,.6)
  1452.  
  1453. local sus = Instance.new("ParticleEmitter",s)
  1454. sus.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  1455. sus.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,6)})
  1456. sus.Lifetime=NumberRange.new(1,2)
  1457. sus.RotSpeed=NumberRange.new(-20,20)
  1458. sus.Rotation=NumberRange.new(-360,360)
  1459. sus.Texture="http://www.roblox.com/asset/?id=133619974"
  1460. sus.Speed=NumberRange.new(0,0)
  1461. sus.Acceleration=Vector3.new(0,5,0)
  1462. sus.VelocitySpread=180
  1463. sus.Rate = 20
  1464. coroutine.resume(coroutine.create(function(p) wait(2) p.Enabled = false end),sus)
  1465.  
  1466. if rand == 3 then
  1467. local p = Instance.new("Sound",b)
  1468. p.SoundId="http://www.roblox.com/asset/?id=".."270620358"
  1469. p.Pitch=1
  1470. p.Volume=1
  1471. p:Play()
  1472. game:GetService("Debris"):AddItem(p,4)
  1473. local Torso = b --lol lazy code juxtaposition
  1474. for i=1, math.random(26,34) do
  1475. local s = math.random(100,125)/100
  1476. if math.random(1,20)==20 then
  1477. s = math.random(225,250)/100 * 2
  1478. end
  1479. local p = Instance.new("Part",workspace)
  1480. p.Name="BONUSDUCK"
  1481. p.TopSurface=0
  1482. p.BottomSurface=0
  1483. p.formFactor="Custom"
  1484. p.Size=Vector3.new(s,s,s)
  1485. p.BrickColor=BrickColor.new("New Yeller")
  1486. p.CanCollide=false
  1487. p.CFrame = Torso.CFrame * CFrame.new(math.random(-5,5)/10,0,math.random(-5,5)/10) * CFrame.fromEulerAnglesXYZ(0,math.random(-50,50)/10,0)
  1488. local dir = ((Torso.CFrame * CFrame.new(0,0,1)) * CFrame.fromEulerAnglesXYZ(0,math.rad(math.random(-180,180)),0)).lookVector
  1489. p.Velocity=(dir * (math.random(58,80)/10) + Vector3.new(0,math.random(20,25),0)) * math.random(1,3)
  1490. local r = Instance.new("BodyAngularVelocity")
  1491. r.Parent = p
  1492. r.angularvelocity=Vector3.new(0,3,0)
  1493. p.Friction=.5
  1494. local f = Instance.new("BodyForce",p)
  1495. f.force=Vector3.new(0,p:GetMass() * 90,0)
  1496. Instance.new("BodyGyro",p)
  1497. m = Instance.new("SpecialMesh",p)
  1498. m.MeshType="FileMesh"
  1499. m.MeshId="http://www.roblox.com/asset/?id=9419831"
  1500. m.TextureId="http://www.roblox.com/asset/?id=9419827"
  1501. m.Scale = p.Size
  1502. local rr=math.random(1,3)
  1503. if rr == 3 then
  1504. m.VertexColor=Vector3.new(.85,.85,.85)
  1505. elseif rr == 2 then
  1506. m.VertexColor=Vector3.new(1,.8,.8)
  1507. elseif rr == 1 then
  1508. m.VertexColor=Vector3.new(.8,1,.8)
  1509. end
  1510. game:GetService("RunService").Heartbeat:wait()
  1511. coroutine.resume(coroutine.create(function(e)
  1512. wait(1)
  1513. e.CanCollide=true
  1514. game:GetService("Debris"):AddItem(e,17.5)
  1515. e.Touched:connect(function(hit)
  1516. if hit.Parent then
  1517. if hit.Parent:FindFirstChild("Humanoid") then
  1518. if e:FindFirstChild("BONUSDUCK") == nil then
  1519. hit.Parent.Humanoid:TakeDamage(-2.5)
  1520. if hit.Parent:FindFirstChild("Decrease") then
  1521. s = Instance.new("IntValue",hit.Parent.Decrease)
  1522. s.Name="DecreaseAtk"
  1523. s.Value=-.02
  1524. game:GetService("Debris"):AddItem(s,30)
  1525. end
  1526. pp = Instance.new("BoolValue",e)
  1527.  
  1528. pp.Name="BONUSDUCK"
  1529. e.Transparency=1
  1530. e.Anchored=true
  1531. e.CanCollide=false
  1532. local ss = Instance.new("Sparkles",e)
  1533. local so = {"261637666","261637644","261637620","261637599","261637593"}
  1534. local sp = Instance.new("Sound",e)
  1535. sp.Volume = -.15 + e.Size.x
  1536. sp.SoundId="http://www.roblox.com/asset/?id="..so[math.random(1,5)]
  1537. sp:Play()
  1538. wait(.33)
  1539. ss.Enabled=false
  1540. wait(1)
  1541. e:Remove()
  1542. end
  1543. end
  1544. end
  1545. end)
  1546. wait(10 + math.random(0,20)/20)
  1547. if e.Parent and e:FindFirstChild("BONUSDUCK") == nil then
  1548. for i=1, 4 do
  1549. e.Transparency=1
  1550. wait(.2)
  1551. e.Transparency=0
  1552. wait(.2)
  1553. end
  1554. e.Parent=nil
  1555. end
  1556. end),p)
  1557.  
  1558. end
  1559.  
  1560. end
  1561.  
  1562. end
  1563. attack=false
  1564. end
  1565.  
  1566. function do3() --HEIL HEETLUR
  1567. speech={316403490,316403787,316403844,316403916}
  1568. if attack==true then return end
  1569. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1570. if cooldowns[3]>=cooldownmax and mana.Value>=25 then
  1571. attack=true
  1572. removeControl()
  1573. local dec=Instance.new("NumberValue",Decrease)
  1574. dec.Name="DecreaseMvmt"
  1575. dec.Value=10
  1576. mana.Value=mana.Value-25
  1577. num=0
  1578. local dec2=Instance.new("NumberValue",Decrease)
  1579. dec2.Name="DecreaseDef"
  1580. dec2.Value=-1.25
  1581. local pod=part(3,workspace,0,0,BrickColor.new("Reddish brown"),"Podium",vt(2,2.5,2),"WoodPlanks",true)
  1582. pod.CFrame=Torso.CFrame*CFrame.new(0,-1.8,-2)
  1583. for i=1,4 do
  1584. MagicCloud(BrickColor.new("White"),cf(pod.Position)*cf(math.random(-80,80)/100,math.random(-100,150)/100,math.random(-80,80)/100)*euler(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),3,5,5,.1,.1,.1,.05)
  1585. end
  1586. pod.Rotation=Torso.Rotation
  1587. pod.CanCollide=true
  1588. local pod2=part(3,workspace,0,0,BrickColor.new("Reddish brown"),"Podium",vt(2,1,2),"WoodPlanks",true)
  1589. local msh=mesh("SpecialMesh",pod2,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  1590. --local pwld1=weld(pod2,pod2,pod,cf(0,1.75,0)*cf(pod.Position))
  1591. pod2.CFrame=pod.CFrame*CFrame.new(0,1.75,0)
  1592. pod2.Rotation=pod.Rotation+Vector3.new(0,180,0)
  1593. pod2.CanCollide=true
  1594. speeching=true
  1595. local snd=Instance.new("Sound",Head)
  1596. snd.Volume=1
  1597. snd.SoundId="http://www.roblox.com/asset/?id="..speech[math.random(1,#speech)]
  1598. game:GetService("Debris"):AddItem(snd,snd.TimeLength+5)
  1599. for i=0,1,0.1 do
  1600. swait()
  1601. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  1602. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1603. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(1.1,0,-.15)*euler(0,0,0),.3)
  1604. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1605. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.3)
  1606. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1607. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.3)
  1608. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.3)
  1609. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1610. break
  1611. end
  1612. end
  1613. snd:Play()
  1614. numofanim=0
  1615. deb=false
  1616. --so(speech[math.random(1,#speech)],Torso,1,1)
  1617. while speeching do
  1618. swait()
  1619. num=num+1
  1620. local rng=math.random(0,100)
  1621. if rng > 90+numofanim and deb==false then
  1622. coroutine.resume(coroutine.create(function()
  1623. deb=true
  1624. local anim=math.random(0,100)
  1625. if anim<=25 then
  1626. numofanim=numofanim+2
  1627. for i=0,1,0.1 do
  1628. swait()
  1629. Neck.C0=clerp(Neck.C0,necko*euler(-.15,0,-.2)*euler(0,0,0),.3)
  1630. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1631. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(2.3,0,.2)*euler(0,0,0),.3)
  1632. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1633. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.3)
  1634. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1635. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.3)
  1636. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.3)
  1637. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1638. break
  1639. end
  1640. end
  1641. for i=0,1,.025 do
  1642. swait()
  1643. end
  1644. for i=0,1,0.1 do
  1645. swait()
  1646. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  1647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1648. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(1.1,0,-.15)*euler(0,0,0),.3)
  1649. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1650. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.3)
  1651. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1652. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.3)
  1653. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.3)
  1654. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1655. break
  1656. end
  1657. end
  1658. elseif anim>25 and anim <=50 then
  1659. numofanim=numofanim+2
  1660. local reps=math.random(2,4)
  1661. local repsdone=0
  1662. repeat
  1663. for i=0,1,0.15 do
  1664. swait()
  1665. Neck.C0=clerp(Neck.C0,necko*euler(.15,.1,0)*euler(0,0,0),.15)
  1666. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.15)
  1667. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(2,0,-.15)*euler(0,0,0),.15)
  1668. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1669. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.15)
  1670. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1671. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.15)
  1672. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.15)
  1673. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1674. break
  1675. end
  1676. end
  1677. for i=0,1,0.1 do
  1678. swait()
  1679. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  1680. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.5)
  1681. RW.C0=clerp(RW.C0,cf(1.35,0.3,-.5)*euler(1.4,0,-.15)*euler(0,0,0),.7)
  1682. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1683. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.5)
  1684. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1685. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.5)
  1686. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.5)
  1687. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1688. break
  1689. end
  1690. end
  1691. repsdone=repsdone+1
  1692. until repsdone==reps
  1693. elseif anim>50 and anim <=75 then
  1694. numofanim=numofanim+2
  1695. for i=0,1,0.1 do
  1696. swait()
  1697. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  1698. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1699. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(1.1,0,-.15)*euler(0,0,0),.3)
  1700. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1701. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.3)
  1702. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1703. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.3)
  1704. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.3)
  1705. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1706. break
  1707. end
  1708. end
  1709. for i=0,1,.25 do
  1710. swait()
  1711. end
  1712. for i=0,1,0.1 do
  1713. swait()
  1714. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.5)
  1715. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.5)
  1716. RW.C0=clerp(RW.C0,cf(1.35,0.5,-.5)*euler(1.1,0,-.15)*euler(0,0,0),.5)
  1717. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1718. LW.C0=clerp(LW.C0,cf(-1.35,0.5,-.5)*euler(1.1,0,.15)*euler(0,0,0),.5)
  1719. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1720. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,0,0)*euler(0,0,0),.5)
  1721. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,0,0),.5)
  1722. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1723. break
  1724. end
  1725. end
  1726. end
  1727. deb=false
  1728. end))
  1729. end
  1730. if num >= snd.TimeLength*30 then
  1731. speeching=false
  1732. end
  1733. end
  1734. local col={"Bright red","Bright yellow","Bright orange"}
  1735. MagicCircle(BrickColor.new(col[math.random(1,#col)]),"SmoothPlastic",cf(pod.Position),5,5,5,10.5,10.5,10.5,.1,1)
  1736. for i=1,4 do
  1737. MagicBlock(BrickColor.new(col[math.random(1,#col)]),cf(pod.Position)*cf(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100),5,5,5,6,6,6,.1)
  1738. end
  1739. --[[local p = Instance.new("Sound",b)
  1740. p.SoundId="http://www.roblox.com/asset/?id=".."216782105"
  1741. p.Pitch=.8
  1742. p.Volume=1
  1743. p:Play()]]
  1744. so("216782105",pod,.5,1.5)
  1745. MagniDamage(pod,15,15,20,math.random(35,55),"Normal",pod,.15,2,math.random(55,97),true,true,false)
  1746. MagniBuff(RootPart,45,"Defense",-.65,800)
  1747. MagniBuff(RootPart,45,"Movement",-.25,800)
  1748. MagniBuff(RootPart,45,"Damage",-.8,800)
  1749. showDamage(Character,10,"Damage")
  1750. Character.Humanoid:TakeDamage(10)
  1751. Stagger.Value=true
  1752. cooldowns[3]=0
  1753. pod.Parent=nil
  1754. pod2.Parent=nil
  1755. dec.Parent=nil
  1756. dec2.Parent=nil
  1757. end
  1758. attack=false
  1759. resumeControl()
  1760. end
  1761.  
  1762. function do4()
  1763. if attack==true then return end
  1764. if Player.Name=="speedydude900" or Player.Name=="SazErenos" or player.Name == "Reyne" or Player.Name=="Player1" then
  1765. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1766. local hitfloord,posfloord=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1767. if cooldowns[4]>=cooldownmax and mana.Value>=50 and (posfloord - RootPart.Position).magnitude <= 6 then
  1768. attack=true
  1769. stop = true
  1770. mana.Value=mana.Value-50
  1771. local s = game.Players.LocalPlayer.Character.Torso
  1772. local p = Instance.new("Sound",s)
  1773. p.SoundId="http://www.roblox.com/asset/?id="..xl[math.random(1,#xl)]
  1774. p.Volume=1
  1775. game:GetService("Debris"):AddItem(p,4)
  1776. p:Play()
  1777. local sl = Instance.new("IntValue",s.Parent.Stats.Decrease)
  1778. sl.Name="DecreaseMvmt"
  1779. sl.Value=100
  1780. -----
  1781. local xdir = RootPart.CFrame.lookVector
  1782. local xpos = posfloord - Vector3.new(0,66,0) + xdir * 25
  1783. local building=Instance.new("Model",workspace) --preload building
  1784. local p = Instance.new("Part",building) --main part
  1785. p.TopSurface=0
  1786. p.BottomSurface=0
  1787. p.Anchored=true
  1788. p.CanCollide=true
  1789. p.formFactor="Symmetric"
  1790. p.Material="Concrete"
  1791. p.Size=Vector3.new(30,90,30)
  1792. p.CFrame = CFrame.new(xpos,xpos + RootPart.CFrame.lookVector * 5)
  1793. building.PrimaryPart=p
  1794. local ps = Instance.new("Part",workspace) --emitter
  1795. ps.Anchored=true
  1796. ps.CanCollide=false
  1797. ps.CFrame = CFrame.new(posfloord + RootPart.CFrame.lookVector * 25)
  1798. ps.Size=Vector3.new(33,1,33)
  1799. ps.Transparency=1
  1800. local pem = Instance.new("ParticleEmitter",ps)
  1801. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  1802. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,10)})
  1803. pem.Lifetime=NumberRange.new(2.5,3.5)
  1804. pem.RotSpeed=NumberRange.new(-100,100)
  1805. pem.Rotation=NumberRange.new(-350,350)
  1806. pem.Texture="http://www.roblox.com/asset/?id=133619974"
  1807. pem.Speed=NumberRange.new(0,0)
  1808. pem.Acceleration=Vector3.new(0,0,0)
  1809. pem.VelocitySpread=180
  1810. pem.Rate = 250
  1811. pem.Enabled = false
  1812. for y = -1, 3 do
  1813. for r = -1, 1 do
  1814. local p = Instance.new("Part",building)
  1815. p.TopSurface=0
  1816. p.BottomSurface=0
  1817. p.Anchored=true
  1818. p.CanCollide=false
  1819. p.formFactor="Custom"
  1820. p.Size = Vector3.new(30.1,8,8)
  1821. p.CFrame = building.PrimaryPart.CFrame * CFrame.new(0,14*y - 8,10*r)
  1822. p.BrickColor=BrickColor.new("Pastel light blue")
  1823. p.Reflectance=.33
  1824. p.Material="SmoothPlastic"
  1825. end
  1826. end
  1827. -----
  1828.  
  1829. local cam = workspace.CurrentCamera
  1830. cam.CameraType="Scriptable"
  1831.  
  1832. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0,120,0) - xdir * 100,building.PrimaryPart.CFrame * CFrame.new(0,100,0),4)
  1833.  
  1834. for i=1,15 do
  1835. swait()
  1836. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.1)
  1837. Neck.C0=clerp(Neck.C0,necko*euler(.7,0,0),.3)
  1838. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.2)
  1839. RW.C0=clerp(RW.C0,cf(1.3,.5,0)*euler(-.6,0,0)*euler(0,0,.4),.2)
  1840. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1841. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(.6,0,0)*euler(0,0,-.4),.2)
  1842. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1843. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),.2)
  1844. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),.2)
  1845. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0,i,0) + Vector3.new(math.random(-100,100)/100,0,math.random(-100,100)/100)))
  1846. end
  1847. pem.Enabled = true
  1848. for i=1,25 do
  1849. swait()
  1850. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.05)
  1851. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.05)
  1852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.05)
  1853. RW.C0=clerp(RW.C0,cf(1.3,.5,0)*euler(0,0,0)*euler(0,0,.4),.05)
  1854. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.05)
  1855. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(.6,0,0)*euler(0,0,-.5),.05)
  1856. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.05)
  1857. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),.05)
  1858. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),.05)
  1859. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0,i,0) + Vector3.new(math.random(-100,100)/100,15,math.random(-100,100)/100)))
  1860. end
  1861. for i=1,40 do
  1862. swait()
  1863. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.05)
  1864. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.1)
  1865. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.1)
  1866. RW.C0=clerp(RW.C0,cf(1.3,1,0)*euler(2.5,0,0)*euler(0,0,.4),.1)
  1867. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1868. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(.6,0,0)*euler(0,0,-.5),.1)
  1869. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1870. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),.1)
  1871. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),.1)
  1872. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0,i,0) + Vector3.new(math.random(-100,100)/100,40,math.random(-100,100)/100)))
  1873. end
  1874. for i=1, 25 do
  1875. swait()
  1876. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0,i,0) + Vector3.new(math.random(-100,100)/100,80,math.random(-100,100)/100)))
  1877. end
  1878. pem.Enabled = false
  1879. game:GetService("Debris"):AddItem(ps,5)
  1880. for i=1,15 do
  1881. swait()
  1882. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.25)
  1883. Neck.C0=clerp(Neck.C0,necko*euler(.5,0,0),.3)
  1884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0.5,0,0),.35)
  1885. RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(0,0,0)*euler(.3,0,.6),.35)
  1886. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1887. LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(-0.5,0,0)*euler(0,0,-.7),.35)
  1888. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1889. RH.C0=clerp(RH.C0,cf(1,.25,-.5)*euler(.55,0,0)*euler(0,math.pi/2.2,0),.35)
  1890. LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*euler(-.7,0,0)*euler(0,-math.pi/1.8,0),.35)
  1891. end
  1892. for _,v in pairs(workspace:children()) do
  1893. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  1894. local h,t = v.Humanoid,v.Torso
  1895. if h.Health > 0 and (t.Position - RootPart.Position).magnitude <= 100 and game.Players:GetPlayerFromCharacter(v) ~= nil then --this purposefully includes us
  1896. --local ss = script.CamShake:clone()
  1897. ---ss.Parent = v
  1898. --ss.intensity.Value = 50
  1899. --ss.times.Value = 40
  1900. --ss.Disabled = false
  1901. end
  1902. end
  1903. end
  1904. local eff = Instance.new("Part",workspace)
  1905. eff.formFactor="Custom"
  1906. eff.Size=Vector3.new(1,1,1)
  1907. eff.CFrame=CFrame.new(posfloord)
  1908. eff.BrickColor=BrickColor.new("Bright yellow")
  1909. local m = Instance.new("SpecialMesh",eff)
  1910. m.MeshType="FileMesh"
  1911. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1912. m.Scale=Vector3.new(10,10,10)
  1913. eff.Parent=workspace
  1914. eff.Name="Bewm"
  1915. eff.Anchored=true
  1916. eff.CanCollide=false
  1917. game:GetService("Debris"):AddItem(eff,5)
  1918. coroutine.resume(coroutine.create(function(p,V,x)
  1919. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  1920. for i=1, 30 do
  1921. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55,0,55)/20
  1922. p.Transparency=i/30
  1923. p.CFrame = p.CFrame*V
  1924. swait()
  1925. end
  1926. p:Remove()
  1927. end),eff,CFrame.Angles(0,math.rad(math.random(-10,9)*3 + 5),0))
  1928. local sbs = Instance.new("BodyPosition",RootPart)
  1929. sbs.P=3000
  1930. sbs.D=1000
  1931. sbs.maxForce=Vector3.new(500000,5e+008,500000)
  1932. sbs.position = RootPart.CFrame.p + Vector3.new(0,2000,0)
  1933. local gl = Instance.new("BodyGyro",RootPart)
  1934. gl.P=8000
  1935. gl.D=400
  1936. gl.maxTorque=Vector3.new(5e+007,0,5e+007)
  1937. gl.cframe = RootPart.CFrame
  1938. local sk = Instance.new("Part",workspace)
  1939. sk.Name="D"
  1940. sk.CanCollide=false
  1941. sk.Anchored=true
  1942. sk.Transparency=1
  1943. sk.Size=Vector3.new(1,1,1)
  1944. sk.CFrame=RootPart.CFrame
  1945. local p = Instance.new("Sound",sk)
  1946. p.SoundId="http://www.roblox.com/asset/?id=".."134012322"
  1947. p.Volume=1
  1948. p.Pitch=.8
  1949. game:GetService("Debris"):AddItem(sk,4)
  1950. for i=1,5 do --just to say I'm not lazy, e'en though no one's going to see these frames
  1951. swait()
  1952. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.4)
  1953. Neck.C0=clerp(Neck.C0,necko*euler(-.7,0,0),.4)
  1954. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.4)
  1955. RW.C0=clerp(RW.C0,cf(1.3,.5,0)*euler(-.2,0,0)*euler(0,0,.1),.4)
  1956. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1957. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(math.pi*.95,0,0)*euler(0,0,-.2),.4)
  1958. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1959. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.3)*euler(0,math.pi/2,0),.4)
  1960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.3)*euler(0,-math.pi/2,0),.4)
  1961. end
  1962. --167273611
  1963. --165970126 boom
  1964. wait(.5)
  1965. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0,100,0) - xdir * 65,building.PrimaryPart.CFrame * CFrame.new(0,60,0),2)
  1966. wait(.5)
  1967. local pz = Instance.new("Sound",building.PrimaryPart)
  1968. pz.SoundId="http://www.roblox.com/asset/?id=".."167273611"
  1969. pz.Pitch=1
  1970. pz.Volume=1
  1971. pz:Play()
  1972. wait(1)
  1973. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),1)
  1974. Neck.C0=clerp(Neck.C0,necko*euler(-.7,0,0),1)
  1975. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),1)
  1976. RW.C0=clerp(RW.C0,cf(1.3,.5,0)*euler(-math.pi,0,0)*euler(0,0,.5),1)
  1977. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),1)
  1978. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(math.pi,0,0)*euler(0,0,-.5),1)
  1979. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),1)
  1980. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),1)
  1981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),1)
  1982. sbs:Destroy()
  1983. RootPart.Anchored = true
  1984. gl:Destroy()
  1985. local start = building.PrimaryPart.CFrame * CFrame.new(0,810,0)
  1986. local xpart = Instance.new("Part",s.Parent)
  1987. xpart.Name="ROAD ROLLER DA!"
  1988. xpart.TopSurface=0
  1989. xpart.BottomSurface=0
  1990. xpart.Anchored = true
  1991. xpart.CanCollide=false
  1992. xpart.Size=Vector3.new(1,1,1)
  1993. local xm = Instance.new("SpecialMesh",xpart)
  1994. xm.MeshType="FileMesh"
  1995. xm.Scale=Vector3.new(7.5,7.5,7.5)
  1996. xm.TextureId="http://www.roblox.com/asset?id=113216977"
  1997. xm.MeshId="http://www.roblox.com/asset?id=113216991"
  1998. for i=1, 47 do
  1999. swait()
  2000. pz.Volume = .05 + i*.2
  2001. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0,140,0) - xdir * 90,s.CFrame,5.1 - i*.1)
  2002. RootPart.CFrame = start * CFrame.new(0,-i*3.5 - i ^ 1.65 + 5,0) * CFrame.Angles(-math.pi,0,0)
  2003. xpart.CFrame = RootPart.CFrame * CFrame.new(0,2,2) * CFrame.Angles(math.pi,0,0)
  2004. end
  2005. game:GetService("Debris"):AddItem(pz,3)
  2006. local p = Instance.new("Sound",s)
  2007. p.SoundId="http://www.roblox.com/asset/?id=".."165970126"
  2008. p.Volume=1
  2009. p.Pitch=.85
  2010. game:GetService("Debris"):AddItem(p,4)
  2011. p:Play()
  2012. local p = Instance.new("Sound",workspace)
  2013. p.SoundId="http://www.roblox.com/asset/?id=".."165970126"
  2014. p.Volume=.05
  2015. p.Pitch=.85
  2016. game:GetService("Debris"):AddItem(p,4)
  2017. p:Play()
  2018. MagniDamage(RootPart,55,20,30,math.random(50,100),"Normal",building.PrimaryPart,.05,2,9999,false,false,false,"Defense",0,0)
  2019. MagniDamage(building.PrimaryPart,55,20,30,math.random(100,150),"Normal",building.PrimaryPart,.05,2,9999,false,false,false,"Defense",0,0)
  2020. --Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration
  2021. local p = Instance.new("Sound",RootPart)
  2022. p.SoundId="http://www.roblox.com/asset/?id=".."216782105"
  2023. p.Pitch=.8
  2024. p.Volume=1
  2025. p:Play()
  2026. game:GetService("Debris"):AddItem(p,4)
  2027. local p = Instance.new("Sound",s)
  2028. p.SoundId="http://www.roblox.com/asset/?id=".."169628396"
  2029. p.Volume=1
  2030. p.Pitch=.8
  2031. game:GetService("Debris"):AddItem(p,4)
  2032. p:Play()
  2033. local p = Instance.new("Sound",workspace)
  2034. p.SoundId="http://www.roblox.com/asset/?id=".."169628396"
  2035. p.Volume=.05
  2036. p.Pitch=.8
  2037. game:GetService("Debris"):AddItem(p,4)
  2038. p:Play()
  2039.  
  2040. local pem = Instance.new("ParticleEmitter",building.PrimaryPart)
  2041. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2042. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,8),NumberSequenceKeypoint.new(1,10)})
  2043. pem.Lifetime=NumberRange.new(2.5,3.5)
  2044. pem.RotSpeed=NumberRange.new(-69,69)
  2045. pem.Rotation=NumberRange.new(-350,350)
  2046. pem.Texture="http://www.roblox.com/asset/?id=133619974"
  2047. pem.Speed=NumberRange.new(2,12)
  2048. pem.Acceleration=Vector3.new(0,-10,0)
  2049. pem.VelocitySpread=180
  2050. pem.Rate = 5
  2051. pem.Enabled = true
  2052. spawn(function() wait() pem:Emit(200) end)
  2053. local kek = {"http://www.roblox.com/asset/?id=48803786","http://www.roblox.com/asset/?id=116579230","http://www.roblox.com/asset/?id=187884226","http://www.roblox.com/asset/?id=2426617"}
  2054. for _,v in pairs(building:children()) do
  2055. if v.BrickColor == BrickColor.new("Pastel light blue") then
  2056. if _%3 == 0 then
  2057. local p = Instance.new("Sound",v)
  2058. p.SoundId="http://www.roblox.com/asset/?id=".."144884907"
  2059. p.Pitch=math.random(65,80)/100
  2060. p.Volume=1
  2061. p:Play()
  2062. game:GetService("Debris"):AddItem(p,4)
  2063. end
  2064.  
  2065. local sks = Instance.new("Part",building)
  2066. sks.Name="DIIC"
  2067. sks.Anchored=true
  2068. sks.CanCollide=false
  2069. sks.formFactor="Custom"
  2070. sks.Size=Vector3.new(.2,8,8)
  2071. sks.BrickColor=BrickColor:Red()
  2072. sks.CFrame = v.CFrame * CFrame.new(15,0,0)
  2073. sks.Transparency=1
  2074.  
  2075. local pem = Instance.new("ParticleEmitter",sks)
  2076. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2077. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.15),NumberSequenceKeypoint.new(1,.15)})
  2078. pem.Lifetime=NumberRange.new(3.5,4)
  2079. pem.RotSpeed=NumberRange.new(-110,110)
  2080. pem.Rotation=NumberRange.new(-350,350)
  2081. pem.Texture="http://www.roblox.com/asset/?id=316915922"
  2082. pem.Speed=NumberRange.new(5,50)
  2083. pem.Acceleration=Vector3.new(0,-20,0)
  2084. pem.VelocitySpread=80
  2085. pem.Rate = 0
  2086. pem.LightEmission=-.2
  2087. pem.Enabled = true
  2088. pem.EmissionDirection="Right"
  2089. spawn(function() wait() pem:Emit(50) end)
  2090.  
  2091. local pem = Instance.new("ParticleEmitter",sks)
  2092. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2093. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)})
  2094. pem.Lifetime=NumberRange.new(3.5,4)
  2095. pem.RotSpeed=NumberRange.new(-110,110)
  2096. pem.Rotation=NumberRange.new(-350,350)
  2097. pem.Texture="http://www.roblox.com/asset/?id=316915935"
  2098. pem.Speed=NumberRange.new(5,50)
  2099. pem.Acceleration=Vector3.new(0,-22,0)
  2100. pem.VelocitySpread=70
  2101. pem.Rate = 0
  2102. pem.LightEmission=-.2
  2103. pem.Enabled = true
  2104. pem.EmissionDirection="Right"
  2105. spawn(function() wait() pem:Emit(50) end)
  2106.  
  2107. local pem = Instance.new("ParticleEmitter",sks)
  2108. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2109. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
  2110. pem.Lifetime=NumberRange.new(3.5,4)
  2111. pem.RotSpeed=NumberRange.new(-110,110)
  2112. pem.Rotation=NumberRange.new(-350,350)
  2113. pem.Texture="http://www.roblox.com/asset/?id=316915947"
  2114. pem.Speed=NumberRange.new(5,55)
  2115. pem.Acceleration=Vector3.new(0,-20,0)
  2116. pem.VelocitySpread=60
  2117. pem.Rate = 0
  2118. pem.LightEmission=-.2
  2119. pem.Enabled = true
  2120. pem.EmissionDirection="Right"
  2121. spawn(function() wait() pem:Emit(50) end)
  2122.  
  2123. local sks = Instance.new("Part",building)
  2124. sks.Name="DIIC"
  2125. sks.Anchored=true
  2126. sks.CanCollide=false
  2127. sks.formFactor="Custom"
  2128. sks.Size=Vector3.new(.2,8,8)
  2129. sks.BrickColor=BrickColor:Red()
  2130. sks.CFrame = v.CFrame * CFrame.new(-15,0,0)
  2131. sks.Transparency=1
  2132.  
  2133. local pem = Instance.new("ParticleEmitter",sks)
  2134. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2135. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.15),NumberSequenceKeypoint.new(1,.15)})
  2136. pem.Lifetime=NumberRange.new(3.5,4)
  2137. pem.RotSpeed=NumberRange.new(-110,110)
  2138. pem.Rotation=NumberRange.new(-350,350)
  2139. pem.Texture="http://www.roblox.com/asset/?id=316915922"
  2140. pem.Speed=NumberRange.new(5,50)
  2141. pem.Acceleration=Vector3.new(0,-20,0)
  2142. pem.VelocitySpread=80
  2143. pem.Rate = 0
  2144. pem.LightEmission=-.2
  2145. pem.Enabled = true
  2146. pem.EmissionDirection="Left"
  2147. spawn(function() wait() pem:Emit(50) end)
  2148.  
  2149. local pem = Instance.new("ParticleEmitter",sks)
  2150. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2151. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)})
  2152. pem.Lifetime=NumberRange.new(3.5,4)
  2153. pem.RotSpeed=NumberRange.new(-110,110)
  2154. pem.Rotation=NumberRange.new(-350,350)
  2155. pem.Texture="http://www.roblox.com/asset/?id=316915935"
  2156. pem.Speed=NumberRange.new(5,50)
  2157. pem.Acceleration=Vector3.new(0,-22,0)
  2158. pem.VelocitySpread=70
  2159. pem.Rate = 0
  2160. pem.LightEmission=-.2
  2161. pem.Enabled = true
  2162. pem.EmissionDirection="Left"
  2163. spawn(function() wait() pem:Emit(50) end)
  2164.  
  2165. local pem = Instance.new("ParticleEmitter",sks)
  2166. pem.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2167. pem.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
  2168. pem.Lifetime=NumberRange.new(3.5,4)
  2169. pem.RotSpeed=NumberRange.new(-110,110)
  2170. pem.Rotation=NumberRange.new(-350,350)
  2171. pem.Texture="http://www.roblox.com/asset/?id=316915947"
  2172. pem.Speed=NumberRange.new(5,55)
  2173. pem.Acceleration=Vector3.new(0,-20,0)
  2174. pem.VelocitySpread=60
  2175. pem.Rate = 0
  2176. pem.LightEmission=-.2
  2177. pem.Enabled = true
  2178. pem.EmissionDirection="Left"
  2179. spawn(function() wait() pem:Emit(50) end)
  2180.  
  2181.  
  2182. local thed = Instance.new("Decal",v)
  2183. thed.Face="Left"
  2184. thed.Texture=kek[math.random(1,#kek)]
  2185.  
  2186. local thed = Instance.new("Decal",v)
  2187. thed.Face="Right"
  2188. thed.Texture=kek[math.random(1,#kek)]
  2189. end
  2190. end
  2191. local eff = Instance.new("Part",workspace)
  2192. eff.formFactor="Custom"
  2193. eff.Size=Vector3.new(1,1,1)
  2194. eff.CFrame=CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0,35,0))
  2195. eff.BrickColor=BrickColor.new("Institutional white")
  2196. local m = Instance.new("SpecialMesh",eff)
  2197. m.MeshType="FileMesh"
  2198. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  2199. m.Scale=Vector3.new(10,10,10)
  2200. eff.Parent=workspace
  2201. eff.Name="Bewm"
  2202. eff.Anchored=true
  2203. eff.CanCollide=false
  2204. game:GetService("Debris"):AddItem(eff,5)
  2205. coroutine.resume(coroutine.create(function(p,V,x)
  2206. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  2207. for i=1, 20 do
  2208. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(65,0,65)/20
  2209. p.Transparency=i/20
  2210. p.CFrame = p.CFrame*V
  2211. swait()
  2212. end
  2213. p:Remove()
  2214. end),eff,CFrame.Angles(0,math.rad(math.random(-10,9)*3 + 5),0))
  2215. local eff = Instance.new("Part",workspace)
  2216. eff.formFactor="Custom"
  2217. eff.Size=Vector3.new(1,1,1)
  2218. eff.CFrame=CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0,35,0))
  2219. eff.BrickColor=BrickColor.new("Institutional white")
  2220. local m = Instance.new("SpecialMesh",eff)
  2221. m.MeshType="FileMesh"
  2222. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  2223. m.Scale=Vector3.new(10,10,10)
  2224. eff.Parent=workspace
  2225. eff.Name="Bewm"
  2226. eff.Anchored=true
  2227. eff.CanCollide=false
  2228. game:GetService("Debris"):AddItem(eff,5)
  2229. coroutine.resume(coroutine.create(function(p,V,x)
  2230. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  2231. for i=1, 10 do
  2232. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(145,0,145)/10
  2233. p.Transparency=.5 + i/20
  2234. p.CFrame = p.CFrame*V
  2235. swait()
  2236. end
  2237. p:Remove()
  2238. end),eff,CFrame.Angles(0,math.rad(math.random(-10,9)*3 + 5),0))
  2239.  
  2240. local eff = Instance.new("Part",workspace)
  2241. eff.formFactor="Custom"
  2242. eff.Size=Vector3.new(1,1,1)
  2243. eff.CFrame=CFrame.new(building.PrimaryPart.CFrame.p + Vector3.new(0,40,0))
  2244. eff.BrickColor=BrickColor.new("Institutional white")
  2245. local m = Instance.new("SpecialMesh",eff)
  2246. m.MeshType="FileMesh"
  2247. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  2248. m.Scale=Vector3.new(10,10,10)
  2249. eff.Parent=workspace
  2250. eff.Name="Bewm"
  2251. eff.Anchored=true
  2252. eff.CanCollide=false
  2253. game:GetService("Debris"):AddItem(eff,5)
  2254. coroutine.resume(coroutine.create(function(p,V,x)
  2255. local R = Vector3.new(math.random(-5,5),math.random(7,9),math.random(-5,5)) / 70
  2256. for i=1, 10 do
  2257. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(125,0,125)/10
  2258. p.Transparency=.5 + i/20
  2259. p.CFrame = p.CFrame*V
  2260. swait()
  2261. end
  2262. p:Remove()
  2263. end),eff,CFrame.Angles(0,-math.rad(math.random(-10,9)*3 + 5),0))
  2264.  
  2265. for _,v in pairs(workspace:children()) do
  2266. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  2267. local h,t = v.Humanoid,v.Torso
  2268. if h.Health > 0 and (t.Position - RootPart.Position).magnitude <= 400 and game.Players:GetPlayerFromCharacter(v) ~= nil then --this purposefully includes us
  2269. local ss = script.CamShake:clone()
  2270. ss.Parent = v
  2271. ss.intensity.Value = 80
  2272. ss.times.Value = 50
  2273. ss.Disabled = false
  2274. end
  2275. end
  2276. end
  2277.  
  2278. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),1)
  2279. Neck.C0=clerp(Neck.C0,necko*euler(.5,0,0),.3)
  2280. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0.5,0,0),1)
  2281. RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(0,0,0)*euler(.3,0,.6),1)
  2282. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2283. LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(-0.5,0,0)*euler(0,0,-.7),1)
  2284. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2285. RH.C0=clerp(RH.C0,cf(1,.25,-.5)*euler(.55,0,0)*euler(0,math.pi/2.2,0),1)
  2286. LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*euler(-.7,0,0)*euler(0,-math.pi/1.8,0),1)
  2287.  
  2288. for i=1, 3 do
  2289. building:SetPrimaryPartCFrame(CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0,2.5,0)))
  2290. RootPart.CFrame = start * CFrame.new(0,-100*3.5 - 100 ^ 1.31 + 8 - i*2.5,0) * CFrame.Angles(0,0,0)
  2291. xpart.CFrame = RootPart.CFrame * CFrame.new(0,-2,2) * CFrame.Angles(0,0,0)
  2292. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0,140,0) - xdir * 90,CFrame.new(s.Position),.5)
  2293. swait()
  2294. end
  2295.  
  2296. wait(.5)
  2297.  
  2298. local p = Instance.new("Sound",RootPart)
  2299. p.SoundId="http://www.roblox.com/asset/?id=".."169628396"
  2300. p.Volume=1
  2301. p.Pitch=1
  2302. game:GetService("Debris"):AddItem(p,30)
  2303. p:Play()
  2304. cam:Interpolate(xpart.CFrame * CFrame.new(10,10,-10),xpart.CFrame + Vector3.new(0,2,0),1)
  2305.  
  2306. --[[for i=1,5 do
  2307. swait()
  2308. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.4)
  2309. Neck.C0=clerp(Neck.C0,necko*euler(-.7,0,0),.4)
  2310. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.4)
  2311. RW.C0=clerp(RW.C0,cf(1.3,.5,0)*euler(-.2,0,0)*euler(0,0,.1),.4)
  2312. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2313. LW.C0=clerp(LW.C0,cf(-1.3,.5,0)*euler(math.pi*.95,0,0)*euler(0,0,-.2),.4)
  2314. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2315. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.3)*euler(0,math.pi/2,0),.4)
  2316. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.3)*euler(0,-math.pi/2,0),.4)
  2317. end]]
  2318.  
  2319. wait(4)
  2320. xpart:Remove()
  2321. RootPart.Anchored=false
  2322. cam.CameraType = "Custom"
  2323. sl.Parent=nil
  2324. attack = false
  2325. stop=false
  2326. cooldowns[4]=0
  2327. wait(3)
  2328. building:Destroy()
  2329. end
  2330. end
  2331. end
  2332. function taunt()
  2333. if attack==true then return end
  2334. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2335. if cooldowns[5]>=cooldownmax and mana.Value>=20 then
  2336.  
  2337. stop=false
  2338. attack=true
  2339. cooldowns[5]=40
  2340. s = Character.Torso
  2341.  
  2342. local p = Instance.new("Sound",s)
  2343. p.SoundId="http://www.roblox.com/asset/?id=".."318111747"
  2344. p.Volume=1
  2345. game:GetService("Debris"):AddItem(p,4)
  2346. p:Play()
  2347.  
  2348. for i=1,15 do
  2349. swait()
  2350. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.1)
  2351. Neck.C0=clerp(Neck.C0,necko*euler(-.7,0,0),.2)
  2352. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.2)
  2353. RW.C0=clerp(RW.C0,cf(1.3,1.15,0)*euler(math.pi*.99,0,0)*euler(0,0,.2),.2)
  2354. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2355. LW.C0=clerp(LW.C0,cf(-1.3,1.15,0)*euler(math.pi*.99,0,0)*euler(0,0,-.2),.2)
  2356. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2357. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,0,0.1)*euler(0,math.pi/2,0),.2)
  2358. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,0,-0.1)*euler(0,-math.pi/2,0),.2)
  2359. end
  2360. local b = Instance.new("Part",workspace)
  2361. b.Name="HEILx2"
  2362. b.TopSurface=0
  2363. b.BottomSurface=0
  2364. b.formFactor="Symmetric"
  2365. b.CanCollide=false
  2366. b.Size=Vector3.new(3,2,2)
  2367. local m = Instance.new("SpecialMesh",b)
  2368. m.MeshType="FileMesh"
  2369. m.MeshId="http://www.roblox.com/asset/?id=192488915"
  2370. m.TextureId="http://www.roblox.com/asset/?id=192488947"
  2371. local wa = Instance.new("Weld",b)
  2372. wa.Part0 = s.Parent["Right Arm"]
  2373. wa.Part1 = b
  2374. wa.C0 = CFrame.new(-1.65,-1.2,0) * CFrame.Angles(math.pi*1.025,0,.2)
  2375. b.Transparency=0
  2376. local p = Instance.new("Sound",s)
  2377. p.SoundId="http://www.roblox.com/asset/?id=".."111124523"
  2378. p.Volume=1
  2379. p.Pitch=math.random(80,90)/100
  2380. game:GetService("Debris"):AddItem(p,4)
  2381. p:Play()
  2382. wait(.5)
  2383. local p = Instance.new("Sound",s)
  2384. p.SoundId="http://www.roblox.com/asset/?id=".."190126363"
  2385. p.Volume=1
  2386. p.Pitch=math.random(80,90)/100
  2387. game:GetService("Debris"):AddItem(p,4)
  2388.  
  2389. wait(.2)
  2390. local trx = math.random(0,100)
  2391. if trx <= 10 then
  2392.  
  2393. --SEIG HEIL
  2394.  
  2395. local bb = Instance.new("Part",b)
  2396. bb.Name="HEIL"
  2397. bb.TopSurface=0
  2398. bb.BottomSurface=0
  2399. bb.formFactor="Symmetric"
  2400. bb.CanCollide=false
  2401. bb.Size=Vector3.new(1,1,1)
  2402. local m = Instance.new("SpecialMesh",bb)
  2403. m.MeshType="FileMesh"
  2404. m.MeshId="http://www.roblox.com/asset/?id=9419831"
  2405. m.TextureId="http://www.roblox.com/asset/?id=9419827"
  2406. m.Scale=Vector3.new(.7,.7,.7)
  2407. local w = Instance.new("Weld",b)
  2408. w.Part0 = b
  2409. w.Part1 = bb
  2410. w.C0 = CFrame.new(0,.74,-.25) * CFrame.Angles(0,0,0)
  2411. bb.Transparency=0
  2412. local p = Instance.new("Sound",s)
  2413. p.SoundId="http://www.roblox.com/asset/?id=".."111124523"
  2414. p.Volume=1
  2415. p.Pitch=math.random(100,110)/100
  2416. game:GetService("Debris"):AddItem(p,4)
  2417. p:Play()
  2418.  
  2419. wait(.4)
  2420.  
  2421. local p = Instance.new("Sound",s)
  2422. p.SoundId="http://www.roblox.com/asset/?id="..xe[math.random(1,#xe)]
  2423. p.Volume=1
  2424. p.Pitch=1.4
  2425. game:GetService("Debris"):AddItem(p,4)
  2426. p:Play()
  2427.  
  2428. wait(1.5)
  2429. end
  2430.  
  2431. local topkek = {317667032,317667048,317667070,317670161}
  2432. local dix = {13.8,12,12.35,15}
  2433. local rando = math.random(1,4)
  2434. if trx <= 10 then
  2435. local poop = {}
  2436. for i=1, 33 do
  2437. local p = Instance.new("Sound",b)
  2438. p.SoundId="http://www.roblox.com/asset/?id="..topkek[rando]
  2439. p.Volume=1
  2440. p.Pitch=1
  2441. if rando == 4 then p.Pitch = 6.66 end -- :>
  2442. table.insert(poop,p)
  2443. end
  2444. wait(.25)
  2445. for _,v in pairs(poop) do
  2446. v:Play()
  2447. end
  2448. wait(dix[rando]*.9 - 2.5)
  2449. wait(.1)
  2450. else
  2451. local p = Instance.new("Sound",b)
  2452. p.SoundId="http://www.roblox.com/asset/?id="..topkek[rando]
  2453. p.Volume=1
  2454. p.Pitch=1
  2455. if rando == 4 then p.Pitch = 6.66 end -- :>
  2456. p:Play()
  2457. print(rando)
  2458. wait(dix[rando]*.9 - 2.5)
  2459. wait(.1)
  2460. end
  2461. local thed = {142539074,142539082,142539090}
  2462. local p = Instance.new("Sound",s)
  2463. p.SoundId="http://www.roblox.com/asset/?id="..thed[math.random(1,#thed)]
  2464. p.Volume=1
  2465. p.Pitch=1
  2466. game:GetService("Debris"):AddItem(p,4)
  2467. p:Play()
  2468. local borb = Instance.new("NumberValue",s.Parent.Stats.Decrease)
  2469. borb.Name="DecreaseMvmt"
  2470. borb.Value = 100
  2471. for i=1,15 do
  2472. swait()
  2473. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.5,0),.1)
  2474. Neck.C0=clerp(Neck.C0,necko*euler(-1,0,0),.15)
  2475. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(-1.4,0,0),.15)
  2476. RW.C0=clerp(RW.C0,cf(1.3,1.15,0)*euler(math.pi*1.15,0,0)*euler(0,0,.1),.15)
  2477. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2478. LW.C0=clerp(LW.C0,cf(-1.3,1.15,0)*euler(math.pi*1.15,0,0)*euler(0,0,-.1),.15)
  2479. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2480. RH.C0=clerp(RH.C0,cf(1,-.9,.5)*euler(-1.4,0,0.1)*euler(0,math.pi/2,0),.15)
  2481. LH.C0=clerp(LH.C0,cf(-1,-.9,.5)*euler(-1.4,0,-0.1)*euler(0,-math.pi/2,0),.15)
  2482. end
  2483. wait(.1)
  2484. for i=1,10 do
  2485. swait()
  2486. handlewld.C0=clerp(handlewld.C0,euler(0,0,0)*cf(0,1.4,0),.1)
  2487. Neck.C0=clerp(Neck.C0,necko*euler(-1,0,0),.3)
  2488. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-1,-.8)*euler(1.4,0,0),.3)
  2489. RW.C0=clerp(RW.C0,cf(1.3,1.15,0)*euler(math.pi*.8,0,0)*euler(0,0,.1),.3)
  2490. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2491. LW.C0=clerp(LW.C0,cf(-1.3,1.15,0)*euler(math.pi*.8,0,0)*euler(0,0,-.1),.3)
  2492. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2493. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(1.4,0,0.1)*euler(0,math.pi/2,0),.3)
  2494. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(1.4,0,-0.1)*euler(0,-math.pi/2,0),.3)
  2495.  
  2496. if i == 6 then
  2497. wa:Destroy()
  2498. local vb = Instance.new("BodyVelocity",b)
  2499. vb.P=4000
  2500. vb.maxForce=Vector3.new(545000,545000,545000)
  2501. vb.velocity = RootPart.CFrame.lookVector * 220 + Vector3.new(0,5,0)
  2502. game:GetService("Debris"):AddItem(vb,.25)
  2503. local vb = Instance.new("BodyAngularVelocity",b)
  2504. vb.maxTorque=Vector3.new(5e+005,5e+005,5e+005)
  2505. vb.angularvelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2506. game:GetService("Debris"):AddItem(vb,.25)
  2507. b.CanCollide = true
  2508.  
  2509.  
  2510. local tt = Instance.new("ObjectValue",sz)
  2511. tt.Name="creator"
  2512. tt.Value = s.Parent
  2513.  
  2514. end
  2515.  
  2516. end
  2517. wait(.2)
  2518. borb.Parent=nil
  2519. game:GetService("Debris"):AddItem(b,5)
  2520. attack=false
  2521. end
  2522. end
  2523. function DecreaseStat(Model,Stat,Amount,Duration)
  2524. if Model:findFirstChild("Stats")~=nil then
  2525. if Model.Stats[Stat]~=nil then
  2526. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2527. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2528. dur=Instance.new("NumberValue",d)
  2529. dur.Name="Duration"
  2530. dur.Value=Duration
  2531. game:GetService("Debris"):AddItem(d,20)
  2532. if Stat=="Damage" then
  2533. d.Name="DecreaseAtk"
  2534. elseif Stat=="Defense" then
  2535. d.Name="DecreaseDef"
  2536. elseif Stat=="Movement" then
  2537. d.Name="DecreaseMvmt"
  2538. end
  2539. if Model:findFirstChild("Torso")~=nil then
  2540. display=""
  2541. if Stat=="Damage" then
  2542. if Amount>0 then
  2543. display="-Damage"
  2544. else
  2545. display="+Damage"
  2546. end
  2547. elseif Stat=="Defense" then
  2548. if Amount>0 then
  2549. display="-Defense"
  2550. else
  2551. display="+Defense"
  2552. end
  2553. elseif Stat=="Movement" then
  2554. if Amount>0 then
  2555. display="-Movement"
  2556. else
  2557. display="+Movement"
  2558. end
  2559. end
  2560. showDamage(Model,display,"Debuff")
  2561. end
  2562. d.Value=Amount
  2563. end
  2564. end
  2565. end
  2566.  
  2567. function GetDist(Part1,Part2,magni)
  2568. local targ=Part1.Position-Part2.Position
  2569. local mag=targ.magnitude
  2570. if mag<=magni then
  2571. return true
  2572. else
  2573. return false
  2574. end
  2575. end
  2576.  
  2577. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2578. for _,c in pairs(workspace:children()) do
  2579. local hum=c:findFirstChild("Humanoid")
  2580. if hum~=nil then
  2581. local head=nil
  2582. for _,d in pairs(c:children()) do
  2583. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2584. if d.className=="Model" and ranged~=true then
  2585. head=d:findFirstChild("Hitbox")
  2586. if d.Parent==Character then break end
  2587. if head~=nil then
  2588. local targ=head.Position-Part.Position
  2589. local mag=targ.magnitude
  2590. if mag<=magni and c.Name~=Player.Name then
  2591. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2592. ref.Anchored=true
  2593. ref.CFrame=cf(head.Position)
  2594. game:GetService("Debris"):AddItem(ref,1)
  2595. hitnum=math.random(1,5)
  2596. if hitnum==1 then so("199148971",ref,1,1)
  2597. elseif hitnum==2 then so("199149025",ref,1,1)
  2598. elseif hitnum==3 then so("199149072",ref,1,1)
  2599. elseif hitnum==4 then so("199149109",ref,1,1)
  2600. elseif hitnum==5 then so("199149119",ref,1,1)
  2601. end
  2602. StaggerHit.Value=true
  2603. end
  2604. end
  2605. end
  2606. if d.className=="Part" then
  2607. head=d
  2608. if head~=nil then
  2609. local targ=head.Position-Part.Position
  2610. local mag=targ.magnitude
  2611. if mag<=magni and c.Name~=Player.Name then
  2612. if stun==nil then
  2613. stun=math.random(5,10)
  2614. end
  2615. local Rang=nil
  2616. if Ranged==false then
  2617. Rang=true
  2618. end
  2619. local stag=nil
  2620. if shbash==true then
  2621. stag=true
  2622. end
  2623. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2624. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2625. end
  2626. end
  2627. end
  2628. end
  2629. end
  2630. end
  2631. end
  2632.  
  2633. function MagniBuff(Part,magni,Dec,DecAm,Dur,others)
  2634. if Player.Neutral==true then
  2635. DecreaseStat(Character,Dec,DecAm/2,Dur)
  2636. end
  2637. for _,c in pairs(workspace:children()) do
  2638. local hum=c:findFirstChild("Humanoid")
  2639. if hum~=nil then
  2640. local head=c:findFirstChild("Torso")
  2641. if head~=nil then
  2642. local targ=head.Position-Part.Position
  2643. local mag=targ.magnitude
  2644. if others==nil then
  2645. if mag<=magni then
  2646. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2647. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2648. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then
  2649. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  2650. end
  2651. end
  2652. end
  2653. end
  2654. else
  2655. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2656. if mag<=magni and head.Parent~=Character then
  2657. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2658. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then
  2659. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  2660. end
  2661. end
  2662. end
  2663. end
  2664. end
  2665. end
  2666. end
  2667. end
  2668. end
  2669.  
  2670. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2671. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2672. end
  2673.  
  2674. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2675. LastPoint=Point
  2676. function effect(Color,Ref,LP,P1,returnn)
  2677. if LP==nil or P1==nil then return end
  2678. local effectsmsh=Instance.new("CylinderMesh")
  2679. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2680. effectsmsh.Name="Mesh"
  2681. local effectsg=Instance.new("Part")
  2682. NoOutline(effectsg)
  2683. effectsg.formFactor=3
  2684. effectsg.CanCollide=false
  2685. effectsg.Name="Eff"
  2686. effectsg.Locked=true
  2687. effectsg.Anchored=true
  2688. effectsg.Size=Vector3.new(0.5,1,0.5)
  2689. effectsg.Parent=workspace
  2690. effectsmsh.Parent=effectsg
  2691. effectsg.BrickColor=BrickColor.new(Color)
  2692. effectsg.Reflectance=Ref
  2693. local point1=P1
  2694. local mg=(LP.p - point1.p).magnitude
  2695. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2696. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2697. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2698. game:GetService("Debris"):AddItem(effectsg,2)
  2699. if returnn then return effectsg end
  2700. if not returnn then
  2701. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2702. end
  2703. end
  2704.  
  2705. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2706. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2707. prt.Anchored=true
  2708. prt.CFrame=cframe
  2709. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2710. game:GetService("Debris"):AddItem(prt,10)
  2711. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2712. end
  2713.  
  2714. function MagicSpike(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2715. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2716. prt.Anchored=true
  2717. prt.CFrame=cframe
  2718. local msh=mesh("SpecialMesh",prt,"FileMesh","1033714",vt(0,0,0),vt(x1,y1,z1))
  2719. game:GetService("Debris"):AddItem(prt,10)
  2720. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2721. end
  2722.  
  2723. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  2724. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2725. prt.Anchored=true
  2726. prt.CFrame=cframe
  2727. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2728. game:GetService("Debris"):AddItem(prt,10)
  2729. if Type==1 or Type==nil then
  2730. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2731. elseif Type==2 then
  2732. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  2733. end
  2734. end
  2735.  
  2736. function MagicCloud(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2737. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2738. prt.Anchored=true
  2739. prt.CFrame=cframe
  2740. local msh=mesh("SpecialMesh",prt,"FileMesh","1095708",vt(0,0,0),vt(x1,y1,z1))
  2741. game:GetService("Debris"):AddItem(prt,10)
  2742. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2743. end
  2744.  
  2745. function MagicCircle(brickcolor,material,cframe,x1,y1,z1,x3,y3,z3,delay)
  2746. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2747. prt.Anchored=true
  2748. prt.Material=material
  2749. prt.CFrame=cframe
  2750. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2751. game:GetService("Debris"):AddItem(prt,10)
  2752. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2753. end
  2754.  
  2755. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2756. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2757. prt.Anchored=true
  2758. prt.CFrame=cframe
  2759. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2760. game:GetService("Debris"):AddItem(prt,10)
  2761. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2762. end
  2763.  
  2764. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2765. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2766. prt.Anchored=true
  2767. prt.CFrame=cframe
  2768. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2769. game:GetService("Debris"):AddItem(prt,10)
  2770. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2771. end
  2772.  
  2773. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  2774. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  2775. prt.Anchored=true
  2776. prt.CFrame=cframe
  2777. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  2778. game:GetService("Debris"):AddItem(prt,10)
  2779. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  2780. end
  2781.  
  2782. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2783. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2784. prt.Anchored=true
  2785. prt.CFrame=cframe
  2786. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2787. game:GetService("Debris"):AddItem(prt,10)
  2788. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2789. end
  2790.  
  2791. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2792. if hit.Parent==nil then
  2793. return
  2794. end
  2795. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  2796. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2797. ref.Anchored=true
  2798. ref.CFrame=cf(hit.Position)
  2799. game:GetService("Debris"):AddItem(ref,1)
  2800. hitnum=math.random(1,5)
  2801. if hitnum==1 then so("199148971",ref,1,1)
  2802. elseif hitnum==2 then so("199149025",ref,1,1)
  2803. elseif hitnum==3 then so("199149072",ref,1,1)
  2804. elseif hitnum==4 then so("199149109",ref,1,1)
  2805. elseif hitnum==5 then so("199149119",ref,1,1)
  2806. end
  2807. StaggerHit.Value=true
  2808. end
  2809. h=hit.Parent:FindFirstChild("Humanoid")
  2810. for _,v in pairs(hit.Parent:children()) do
  2811. if v:IsA("Humanoid") then
  2812. h=v
  2813. end
  2814. end
  2815. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2816. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2817. end
  2818. if hit.Parent.className=="Hat" then
  2819. hit=hit.Parent.Parent:findFirstChild("Head")
  2820. end
  2821. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2822. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2823. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2824. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2825. end
  2826. if dashing==true then
  2827. dashhit=true
  2828. dhits=dhits+1
  2829. dbuffs=dbuffs+.05
  2830. end
  2831. if doing3==true then
  2832. chit=true
  2833. end
  2834. c=Instance.new("ObjectValue")
  2835. c.Name="creator"
  2836. c.Value=game:service("Players").LocalPlayer
  2837. c.Parent=h
  2838. RecentEnemy.Value=hit.Parent
  2839. game:GetService("Debris"):AddItem(c,.5)
  2840. minim=minim*Atk.Value
  2841. maxim=maxim*Atk.Value
  2842. Damage=0
  2843. if minim==maxim then
  2844. Damage=maxim
  2845. else
  2846. Damage=math.random(minim,maxim)
  2847. end
  2848. blocked=false
  2849. enblock=nil
  2850. Stats=hit.Parent:findFirstChild("Stats")
  2851. if Stats~=nil then
  2852. invis=Stats:findFirstChild("Invisibility")
  2853. isinvis=Stats:findFirstChild("IsInvisible")
  2854. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  2855. invis.Value=0
  2856. end
  2857. enblock=Stats:findFirstChild("Block")
  2858. if enblock~=nil then
  2859. if enblock.Value==true then
  2860. blocked=true
  2861. end
  2862. end
  2863. if Stats:findFirstChild("Defense")~=nil then
  2864. if apierce==false then
  2865. Damage=Damage/(Stats.Defense.Value)
  2866. else
  2867. if Stats.Defense.Value > 1 then
  2868. val=Stats.Defense.Value*.7
  2869. else
  2870. val=Stats.Defense.Value*.95
  2871. end
  2872. Damage=Damage/val
  2873. print(val)
  2874. end
  2875. Damage=Damage/(Stats.Defense.Value)
  2876. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  2877. hitnum=math.random(1,5)
  2878. if hitnum==1 then so("199149321",hit,1,1)
  2879. elseif hitnum==2 then so("199149338",hit,1,1)
  2880. elseif hitnum==3 then so("199149367",hit,1,1)
  2881. elseif hitnum==4 then so("199149409",hit,1,1)
  2882. elseif hitnum==5 then so("199149452",hit,1,1)
  2883. end
  2884. elseif ranged==false or ranged==nil and blocked~=true then
  2885. hitnum=math.random(1,6)
  2886. if hitnum==1 then so("199149137",hit,1,1)
  2887. elseif hitnum==2 then so("199149186",hit,1,1)
  2888. elseif hitnum==3 then so("199149221",hit,1,1)
  2889. elseif hitnum==4 then so("199149235",hit,1,1)
  2890. elseif hitnum==5 then so("199149269",hit,1,1)
  2891. elseif hitnum==6 then so("199149297",hit,1,1)
  2892. end
  2893. end
  2894. if Damage<=3 and staghit==true then
  2895. if ranged~=true then
  2896. StaggerHit.Value=true
  2897. end
  2898. end
  2899. end
  2900. if Stats:findFirstChild("Stun")~=nil then
  2901. if blocked==true then
  2902. incstun=incstun/2
  2903. end
  2904. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2905. Stats.Stun.Value=Stats.Stun.Value+incstun
  2906. end
  2907. end
  2908. if Stats:findFirstChild("Stagger")~=nil then
  2909. if stagger==true then
  2910. Stats.Stagger.Value=true
  2911. end
  2912. end
  2913. end
  2914. if blocked==true then
  2915. showDamage(hit.Parent,"Block","Damage")
  2916. if ranged~=true then
  2917. enblock.Value=false
  2918. Stagger.Value=true
  2919. hitnum=math.random(1,2)
  2920. if hitnum==1 then so("199148933",hit,1,1)
  2921. elseif hitnum==2 then so("199148947",hit,1,1)
  2922. end
  2923. end
  2924. else
  2925. Damage=math.floor(Damage)
  2926. coroutine.resume(coroutine.create(function(Hum,Dam)
  2927. hit.Parent.Humanoid:TakeDamage(Damage)
  2928. end),h,Damage)
  2929. showDamage(hit.Parent,Damage,"Damage")
  2930. if DecreaseState~=nil then
  2931. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2932. end
  2933. if Type=="NormalDecreaseMvmt1" then
  2934. DecreaseStat(hit.Parent,"Movement",.1,200)
  2935. end
  2936. if Type=="Knockdown" then
  2937. hum=hit.Parent.Humanoid
  2938. hum.PlatformStand=true
  2939. coroutine.resume(coroutine.create(function(HHumanoid)
  2940. swait(1)
  2941. HHumanoid.PlatformStand=false
  2942. end),hum)
  2943. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2944. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2945. local bodvol=Instance.new("BodyVelocity")
  2946. bodvol.velocity=angle*knockback
  2947. bodvol.P=5000
  2948. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2949. bodvol.Parent=hit
  2950. rl=Instance.new("BodyAngularVelocity")
  2951. rl.P=3000
  2952. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2953. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2954. rl.Parent=hit
  2955. game:GetService("Debris"):AddItem(bodvol,.2)
  2956. game:GetService("Debris"):AddItem(rl,.2)
  2957. elseif Type=="Knockdown2" then
  2958. hum=hit.Parent.Humanoid
  2959. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2960. local bodvol=Instance.new("BodyVelocity")
  2961. bodvol.velocity=angle*knockback
  2962. bodvol.P=5000
  2963. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2964. bodvol.Parent=hit
  2965. game:GetService("Debris"):AddItem(bodvol,.2)
  2966. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  2967. vp=Instance.new("BodyVelocity")
  2968. vp.P=500
  2969. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2970. if KnockbackType==1 then
  2971. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2972. elseif KnockbackType==2 then
  2973. vp.velocity=Property.CFrame.lookVector*knockback
  2974. end
  2975. game:GetService("Debris"):AddItem(vp,.2)
  2976. if knockback>0 then
  2977. vp.Parent=hit.Parent.Torso
  2978. end
  2979. end
  2980. end
  2981. debounce=Instance.new("BoolValue")
  2982. debounce.Name="DebounceHit"
  2983. debounce.Parent=hit.Parent
  2984. debounce.Value=true
  2985. game:GetService("Debris"):AddItem(debounce,Delay)
  2986. c=Instance.new("ObjectValue")
  2987. c.Name="creator"
  2988. c.Value=Player
  2989. c.Parent=h
  2990. game:GetService("Debris"):AddItem(c,.5)
  2991. CRIT=false
  2992. end
  2993. end
  2994.  
  2995. showDamage=function(Char,Dealt,Type)
  2996. m=Instance.new("Model")
  2997. m.Name="Effect"
  2998. c=Instance.new("Part")
  2999. c.Transparency=1
  3000. c.Name="Head"
  3001. c.TopSurface=0
  3002. c.BottomSurface=0
  3003. c.formFactor="Plate"
  3004. c.Size=Vector3.new(1,.4,1)
  3005. b=Instance.new("BillboardGui",c)
  3006. b.Size=UDim2.new(5,0,5,0)
  3007. b.AlwaysOnTop=true
  3008. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3009. if Type=="Damage" then
  3010. damgui.Font="SourceSans"
  3011. if Dealt=="Block" then
  3012. damgui.TextColor3=BrickColor.new("Bright blue").Color
  3013. elseif Dealt<3 then
  3014. damgui.TextColor3=BrickColor.new("White").Color
  3015. elseif Dealt>=3 and Dealt<20 then
  3016. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  3017. else
  3018. damgui.TextColor3=BrickColor.new("Really red").Color
  3019. damgui.Font="SourceSansBold"
  3020. end
  3021. elseif Type=="Debuff" then
  3022. damgui.TextColor3=BrickColor.new("White").Color
  3023. elseif Type=="Interrupt" then
  3024. damgui.TextColor3=BrickColor.new("New Yeller").Color
  3025. end
  3026. --damgui.FontSize="Size48"
  3027. damgui.TextScaled=true
  3028. ms=Instance.new("CylinderMesh")
  3029. ms.Scale=Vector3.new(.8,.8,.8)
  3030. ms.Parent=c
  3031. c.Reflectance=0
  3032. Instance.new("BodyGyro").Parent=c
  3033. c.Parent=m
  3034. if Char:findFirstChild("Head")~=nil then
  3035. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3036. elseif Char.Parent:findFirstChild("Head")~=nil then
  3037. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3038. end
  3039. f=Instance.new("BodyPosition")
  3040. f.P=2000
  3041. f.D=100
  3042. f.maxForce=Vector3.new(545000,545000,545000)
  3043. if Type=="Damage" then
  3044. f.position=c.Position+Vector3.new(0,3,0)
  3045. elseif Type=="Debuff" or Type=="Interrupt" then
  3046. f.position=c.Position+Vector3.new(0,5,0)
  3047. end
  3048. f.Parent=c
  3049. game:GetService("Debris"):AddItem(m,5)
  3050. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3051. c.CanCollide=false
  3052. m.Parent=workspace
  3053. c.CanCollide=false
  3054. end
  3055.  
  3056. combo=0
  3057. function ob1d(mouse)
  3058. if GuardStance==true then
  3059. if MMouse.Target~=nil then
  3060. if MMouse.Target.Parent.Parent:findFirstChild("Humanoid")~=nil and MMouse.Target.Parent.Parent:findFirstChild("Torso")~=nil then
  3061. Target=MMouse.Target.Parent.Parent
  3062. GuardStance=false
  3063. end
  3064. if MMouse.Target.Parent:findFirstChild("Humanoid")~=nil and MMouse.Target.Parent:findFirstChild("Torso")~=nil then
  3065. Target=MMouse.Target.Parent
  3066. GuardStance=false
  3067. end
  3068. end
  3069. end
  3070. if attack==true or equipped==false then return end
  3071. hold=true
  3072. if Mode=="Defensive" then
  3073. if combo==0 then
  3074. combo=1
  3075. dattackone()
  3076. elseif combo==1 then
  3077. combo=2
  3078. dattacktwo()
  3079. elseif combo==2 then
  3080. combo=3
  3081. dattackthree()
  3082. elseif combo==3 then
  3083. combo=0
  3084. dattackfour()
  3085. end
  3086. else
  3087. end
  3088. coroutine.resume(coroutine.create(function()
  3089. for i=1,50 do
  3090. if attack==false then
  3091. swait()
  3092. end
  3093. end
  3094. if attack==false then
  3095. combo=0
  3096. end
  3097. end))
  3098. end
  3099.  
  3100. function ob1u(mouse)
  3101. hold = false
  3102. end
  3103.  
  3104. buttonhold = false
  3105.  
  3106. fenbarmove1.MouseButton1Click:connect(do1)
  3107. fenbarmove2.MouseButton1Click:connect(do2)
  3108. fenbarmove3.MouseButton1Click:connect(do3)
  3109. fenbarmove4.MouseButton1Click:connect(do4)
  3110. eul=0
  3111. equipped=false
  3112. function key(key)
  3113. if key=="x" and Fly==true then
  3114. Fly=false
  3115. Target=nil
  3116. end
  3117. if key==string.char(8) and Fly==true then
  3118. Fly=false
  3119. Target=nil
  3120. end
  3121. if key=="x" and GuardStance==true then
  3122. manualguardend=true
  3123. GuardStance=false
  3124. end
  3125. if attack==true then return end
  3126. if key=="f" then
  3127. pressedf=true
  3128. fnumb=0
  3129. attack=true
  3130. if equipped==false then
  3131. equipped=true
  3132. RSH=ch.Torso["Right Shoulder"]
  3133. LSH=ch.Torso["Left Shoulder"]
  3134. --
  3135. RSH.Parent=nil
  3136. LSH.Parent=nil
  3137. --
  3138. RW.Name="Right Shoulder"
  3139. RW.Part0=ch.Torso
  3140. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3141. RW.C1=cf(0, 0.5, 0)
  3142. RW.Part1=ch["Right Arm"]
  3143. RW.Parent=ch.Torso
  3144. --
  3145. LW.Name="Left Shoulder"
  3146. LW.Part0=ch.Torso
  3147. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3148. LW.C1=cf(0, 0.5, 0)
  3149. LW.Part1=ch["Left Arm"]
  3150. LW.Parent=ch.Torso
  3151. --
  3152. Animate.Parent=nil
  3153. equipanim()
  3154. else
  3155. equipped=false
  3156. hideanim()
  3157. LH.C1=LHC1
  3158. RH.C1=RHC1
  3159. Animate.Parent=Humanoid
  3160. swait(0)
  3161. RW.Parent=nil
  3162. LW.Parent=nil
  3163. RSH.Parent=player.Character.Torso
  3164. LSH.Parent=player.Character.Torso
  3165. end
  3166. attack=false
  3167. end
  3168. if equipped==false then return end
  3169. --[[if key=="q" then
  3170. attack=true
  3171. for i=0,1,0.1 do
  3172. swait()
  3173. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  3174. wld1.C0=clerp(wld1.C0,cf(0,0,0)*euler(1.4,0,0),.3)
  3175. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  3176. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.3)
  3177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.6),.3)
  3178. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3179. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0,-1.4)*euler(0,1,0),.3)
  3180. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3181. RH.C0=clerp(RH.C0,cf(.5,-1,-.2)*euler(0,1.57,0)*euler(-.4,1.57,0),.2)
  3182. LH.C0=clerp(LH.C0,cf(-.5,-1,.2)*euler(0,-1.57,0)*euler(.2,1.57,0),.2)
  3183. end
  3184. swait(200)
  3185. attack=false
  3186. end]]
  3187. --[[if key=="e" then
  3188. ModeChange()
  3189. end]]
  3190. if key=="z" then
  3191. do1()
  3192. end
  3193. if key=="x" then
  3194. do2()
  3195. end
  3196. if key=="c" then
  3197. do3()
  3198. end
  3199. if key=="v" then
  3200. do4()
  3201. end
  3202. if key=="h" then
  3203. if Player.Name == "speedydude900" or player.Name == "Reyne" or Player.Name == "Player" or Player.Name == "Player1" then
  3204. mana.Value=100
  3205. cooldowns[1]=100
  3206. cooldowns[2]=100
  3207. cooldowns[3]=100
  3208. cooldowns[4]=100
  3209. cooldowns[5]=100
  3210. end
  3211. end
  3212. if key == "g" then
  3213. taunt()
  3214. end
  3215. if attack==false then
  3216. RecentEnemy.Value=nil
  3217. end
  3218. end
  3219.  
  3220. function key2(key)
  3221.  
  3222.  
  3223. end
  3224.  
  3225. function s(mouse)
  3226. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3227. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3228. mouse.KeyDown:connect(key)
  3229. mouse.KeyUp:connect(key2)
  3230.  
  3231. player=Player
  3232. ch=Character
  3233. MMouse=mouse
  3234. end
  3235.  
  3236. function ds(mouse)
  3237. end
  3238.  
  3239. Bin.Selected:connect(s)
  3240. Bin.Deselected:connect(ds)
  3241. print("Major loaded.")
  3242.  
  3243. local mananum=0
  3244. local donum=0
  3245. local stunnum=0
  3246. local staggeranim=false
  3247. local stunanim=false
  3248. local passivenum=0
  3249. local walk=0
  3250. local walkforw=true
  3251. while true do
  3252. swait()
  3253. if Humanoid.Health<=0 then
  3254. attack=true
  3255. resumeControl()
  3256. modelzorz.Parent=workspace
  3257. game:GetService("Debris"):AddItem(modelzorz,30)
  3258. for i=1,#Weapon do
  3259. Weapon[i].Parent=modelzorz
  3260. Weapon[i].CanCollide=true
  3261. end
  3262. for i=1,#Welds do
  3263. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  3264. Welds[i].Parent=nil
  3265. else
  3266. Welds[i].Parent=prt1
  3267. end
  3268. end
  3269. end
  3270. if fnumb<21 then
  3271. fnumb=fnumb+1
  3272. if pressedf==false then
  3273. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  3274. tellbar.TextTransparency=tellbar.TextTransparency-.05
  3275. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  3276. else
  3277. if fnumb==20 then
  3278. fenframe5.Parent=nil
  3279. print("daigui")
  3280. end
  3281. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  3282. tellbar.TextTransparency=tellbar.TextTransparency+.05
  3283. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  3284. end
  3285. end
  3286. if hbwld.Parent==nil then
  3287. hitbox2.Name="Hitbox"
  3288. else
  3289. hitbox2.Name="Hitbox2"
  3290. end
  3291. hitbox2.Parent=hitbox.Parent
  3292. hitbox2.Size=hitbox.Size
  3293. hitbox2.CFrame=hitboxCF
  3294. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3295. passivenum=passivenum+1
  3296. if passivenum>=80 then
  3297. passivenum=0
  3298. end
  3299. if Stagger.Value==true and staggeranim==false then
  3300. coroutine.resume(coroutine.create(function()
  3301. staggeranim=true
  3302. while attack==true do
  3303. swait()
  3304. end
  3305. StaggerAnim()
  3306. StaggerHit.Value=false
  3307. Stagger.Value=false
  3308. staggeranim=false
  3309. end))
  3310. end
  3311. if StaggerHit.Value==true and staggeranim==false then
  3312. coroutine.resume(coroutine.create(function()
  3313. staggeranim=true
  3314. while attack==true do
  3315. swait()
  3316. end
  3317. StaggerHitt()
  3318. StaggerHit.Value=false
  3319. Stagger.Value=false
  3320. staggeranim=false
  3321. end))
  3322. end
  3323. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  3324. Humanoid.WalkSpeed=0
  3325. else
  3326. Humanoid.WalkSpeed=16*Mvmt.Value
  3327. end
  3328. if Stun.Value>=StunT.Value and stunanim==false then
  3329. coroutine.resume(coroutine.create(function()
  3330. stunanim=true
  3331. while attack==true do
  3332. swait()
  3333. end
  3334. StunAnim()
  3335. Stun.Value=0
  3336. stunanim=false
  3337. end))
  3338. end
  3339. local stunnum2=20
  3340. if Mode=="Defensive" then
  3341. stunnum2=20
  3342. else
  3343. stunnum2=60
  3344. end
  3345. if stunnum>=stunnum2 then
  3346. if Stun.Value>0 then
  3347. Stun.Value=Stun.Value-1
  3348. end
  3349. stunnum=0
  3350. end
  3351. stunnum=stunnum+1
  3352. if donum>=.5 then
  3353. handidle=true
  3354. elseif donum<=0 then
  3355. handidle=false
  3356. end
  3357. if handidle==false then
  3358. donum=donum+0.006
  3359. else
  3360. donum=donum-0.006
  3361. end
  3362. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3363. local velderp=RootPart.Velocity.y
  3364. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3365. if equipped==true then
  3366. if attack==false then
  3367. idle=idle+1
  3368. else
  3369. idle=0
  3370. end
  3371. if idle>=500 then
  3372. if attack==false then
  3373. --Sheath()
  3374. end
  3375. end
  3376. if Anim=="Walk" then
  3377. if walkforw==true then
  3378. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3379. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3380. if attack==false then
  3381. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  3382. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  3383. else
  3384. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3385. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3386. end
  3387. else
  3388. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3389. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3390. if attack==false then
  3391. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  3392. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  3393. else
  3394. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3395. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3396. end
  3397. end
  3398. else
  3399. RH.C1=clerp(RH.C1,RHC1,.2)
  3400. LH.C1=clerp(LH.C1,LHC1,.2)
  3401. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3402. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3403. end
  3404. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3405. Anim="Jump"
  3406. if attack==false then
  3407. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3408. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  3409. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  3410. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3411. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.2)
  3412. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.2)
  3414. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3415. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3416. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3417. end
  3418. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3419. Anim="Fall"
  3420. if attack==false then
  3421. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3422. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  3423. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  3424. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3425. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.8),.2)
  3426. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3427. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8),.2)
  3428. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3429. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3430. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3431. end
  3432. elseif torvel<1 and hitfloor~=nil then
  3433. Anim="Idle"
  3434. if attack==false then
  3435. Neck.C0=clerp(Neck.C0,necko*euler(.35,0,0),.15)
  3436. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  3437. RW.C0=clerp(RW.C0,cf(1.45,.4+(donum/3),-.2)*euler(0,.3,.2),.15)
  3438. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  3439. LW.C0=clerp(LW.C0,cf(-1.45,.4+(donum/3),-.2)*euler(0,-.3,-.2),.15)
  3440. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  3441. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.1,-.15,0),.2)
  3442. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.15,0),.2)
  3443. end
  3444. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  3445. Anim="Walk"
  3446. walk=walk+1
  3447. if walk>=15-(5*Mvmt.Value) then
  3448. walk=0
  3449. if walkforw==true then
  3450. walkforw=false
  3451. elseif walkforw==false then
  3452. walkforw=true
  3453. end
  3454. end
  3455. if attack==false then
  3456. Neck.C0=clerp(Neck.C0,necko*euler(.25,0,0),.2)
  3457. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.1,0,.1),.2)
  3459. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.1),.2)
  3460. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.2)
  3461. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
  3462. end
  3463. elseif torvel>=30 and hitfloor~=nil then
  3464. Anim="Run"
  3465. if attack==false then
  3466. Neck.C0=clerp(Neck.C0,necko*euler(.25,0,0),.2)
  3467. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.1,0,.1),.2)
  3469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.1),.2)
  3470. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.2)
  3471. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
  3472. end
  3473. end
  3474. end
  3475. if #Effects>0 then
  3476. --table.insert(Effects,{prt,"Block1",delay})
  3477. for e=1,#Effects do
  3478. if Effects[e]~=nil then
  3479. --for j=1,#Effects[e] do
  3480. local Thing=Effects[e]
  3481. if Thing~=nil then
  3482. local Part=Thing[1]
  3483. local Mode=Thing[2]
  3484. local Delay=Thing[3]
  3485. local IncX=Thing[4]
  3486. local IncY=Thing[5]
  3487. local IncZ=Thing[6]
  3488. if Thing[2]=="CylinderClang" then
  3489. if Thing[3]<=1 then
  3490. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3491. Thing[7]=Thing[1].CFrame
  3492. effect("New Yeller",0,Thing[8],Thing[7])
  3493. Thing[8]=Thing[7]
  3494. Thing[3]=Thing[3]+Thing[4]
  3495. else
  3496. Part.Parent=nil
  3497. table.remove(Effects,e)
  3498. end
  3499. --[[Mesh=Thing[7]
  3500. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3501. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3502. end
  3503. if Thing[2]=="showDamage" then
  3504. --[[
  3505. 1=model
  3506. 2=showdamage
  3507. 3=gui
  3508. 4=bodypos
  3509. 5=10
  3510. 6=1
  3511. 7=60
  3512. 8=90
  3513. 9=120
  3514. ]]
  3515. if Thing[6]<Thing[5] then
  3516. Thing[6]=Thing[6]+1
  3517. elseif Thing[6]<Thing[7] then
  3518. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3519. Thing[6]=Thing[6]+1
  3520. elseif Thing[6]<Thing[8] then
  3521. Thing[6]=Thing[6]+1
  3522. elseif Thing[6]<Thing[9] then
  3523. Thing[6]=Thing[6]+1
  3524. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3525. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3526. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3527. else
  3528. Thing[1].Parent=nil
  3529. table.remove(Effects,e)
  3530. end
  3531. end
  3532. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  3533. if Thing[1].Transparency<=1 then
  3534. if Thing[2]=="Block1" then
  3535. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3536. Mesh=Thing[7]
  3537. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3538. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3539. elseif Thing[2]=="Block2" then
  3540. Thing[1].CFrame=Thing[1].CFrame
  3541. Mesh=Thing[7]
  3542. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3543. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3544. elseif Thing[2]=="Cylinder" then
  3545. Mesh=Thing[7]
  3546. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3547. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3548. elseif Thing[2]=="Blood" then
  3549. Mesh=Thing[7]
  3550. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3551. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3552. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3553. elseif Thing[2]=="Elec" then
  3554. Mesh=Thing[7]
  3555. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3556. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3557. elseif Thing[2]=="Disappear" then
  3558. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3559. end
  3560. else
  3561. Part.Parent=nil
  3562. table.remove(Effects,e)
  3563. end
  3564. end
  3565. end
  3566. --end
  3567. end
  3568. end
  3569. end
  3570. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3571. fenbarmana4.Text="Mana("..mana.Value..")"
  3572. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  3573. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  3574. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  3575. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3576. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3577. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3578. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3579. for _,c in pairs(Decrease:children()) do
  3580. if c:findFirstChild("Duration")~=nil then
  3581. c.Duration.Value=c.Duration.Value-1
  3582. if c.Duration.Value<=0 then
  3583. c.Parent=nil
  3584. end
  3585. end
  3586. if c.Name=="DecreaseAtk" then
  3587. decreaseatk=decreaseatk+c.Value
  3588. elseif c.Name=="DecreaseDef" then
  3589. decreasedef=decreasedef+c.Value
  3590. elseif c.Name=="DecreaseMvmt" then
  3591. decreasemvmt=decreasemvmt+c.Value
  3592. end
  3593. end
  3594. --[[if Mode=="Defensive" then
  3595. Max=Humanoid.MaxHealth
  3596. Cur=Humanoid.Health
  3597. Val=(((Max-Cur)/150)+1)*((Max/Cur)*(Cur/100))
  3598. Atk.Value=1-decreaseatk
  3599. Def.Value=Val-decreasedef
  3600. Mvmt.Value=1-decreasemvmt
  3601. elseif Mode=="Offensive" then
  3602. Max=Humanoid.MaxHealth
  3603. Cur=Humanoid.Health
  3604. Val=(((Max-Cur)/170)+1)*((Max/Cur)*(Cur/100))
  3605. Val2=(((Max-Cur)/160)+1)*((Max/Cur)*(Cur/100))
  3606. Atk.Value=Val-decreaseatk
  3607. Def.Value=1-decreasedef
  3608. Mvmt.Value=Val2-decreasemvmt
  3609. end]]
  3610. Atk.Value=1-decreaseatk
  3611. if Atk.Value<=0 then
  3612. Atk.Value=0
  3613. end
  3614. Def.Value=1-decreasedef
  3615. if Def.Value<=0 then
  3616. Def.Value=0.01
  3617. end
  3618. Mvmt.Value=1-decreasemvmt
  3619. if Mvmt.Value<=0 then
  3620. Mvmt.Value=0
  3621. end
  3622. decreaseatk=0
  3623. decreasedef=0
  3624. decreasemvmt=0
  3625. AtkVal=Atk.Value*100
  3626. AtkVal=math.floor(AtkVal)
  3627. AtkVal=AtkVal/100
  3628. fenbardamage.Text="Damage\
  3629. ("..(AtkVal)..")"
  3630. DefVal=Def.Value*100
  3631. DefVal=math.floor(DefVal)
  3632. DefVal=DefVal/100
  3633. fenbardef.Text="Defense\
  3634. ("..(DefVal)..")"
  3635. MvmtVal=Mvmt.Value*100
  3636. MvmtVal=math.floor(MvmtVal)
  3637. MvmtVal=MvmtVal/100
  3638. if Rooted.Value==true then MvmtVal=0 end
  3639. fenbarmove.Text="Walkspeed\
  3640. ("..(MvmtVal)..")"
  3641. if Stun.Value>=StunT.Value then
  3642. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  3643. else
  3644. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  3645. end
  3646. fenbarstun3.Text="Stun("..Stun.Value..")"
  3647. if mana.Value>=100 then
  3648. mana.Value=100
  3649. else
  3650. if mananum<=9 then
  3651. mananum=mananum+5
  3652. else
  3653. mananum=0
  3654. mana.Value=mana.Value+3
  3655. end
  3656. end
  3657. for i=1,#cooldowns do
  3658. if cooldowns[i]>=cooldownmax then
  3659. cooldowns[i]=cooldownmax
  3660. else
  3661. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  3662. end
  3663. end
  3664. end
  3665.  
  3666.  
  3667. --[[
  3668. Copyrighted (C) Fenrier 2015
  3669. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement