Advertisement
memberhero

lol

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