Advertisement
memberhero

strife class test

Apr 4th, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.70 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. itsamemalleo
  4. hue
  5. ]]
  6. plr = game.Players.LocalPlayer
  7. people = {"basstraker1970","luigifelix","Juan14196"}
  8. for i,v in next, (people) do
  9. if plr.Name == "basstracker1970" or "luigifelix" or "Juan14196" then
  10. gud = true
  11. end
  12. end
  13. if gud == true then
  14. team = Instance.new("Team",game:GetService("Teams"))
  15. team.Name = "Team"
  16.  
  17. team.TeamColor = BrickColor.new("Bright red")
  18. Player=game:GetService("Players").LocalPlayer
  19. Player.Neutral = false
  20. Player.TeamColor = BrickColor.new("Bright red")
  21. Character=Player.Character
  22. PlayerGui=Player.PlayerGui
  23. Backpack=Player.Backpack
  24. Torso=Character.Torso
  25. Head=Character.Head
  26. Humanoid=Character.Humanoid
  27. LeftArm=Character["Left Arm"]
  28. LeftLeg=Character["Left Leg"]
  29. RightArm=Character["Right Arm"]
  30. RightLeg=Character["Right Leg"]
  31. LS=Torso["Left Shoulder"]
  32. LH=Torso["Left Hip"]
  33. RS=Torso["Right Shoulder"]
  34. RH=Torso["Right Hip"]
  35. Neck=Torso.Neck
  36. it=Instance.new
  37. vt=Vector3.new
  38. cf=CFrame.new
  39. euler=CFrame.fromEulerAnglesXYZ
  40. angles=CFrame.Angles
  41. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  43. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  44. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  45. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  46. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  47. RootPart=Character.HumanoidRootPart
  48. RootJoint=RootPart.RootJoint
  49. RootCF=euler(-1.57,0,3.14)
  50. attack = false
  51. attackdebounce = false
  52. MMouse=nil
  53. combo=0
  54. local idle=0
  55. local Anim="Idle"
  56. local Effects={}
  57. local Weapon={}
  58. local Welds={}
  59. local hitted=false
  60. local HitTarget=nil
  61. local isjugg=false
  62. local decreaseatk=0
  63. local decreasedef=0
  64. local decreasemvmt=0
  65. local doing2=false
  66. local doing4=false
  67. local move1="(Z)\
  68. Build"
  69. local move2="(X)\
  70. Delete"
  71. local move3="(C)\
  72. idk aa"
  73. local move4="(V)\
  74. idk >:"
  75. local cooldowns={}
  76. local cooldown1=0 table.insert(cooldowns,cooldown1)
  77. local cooldown2=0 table.insert(cooldowns,cooldown2)
  78. local cooldown3=0 table.insert(cooldowns,cooldown3)
  79. local cooldown4=0 table.insert(cooldowns,cooldown4)
  80. local cooldownsadd={}
  81. local cooldownadd1=.4 table.insert(cooldownsadd,cooldownadd1)
  82. local cooldownadd2=.35 table.insert(cooldownsadd,cooldownadd2)
  83. local cooldownadd3=.2 table.insert(cooldownsadd,cooldownadd3)
  84. local cooldownadd4=.15 table.insert(cooldownsadd,cooldownadd4)
  85. local cooldownmax=100
  86. local damageFunc=Instance.new("BindableFunction",game.Workspace)
  87. damageFunc.Name = "damageFunc"
  88. --blocknum=100
  89. local manualguardend=false
  90. --player
  91. player=nil
  92. --save shoulders
  93. RSH, LSH=nil, nil
  94. --welds
  95. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  96. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  97. LH=Torso["Left Hip"]
  98. RH=Torso["Right Hip"]
  99. TorsoColor=Torso.BrickColor
  100. TorsoRed=TorsoColor.Color.r
  101. TorsoGreen=TorsoColor.Color.g
  102. TorsoBlue=TorsoColor.Color.b
  103. NewCol=BrickColor.new("Bright red").Color
  104. if Player:findFirstChild("Color1")~=nil then
  105. NewCol=Player.Color1.Value
  106. end
  107. local mdec=Instance.new("NumberValue",Decrease)
  108. mdec.Name="DecreaseDef"
  109. mdec.Value=.4
  110. local mdec2=Instance.new("NumberValue",Decrease)
  111. mdec2.Name="DecreaseMvmt"
  112. mdec2.Value=.1
  113.  
  114. local Animate=Humanoid.Animator
  115. --[[local animation=Instance.new("Animation")
  116. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  117. local animTrack=Humanoid:LoadAnimation(animation)]]
  118. local canjump=true
  119. function removeControl()
  120. canjump=false
  121. end
  122. function resumeControl()
  123. canjump=true
  124. end
  125. Player.Character.Humanoid.Changed:connect(function()
  126. if canjump==false then
  127. Player.Character.Humanoid.Jump=false
  128. end
  129. end)
  130.  
  131. ArtificialHB = Instance.new("BindableEvent", script)
  132. ArtificialHB.Name = "Heartbeat"
  133. script:WaitForChild("Heartbeat")
  134. frame = 1 / 30
  135. tf = 0
  136. allowframeloss = true
  137. tossremainder = false
  138. lastframe = tick()
  139. script.Heartbeat:Fire()
  140. game:GetService("RunService").Heartbeat:connect(function(s, p)
  141.  
  142. tf = tf + s
  143. if frame <= tf then
  144. if allowframeloss then
  145. script.Heartbeat:Fire()
  146. lastframe = tick()
  147. else
  148. for i = 1, math.floor(tf / frame) do
  149. script.Heartbeat:Fire()
  150. end
  151. lastframe = tick()
  152. end
  153. if tossremainder then
  154. tf = 0
  155. else
  156. tf = tf - frame * math.floor(tf / frame)
  157. end
  158. end
  159. end
  160. )
  161. swait = function(num)
  162.  
  163. if num == 0 or num == nil then
  164. ArtificialHB.Event:wait()
  165. else
  166. for i = 0, num do
  167. ArtificialHB.Event:wait()
  168. end
  169. end
  170. end
  171.  
  172. repeat wait() until script:FindFirstChild("clear")
  173.  
  174. if Character:findFirstChild("Malleo",true) ~= nil then
  175. Character:findFirstChild("Malleo",true).Parent = nil
  176. end
  177. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  178. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  179. end
  180. if Character:findFirstChild("Stats",true) ~= nil then
  181. Character:findFirstChild("Stats",true).Parent = nil
  182. end
  183. local Stats=Instance.new("BoolValue")
  184. Stats.Name="Stats"
  185. Stats.Parent=Character
  186. local Atk=Instance.new("NumberValue")
  187. Atk.Name="Damage"
  188. Atk.Parent=Stats
  189. Atk.Value=1
  190. local Def=Instance.new("NumberValue")
  191. Def.Name="Defense"
  192. Def.Parent=Stats
  193. Def.Value=1
  194. local Mvmt=Instance.new("NumberValue")
  195. Mvmt.Name="Movement"
  196. Mvmt.Parent=Stats
  197. Mvmt.Value=1
  198. local Block=Instance.new("BoolValue")
  199. Block.Name="Block"
  200. Block.Parent=Stats
  201. Block.Value=false
  202. local Stun=Instance.new("NumberValue")
  203. Stun.Name="Stun"
  204. Stun.Parent=Stats
  205. Stun.Value=0
  206. local StunT=Instance.new("NumberValue")
  207. StunT.Name="StunThreshold"
  208. StunT.Parent=Stats
  209. StunT.Value=100
  210. local Rooted=Instance.new("BoolValue")
  211. Rooted.Name="Rooted"
  212. Rooted.Parent=Stats
  213. Rooted.Value=false
  214. local Decrease=Instance.new("BoolValue")
  215. Decrease.Name="Decrease"
  216. Decrease.Parent=Stats
  217. Decrease.Value=false
  218. local Stunned=Instance.new("BoolValue")
  219. Stunned.Name="Stunned"
  220. Stunned.Parent=Stats
  221. Stunned.Value=false
  222. local Stagger=Instance.new("BoolValue")
  223. Stagger.Name="Stagger"
  224. Stagger.Parent=Stats
  225. Stagger.Value=false
  226. local StaggerHit=Instance.new("BoolValue")
  227. StaggerHit.Name="StaggerHit"
  228. StaggerHit.Parent=Stats
  229. StaggerHit.Value=false
  230. local RecentEnemy=Instance.new("ObjectValue")
  231. RecentEnemy.Name="RecentEnemy"
  232. RecentEnemy.Parent=Stats
  233. RecentEnemy.Value=nil
  234. local mana=Instance.new("NumberValue")
  235. mana.Name="Mana"
  236. mana.Parent=Stats
  237. local passive1=Instance.new("NumberValue",Decrease)
  238. passive1.Name="DecreaseAtk"
  239. passive1.Value=0
  240. local passive2=Instance.new("NumberValue",Decrease)
  241. passive2.Name="DecreaseDef"
  242. passive2.Value=0
  243. local passive3=Instance.new("NumberValue",Decrease)
  244. passive3.Name="DecreaseMvmt"
  245. passive3.Value=0
  246. local passive4=Instance.new("NumberValue",Decrease)
  247. passive4.Name="DecreaseAtk"
  248. passive4.Value=.1
  249. walls={}
  250.  
  251. function NoOutline(Part)
  252. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  253. end
  254.  
  255. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,mat)
  256. local fp=it("Part")
  257. fp.formFactor=formfactor
  258. fp.Parent=parent
  259. fp.Reflectance=reflectance
  260. fp.Transparency=transparency
  261. fp.CanCollide=false
  262. fp.Locked=true
  263. fp.BrickColor=brickcolor
  264. fp.Name=name
  265. fp.Size=size
  266. fp.Position=Torso.Position
  267. NoOutline(fp)
  268. if mat then
  269. fp.Material=mat
  270. else
  271. fp.Material="SmoothPlastic"
  272. end
  273. fp:BreakJoints()
  274. return fp
  275. end
  276.  
  277. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  278. local mesh=it(Mesh)
  279. mesh.Parent=part
  280. if Mesh=="SpecialMesh" then
  281. mesh.MeshType=meshtype
  282. if meshid~="nil" then
  283. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  284. end
  285. end
  286. mesh.Offset=offset
  287. mesh.Scale=scale
  288. return mesh
  289. end
  290.  
  291. function weld(parent,part0,part1,c0)
  292. local weld=it("Motor")
  293. weld.Parent=parent
  294. weld.Part0=part0
  295. weld.Part1=part1
  296. weld.C0=c0
  297. return weld
  298. end
  299.  
  300. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  301. local gui=it(GuiType)
  302. gui.Parent=parent
  303. gui.Text=text
  304. gui.BackgroundTransparency=backtrans
  305. gui.BackgroundColor3=backcol
  306. gui.SizeConstraint="RelativeXY"
  307. gui.TextXAlignment="Center"
  308. gui.TextYAlignment="Center"
  309. gui.Position=pos
  310. gui.Size=size
  311. gui.Font="SourceSans"
  312. gui.FontSize="Size14"
  313. gui.TextWrapped=false
  314. gui.TextStrokeTransparency=0
  315. gui.TextColor=BrickColor.new("White")
  316. return gui
  317. end
  318.  
  319. local Color1=Torso.BrickColor
  320.  
  321. local fengui=it("GuiMain")
  322. fengui.Parent=Player.PlayerGui
  323. fengui.Name="WeaponGUI"
  324. local fenframe=it("Frame")
  325. fenframe.Parent=fengui
  326. fenframe.BackgroundColor3=Color3.new(255,255,255)
  327. fenframe.BackgroundTransparency=1
  328. fenframe.BorderColor3=Color3.new(17,17,17)
  329. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  330. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  331. local fenframe2=it("Frame")
  332. fenframe2.Parent=fengui
  333. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  334. fenframe2.BackgroundTransparency=1
  335. fenframe2.BorderColor3=Color3.new(17,17,17)
  336. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  337. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  338. local fenframe3=it("Frame")
  339. fenframe3.Parent=fengui
  340. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  341. fenframe3.BackgroundTransparency=1
  342. fenframe3.BorderColor3=Color3.new(17,17,17)
  343. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  344. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  345. fenframe3.Name="MoveFrame"
  346. local fenframe4=it("Frame")
  347. fenframe4.Parent=fengui
  348. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  349. fenframe4.BackgroundTransparency=1
  350. fenframe4.BorderColor3=Color3.new(17,17,17)
  351. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  352. fenframe4.Position=UDim2.new(0,0,0.7,0)
  353. local pressedf=false
  354. local fenframe5=it("Frame")
  355. fenframe5.Parent=fengui
  356. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  357. fenframe5.BackgroundTransparency=1
  358. fenframe5.BorderColor3=Color3.new(0,0,0)
  359. fenframe5.Size=UDim2.new(1,0,1,0)
  360. fenframe5.Position=UDim2.new(0,0,0,0)
  361. fenframe5.ZIndex=2
  362. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  363. tellbar.Font="Arial"
  364. tellbar.TextScaled=true
  365. tellbar.TextTransparency=1
  366. tellbar.TextStrokeTransparency=1
  367. tellbar.ZIndex=2
  368. local fnumb=0
  369. --gui(GuiType,parent,text,backtrans,backcol,pos,size)
  370. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  371. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  372. 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))
  373. 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))
  374. 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))
  375. 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))
  376. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  377. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  378. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  379. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  380. 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))
  381. 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))
  382. 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))
  383. fenbarmove1.ZIndex=2
  384. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  385. 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))
  386. fenbarmove2.ZIndex=2
  387. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  388. 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))
  389. fenbarmove3.ZIndex=2
  390. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  391. 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))
  392. fenbarmove4.ZIndex=2
  393. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  394.  
  395. local modelzorz=Instance.new("Model")
  396. modelzorz.Parent=Character
  397. modelzorz.Name="Malleo"
  398.  
  399. local handle=part(3,modelzorz,0,0.5,TorsoColor,"Handle",vt())
  400. local prt1=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part01",vt(),"Wood")
  401. local prt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part02",vt(),"Fabric")
  402. local prt3=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part03",vt(),"Wood")
  403. local prt4=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part04",vt(),"Wood")
  404. local prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part05",vt(),"Slate")
  405. local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part06",vt(),"Slate")
  406. local prt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part07",vt(),"Slate")
  407.  
  408. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,7.5,1))
  409. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.05,6,1.05))
  410. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1.1,2,1.1))
  411. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(2,1,3))
  412. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(3,3,5))
  413. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(2.5,2.5,.5))
  414. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(2.5,2.5,.5))
  415.  
  416. local handlewld=weld(handle,handle,Torso,euler(-1.8,0,0)*cf(-1.1,1,0))
  417. local wld1=weld(prt1,prt1,handle,cf(0,0,0)*euler(0,0,0))
  418. local wld2=weld(prt2,prt2,handle,cf(0,.046,0)*euler(0,0,0))
  419. local wld3=weld(prt3,prt3,handle,cf(0,.915,0)*euler(0,0,0))
  420. local wld4=weld(prt4,prt4,handle,cf(0,-.749,0)*euler(0,0,0))
  421. local wld5=weld(prt5,prt5,handle,cf(0,-.991,0)*euler(0,0,0))
  422. local wld6=weld(prt6,prt6,handle,cf(0,-.991,.483)*euler(0,0,0))
  423. local wld7=weld(prt7,prt7,handle,cf(0,-.991,-.483)*euler(0,0,0))
  424.  
  425. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt())
  426. hitbox.Anchored=false
  427. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  428. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  429. hitbox2.Anchored=true
  430. local hitboxCF=cf(0,0,0)
  431.  
  432. hboxpos=Instance.new("BodyPosition",nil)
  433. hboxpos.P=2000
  434. hboxpos.D=100
  435. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  436.  
  437. function hitboxweld()
  438. hbwld.Parent=modelzorz
  439. hbwld.Part0=hitbox
  440. hbwld.Part1=RightArm
  441. end
  442.  
  443. if (script.Parent.className~="HopperBin") then
  444. Tool=Instance.new("HopperBin")
  445. Tool.Parent=Backpack
  446. Tool.Name="Malleo"
  447. script.Parent=Tool
  448. end
  449. Bin=script.Parent
  450. if Bin.Name=="Bob" then
  451. Bin.Name="Malleo"
  452. end
  453.  
  454. local bodvel=Instance.new("BodyVelocity")
  455. local bg=Instance.new("BodyGyro")
  456.  
  457. so = function(id,par,vol,pit)
  458. local sou = Instance.new("Sound",par or workspace)
  459. sou.Volume=vol
  460. sou.Pitch=pit or 1
  461. sou.SoundId="http://www.roblox.com/asset/?id="..id
  462. coroutine.resume(coroutine.create(function(Sound)
  463. swait()
  464. Sound:play()
  465. end),sou)
  466. game:GetService("Debris"):AddItem(sou,6)
  467. end
  468.  
  469. function clerp(a,b,t)
  470. local qa = {QuaternionFromCFrame(a)}
  471. local qb = {QuaternionFromCFrame(b)}
  472. local ax, ay, az = a.x, a.y, a.z
  473. local bx, by, bz = b.x, b.y, b.z
  474. local _t = 1-t
  475. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  476. end
  477.  
  478. function QuaternionFromCFrame(cf)
  479. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  480. local trace = m00 + m11 + m22
  481. if trace > 0 then
  482. local s = math.sqrt(1 + trace)
  483. local recip = 0.5/s
  484. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  485. else
  486. local i = 0
  487. if m11 > m00 then
  488. i = 1
  489. end
  490. if m22 > (i == 0 and m00 or m11) then
  491. i = 2
  492. end
  493. if i == 0 then
  494. local s = math.sqrt(m00-m11-m22+1)
  495. local recip = 0.5/s
  496. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  497. elseif i == 1 then
  498. local s = math.sqrt(m11-m22-m00+1)
  499. local recip = 0.5/s
  500. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  501. elseif i == 2 then
  502. local s = math.sqrt(m22-m00-m11+1)
  503. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  504. end
  505. end
  506. end
  507.  
  508. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  509. local xs, ys, zs = x + x, y + y, z + z
  510. local wx, wy, wz = w*xs, w*ys, w*zs
  511. local xx = x*xs
  512. local xy = x*ys
  513. local xz = x*zs
  514. local yy = y*ys
  515. local yz = y*zs
  516. local zz = z*zs
  517. 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))
  518. end
  519.  
  520. function QuaternionSlerp(a, b, t)
  521. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  522. local startInterp, finishInterp;
  523. if cosTheta >= 0.0001 then
  524. if (1 - cosTheta) > 0.0001 then
  525. local theta = math.acos(cosTheta)
  526. local invSinTheta = 1/math.sin(theta)
  527. startInterp = math.sin((1-t)*theta)*invSinTheta
  528. finishInterp = math.sin(t*theta)*invSinTheta
  529. else
  530. startInterp = 1-t
  531. finishInterp = t
  532. end
  533. else
  534. if (1+cosTheta) > 0.0001 then
  535. local theta = math.acos(-cosTheta)
  536. local invSinTheta = 1/math.sin(theta)
  537. startInterp = math.sin((t-1)*theta)*invSinTheta
  538. finishInterp = math.sin(t*theta)*invSinTheta
  539. else
  540. startInterp = t-1
  541. finishInterp = t
  542. end
  543. end
  544. 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
  545. end
  546.  
  547. function hideanim()
  548. equipped=false
  549. --local handlewld=weld(handle,handle,Torso,euler(-1.8,0,0)*cf(-1.1,1,0))
  550. for i=0,1,.1 do
  551. wait()
  552. Neck.C0=clerp(Neck.C0,necko*euler(.1,-.15,-.4),.3)
  553. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  554. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,-.2),.2)
  555. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  556. handlewld.C0=clerp(handlewld.C0,euler(4.37,0,0)*cf(0,1,0),.2)
  557. end
  558. handlewld.Part1=Torso
  559. handlewld.C0=euler(-1.8,0,0)*cf(-1.1,1,0)
  560. for i=0,1,0.1 do
  561. swait()
  562. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  563. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  564. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  565. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  566. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  567. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  568. RH.C0=clerp(RH.C0,RHC0,.4)
  569. RH.C1=clerp(RH.C1,RHC1,.4)
  570. LH.C0=clerp(LH.C0,LHC0,.4)
  571. LH.C1=clerp(LH.C1,LHC1,.4)
  572. end
  573. mdec2.Parent=nil
  574. mdec.Parent=Decrease
  575. end
  576.  
  577. mdec.Parent=Decrease
  578. function equipanim()
  579. equipped=true
  580. mdec.Parent=nil
  581. mdec2.Parent=Decrease
  582. --mesh(Mesh,part,meshtype,meshid,offset,scale)
  583. --[[local dec=Instance.new("NumberValue",Decrease)
  584. dec.Name="DecreaseMvmt"
  585. dec.Value=10]]
  586. for i=0,.6,0.6 do
  587. swait()
  588. Neck.C0=clerp(Neck.C0,necko*euler(.1,-.15,-.4),.3)
  589. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,-.2),.3)
  591. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  592. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  593. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  594. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  595. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  596. end
  597. for i=0,1,1 do
  598. swait()
  599. Neck.C0=clerp(Neck.C0,necko*euler(.1,-.15,-.4),.3)
  600. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  601. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,-.2),.3)
  602. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  603. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  604. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  605. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  606. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  607. end
  608. handlewld.Part1=RightArm
  609. handlewld.C0=euler(-2,0,0)*cf(0,1,0)
  610. for i=0,1,.5 do
  611. wait()
  612. Neck.C0=clerp(Neck.C0,necko*euler(.1,-.15,-.4),.3)
  613. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,-.2),.3)
  615. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  616. handlewld.C0=clerp(handlewld.C0,euler(-1.57,0,0)*cf(0,1,0),.3)
  617. end
  618. for i=0,1.5,.2 do
  619. wait()
  620. Neck.C0=clerp(Neck.C0,necko*euler(.1,-.15,-.25),.3)
  621. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  622. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.2),.3)
  623. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  624. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  625. end
  626. end
  627.  
  628. function StaggerAnim()
  629. attack=true
  630. removeControl()
  631. for i=1,math.random(2,4) do
  632. 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)
  633. end
  634. for i=0,1,0.35 do
  635. swait()
  636. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  637. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  638. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  640. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  642. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  643. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  644. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  645. end
  646. for i=0,1,0.2 do
  647. swait()
  648. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  649. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  652. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  654. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  655. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  656. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  657. end
  658. for i=0,1,0.1 do
  659. swait()
  660. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  661. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  662. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.2)*euler(0,-.4,0),.3)
  663. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  664. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.2)*euler(0,.4,0),.3)
  665. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  666. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  667. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  668. end
  669. for i=1,40 do
  670. swait()
  671. if Stun.Value>=StunT.Value then
  672. break
  673. end
  674. end
  675. resumeControl()
  676. combo=0
  677. attack=false
  678. end
  679.  
  680. function StaggerHitt()
  681. attack=true
  682. for i=1,math.random(2,4) do
  683. 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)
  684. end
  685. for i=0,1,0.1 do
  686. swait()
  687. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.3)
  688. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.3)
  689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.9),.3)
  690. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  691. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.6),.3)
  692. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  693. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.2,0,-.4),.3)
  694. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  695. end
  696. attack=false
  697. end
  698.  
  699. function StunAnim()
  700. attack=true
  701. removeControl()
  702. Stunned.Value=true
  703. showDamage(Character,"Stunned","Interrupt")
  704. local dec=Instance.new("NumberValue",Decrease)
  705. dec.Name="DecreaseMvmt"
  706. dec.Value=10
  707. for i=0,1,0.3 do
  708. swait()
  709. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  710. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  711. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  712. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  713. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  714. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  715. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  716. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  717. end
  718. for i=0,1,0.3 do
  719. swait()
  720. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  722. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  723. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  724. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  725. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  726. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  727. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  728. end
  729. for i=0,1,0.3 do
  730. swait()
  731. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  732. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  733. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  734. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  735. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  736. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  737. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  738. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  739. end
  740. local gairost=Instance.new("BodyGyro")
  741. gairost.Parent=RootPart
  742. gairost.maxTorque=Vector3.new(2000,0,2000)
  743. gairost.P=2000
  744. gairost.cframe=cf(0,0,0)
  745. for i=0,1,0.1 do
  746. swait()
  747. if hitfloor~=nil then
  748. Torso.Velocity=vt(0,0,0)
  749. end
  750. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  751. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  752. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  753. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  754. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  755. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  756. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  757. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  758. end
  759. for i=1,70 do
  760. swait()
  761. gairost.cframe=RootPart.CFrame
  762. if hitfloor~=nil then
  763. Torso.Velocity=vt(0,0,0)
  764. end
  765. end
  766. for i=0,1,0.2 do
  767. swait()
  768. Stun.Value=0
  769. gairost.cframe=RootPart.CFrame
  770. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  771. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  772. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  773. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  774. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  775. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  776. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  777. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  778. end
  779. resumeControl()
  780. gairost.Parent=nil
  781. dec.Parent=nil
  782. Stun.Value=0
  783. combo=0
  784. Stunned.Value=false
  785. attack=false
  786. for i=1,10 do
  787. swait()
  788. Stun.Value=0
  789. end
  790. end
  791.  
  792. function attackone()
  793. attack=true
  794. --if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*30 end
  795. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,6,8,math.random(5,10),"Normal",RootPart,.5,1,math.random(8,10),nil,true) end)
  796. for i=0,1,0.2 do
  797. swait()
  798. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.15,0,-.15),.5)
  799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,-.25),.5)
  800. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.4,0,.25)*euler(0,0,0),.5)
  801. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  802. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.1),.5)
  803. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  804. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  805. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  806. handlewld.C0=clerp(handlewld.C0,euler(1.3,0,0)*cf(0,1,0),.3)
  807. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  808. break
  809. end
  810. end
  811. hbwld.Parent=nil
  812. hboxpos.Parent=hitbox
  813. hitbox.Parent=modelzorz
  814. hitbox.Size=vt(1.5,1.5,2)
  815. hitboxCF=RightArm.CFrame
  816. hitbox.CFrame=hitboxCF
  817. so("200632136",prt5,1,1)
  818. for i=0,1,0.2 do
  819. swait()
  820. hitboxCF=prt5.CFrame
  821. hitbox.CFrame=hitboxCF
  822. MagniDamage(hitbox,3,6,8,math.random(1,2),"Normal",RootPart,.5,1,math.random(8,10),nil,true)
  823. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.2),.5)
  824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,.3),.5)
  825. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.25)*euler(1,0,-.5),.5)
  826. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  827. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.1),.5)
  828. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  829. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  830. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  831. handlewld.C0=clerp(handlewld.C0,euler(2.4,0,0)*cf(0,1.1,0),.3)
  832. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  833. break
  834. end
  835. end
  836. hitbox.Parent=modelzorz
  837. hitbox.Size=vt()
  838. hitboxweld()
  839. hboxpos.Parent=nil
  840. attack=false
  841. end
  842.  
  843. function attacktwo()
  844. attack=true
  845. for i=0,1,0.2 do
  846. swait()
  847. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,.3),.5)
  848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,.25),.5)
  849. RW.C0=clerp(RW.C0,cf(.5,0.5,-.3)*euler(1.2,0,-1)*euler(0,1.45,0),.5)
  850. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  851. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.5)
  852. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  853. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  854. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  855. handlewld.C0=clerp(handlewld.C0,euler(1.3,0,0)*cf(0,1,0),.3)
  856. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  857. break
  858. end
  859. end
  860. hbwld.Parent=nil
  861. hboxpos.Parent=hitbox
  862. hitbox.Parent=modelzorz
  863. hitbox.Size=vt(1.5,1.5,2)
  864. hitboxCF=RightArm.CFrame
  865. hitbox.CFrame=hitboxCF
  866. so("200632136",prt5,1,1.1)
  867. for i=0,1,0.2 do
  868. swait()
  869. hitboxCF=prt5.CFrame
  870. hitbox.CFrame=hitboxCF
  871. MagniDamage(hitbox,3,6,8,math.random(1,2),"Normal",RootPart,.3,1,math.random(8,10),nil,true)
  872. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,-.15),.5)
  873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,-.25),.5)
  874. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(.4,0,1)*euler(0,1.45,0),.5)
  875. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  876. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-.3),.5)
  877. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  878. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  879. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  880. handlewld.C0=clerp(handlewld.C0,euler(2,0,0)*cf(0,1,0),.3)
  881. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  882. break
  883. end
  884. end
  885. --con1:disconnect()
  886. hitbox.Parent=modelzorz
  887. hitbox.Size=vt()
  888. hitboxweld()
  889. hboxpos.Parent=nil
  890. attack=false
  891. end
  892.  
  893. function attackthree()
  894. attack=true
  895. for i=0,1,0.2 do
  896. swait()
  897. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.1),.5)
  898. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,-.25),.5)
  899. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(-.2,0,.15)*euler(0,0,0),.5)
  900. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  901. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.45,0,-.3),.5)
  902. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  903. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  904. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  905. handlewld.C0=clerp(handlewld.C0,euler(1.3,0,0)*cf(0,1,0),.3)
  906. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  907. break
  908. end
  909. end
  910. so("200632136",prt5,1,1.1)
  911. hbwld.Parent=nil
  912. hboxpos.Parent=hitbox
  913. hitbox.Parent=modelzorz
  914. hitbox.Size=vt(1.5,1.5,2)
  915. hitboxCF=RightArm.CFrame
  916. hitbox.CFrame=hitboxCF
  917. for i=0,1,0.2 do
  918. swait()
  919. hitboxCF=prt5.CFrame
  920. hitbox.CFrame=hitboxCF
  921. MagniDamage(hitbox,3,6,8,math.random(1,2),"Normal",RootPart,.4,1,math.random(8,10),nil,true)
  922. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,-.2),.5)
  923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,.2),.5)
  924. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(1.2,0,-.45)*euler(0,0,0),.5)
  925. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  926. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-.3),.5)
  927. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  928. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  929. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  930. handlewld.C0=clerp(handlewld.C0,euler(2.4,0,0)*cf(0,1,0),.3)
  931. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  932. break
  933. end
  934. end
  935. hitbox.Parent=modelzorz
  936. hitbox.Size=vt()
  937. hitboxweld()
  938. hboxpos.Parent=nil
  939. attack=false
  940. end
  941.  
  942. function attackfour()
  943. attack=true
  944. for i=0,1,0.1 do
  945. swait()
  946. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.2,0,0),.5)
  947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.5)
  948. RW.C0=clerp(RW.C0,cf(1,1.5,-.3)*euler(2.4,0,-.45)*euler(0,0,0),.3)
  949. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  950. LW.C0=clerp(LW.C0,cf(-1,1.5,-.3)*euler(2.5,0,.65),.3)
  951. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  952. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  953. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  954. handlewld.C0=clerp(handlewld.C0,euler(1.4,0,-.4)*cf(.45,1,0),.4)
  955. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  956. break
  957. end
  958. end
  959. so("200632136",prt5,1,1.1)
  960. hbwld.Parent=nil
  961. hboxpos.Parent=hitbox
  962. hitbox.Parent=modelzorz
  963. hitbox.Size=vt(1.5,1.5,2)
  964. hitboxCF=RightArm.CFrame
  965. hitbox.CFrame=hitboxCF
  966. for i=0,1,0.1 do
  967. swait()
  968. hitboxCF=prt5.CFrame
  969. hitbox.CFrame=hitboxCF
  970. MagniDamage(hitbox,3,7,10,math.random(4,6),"Normal",RootPart,.5,1,math.random(12,14),nil,true,nil,"Damage",.05,350)
  971. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.25,0,0),.5)
  972. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0)*euler(0,0,0),.5)
  973. RW.C0=clerp(RW.C0,cf(1,.25,-.3)*euler(1,0,-.45)*euler(0,0,0),.5)
  974. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  975. LW.C0=clerp(LW.C0,cf(-1,.25,-.3)*euler(1,0,.65),.5)
  976. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  977. RH.C0=clerp(RH.C0,cf(1,-.8,-.35)*euler(0,1.57,0)*euler(-.05,-.1,0),.3)
  978. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,.25),.3)
  979. handlewld.C0=clerp(handlewld.C0,euler(2.2,0,-.4)*cf(.45,1,.4),.5)
  980. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  981. break
  982. end
  983. end
  984. hitbox.Parent=modelzorz
  985. hitbox.Size=vt()
  986. hitboxweld()
  987. hboxpos.Parent=nil
  988. attack=false
  989. end
  990.  
  991. function do1()
  992. if attack==true then return end
  993. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  994. if cooldowns[1]>=cooldownmax and mana.Value>=20 then
  995. --if true then
  996. attack=true
  997. removeControl()
  998. cooldowns[1]=0
  999. mana.Value=mana.Value-10
  1000. local dec=Instance.new("NumberValue")
  1001. dec.Name="DecreaseMvmt"
  1002. dec.Value=10
  1003. dec.Parent=Decrease
  1004. local dec2=Instance.new("NumberValue")
  1005. dec2.Name="DecreaseDef"
  1006. dec2.Value=.15
  1007. dec2.Parent=Decrease
  1008. for i=0,1,0.1 do
  1009. swait()
  1010. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.15),.3)
  1011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*euler(0,0,0)*euler(0,0,0),.3)
  1012. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(-.2,0,.15)*euler(0,0,0),.3)
  1013. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.45,0,-.3),.3)
  1015. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1016. RH.C0=clerp(RH.C0,cf(1,.25,-1)*euler(0,1.57,0)*euler(-.05,-.1,-.1),.3)
  1017. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.1,1.45),.3)
  1018. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1019. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1020. break
  1021. end
  1022. end
  1023. local wm=Instance.new("Model",workspace)
  1024. wm.Name="Wall"
  1025. game:GetService("Debris"):AddItem(wm,50)
  1026. table.insert(walls,wm)
  1027. local wall=part(3,wm,0,0,BrickColor.new(NewCol),"BWall",vt(12,8,2),"Brick")
  1028. wall.Anchored=true
  1029. wall.CanCollide=true
  1030. wall.CFrame=Torso.CFrame*CFrame.new(0,-2.5,-3.4)
  1031. table.insert(Effects,{wm,"Wall",0,0,wall,0,#walls})
  1032. for e=1,3 do
  1033. wait()
  1034. for i=0,1,0.15 do
  1035. swait()
  1036. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.15),.3)
  1037. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*euler(0,.1,-.2)*euler(0,0,0),.2)
  1038. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(2.8,0,.15)*euler(0,0,0),.3)
  1039. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1040. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.45,0,-.3),.3)
  1041. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1042. RH.C0=clerp(RH.C0,cf(1,.25,-1)*euler(0,1.57,0)*euler(.05,.1,0),.1)
  1043. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,1.3),.2)
  1044. handlewld.C0=clerp(handlewld.C0,euler(1.35,0,0)*cf(0,1,0),.2)
  1045. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1046. break
  1047. end
  1048. end
  1049. hbwld.Parent=nil
  1050. hboxpos.Parent=hitbox
  1051. hitbox.Parent=modelzorz
  1052. hitbox.Size=vt(1.5,1.5,2)
  1053. hitboxCF=prt5.CFrame
  1054. hitbox.CFrame=hitboxCF
  1055. for i=0,1,0.15 do
  1056. swait()
  1057. hitboxCF=prt5.CFrame
  1058. hitbox.CFrame=hitboxCF
  1059. MagniDamage(hitbox,3,9,12,math.random(2,3),"Normal",RootPart,.5,1,math.random(16,23),nil,true,nil,"Movement",.05,350)
  1060. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  1061. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*euler(0,0,0)*euler(0,0,0),.2)
  1062. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(1.6,0,-.1)*euler(0,0,0),.65)
  1063. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.45,0,-.3),.3)
  1065. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1066. RH.C0=clerp(RH.C0,cf(1,.25,-1)*euler(0,1.57,0)*euler(-.05,-.1,-.1),.1)
  1067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,1.35),.2)
  1068. handlewld.C0=clerp(handlewld.C0,euler(1.7,0,0)*cf(0,1,0),.5)
  1069. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1070. break
  1071. end
  1072. end
  1073. for i=1,8 do
  1074. if e>1 then
  1075. nom=e*.5
  1076. else
  1077. nom=0
  1078. end
  1079. MagicCloud(BrickColor.new("White"),wall.CFrame*cf(math.random(-750,750)/100,math.random(-45,-40)/100-(nom),math.random(-100,100)/100)*euler(math.rad(math.random(-180,180)),math.rad(math.random(-60,60)),math.rad(math.random(-180,180))),5,7,7,.1,.1,.1,.05)
  1080. end
  1081. wall.CFrame=wall.CFrame*CFrame.new(0,1,0)
  1082. end
  1083. resumeControl()
  1084. MagniBuff(RootPart,20,"Defense",-.25,400)
  1085. game:GetService("Debris"):AddItem(wall,50)
  1086. hitbox.Parent=modelzorz
  1087. hitbox.Size=vt()
  1088. hitboxweld()
  1089. hboxpos.Parent=nil
  1090. dec.Parent=nil
  1091. dec2.Parent=nil
  1092. attack=false
  1093. end
  1094. end
  1095.  
  1096. function do2()
  1097. if attack==true then return end
  1098. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1099. if cooldowns[2]>=cooldownmax and mana.Value>=30 then
  1100. --if true then
  1101. attack=true
  1102. cooldowns[2]=0
  1103. local ded={}
  1104. for i=0,1,0.1 do
  1105. swait()
  1106. if i==.6 or i==.8 then
  1107. MagicCircle(BrickColor.new(NewCol),prt5.CFrame,10,10,10,-.5,-.5,-.5,.05)
  1108. end
  1109. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.15,0,-.15),.5)
  1110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,-.25),.5)
  1111. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.4,0,.25)*euler(0,0,0),.5)
  1112. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.1),.5)
  1114. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1115. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  1116. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  1117. handlewld.C0=clerp(handlewld.C0,euler(1.25,0,0)*cf(0,.9,.3),.1)
  1118. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1119. break
  1120. end
  1121. end
  1122. local dec=Instance.new("NumberValue")
  1123. dec.Name="DecreaseMvmt"
  1124. dec.Value=10
  1125. dec.Parent=Decrease
  1126. for i=0,1,0.05 do
  1127. swait()
  1128. MagicBlock(BrickColor.new(NewCol),prt5.CFrame*CFrame.new(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),2,2,2,-.1,-.1,-.1,.05)
  1129. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.3,0,0),.1)
  1130. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*euler(.15,0,0)*euler(0,0,0),.1)
  1131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.25)*euler(0,0,0),.1)
  1132. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1133. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.15),.1)
  1134. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1135. RH.C0=clerp(RH.C0,cf(1,0.25,-1)*euler(0,1.57,0)*euler(-.05,-.1,-.15),.1)
  1136. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,1.5),.1)
  1137. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.1)
  1138. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1139. break
  1140. end
  1141. end
  1142. for i=0,1,0.1 do
  1143. swait()
  1144. MagicBlock(BrickColor.new(NewCol),prt5.CFrame*CFrame.new(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),2,2,2,-.1,-.1,-.1,.05)
  1145. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  1146. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(-.2,0,0)*euler(0,0,0),.3)
  1147. RW.C0=clerp(RW.C0,cf(1,1.25,0)*euler(2.7,0,-.6)*euler(0,0,0),.3)
  1148. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1149. LW.C0=clerp(LW.C0,cf(-1,1.25,0)*euler(2.7,0,.6),.3)
  1150. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1151. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*euler(0,1.57,0)*euler(-.05,-.1,-.15),.3)
  1152. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.3)
  1153. handlewld.C0=clerp(handlewld.C0,euler(1.35,0,-.87)*cf(.25,1,0),.3)
  1154. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1155. break
  1156. end
  1157. end
  1158. mana.Value=mana.Value-25
  1159. for i=0,1,0.15 do
  1160. swait()
  1161. MagicBlock(BrickColor.new(NewCol),prt5.CFrame*CFrame.new(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),2,2,2,-.1,-.1,-.1,.05)
  1162. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.35,0,0),.4)
  1163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.7)*euler(.25,0,0)*euler(0,0,0),.4)
  1164. RW.C0=clerp(RW.C0,cf(1,.15,0)*euler(1,0,-.6)*euler(0,0,0),.4)
  1165. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1166. LW.C0=clerp(LW.C0,cf(-1,.15,0)*euler(1,0,.6),.4)
  1167. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1168. RH.C0=clerp(RH.C0,cf(1,0.5,-.8)*euler(0,1.57,0)*euler(-.05,-.1,-.1),.4)
  1169. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,1.4),.4)
  1170. handlewld.C0=clerp(handlewld.C0,euler(2.6,0,-.87)*cf(.25,1,.25),.4)
  1171. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1172. break
  1173. end
  1174. end
  1175. so("200632561",Torso,1,.5)
  1176. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1177. ref.Anchored=true
  1178. MagniDamage(ref,25,4,6,math.random(10,17),"Normal",RootPart,0,1,math.random(15,20),nil,true,nil,"Movement",.2,350)
  1179. ref.CFrame=RootPart.CFrame*cf(0,-2,-2)
  1180. game:GetService("Debris"):AddItem(ref,3)
  1181. MagicBlock(BrickColor.new(NewCol),ref.CFrame*cf(0,-1,0),3,3,3,6,6,6,.09)
  1182. MagicCircle(BrickColor.new(NewCol),ref.CFrame*cf(0,-1,0),25,20,25,10,5,10,.1)
  1183. MagicRing(BrickColor.new(NewCol),ref.CFrame*euler(1.57,0,0)*cf(0,-1,0),3,3,1,4,4,1,.09)
  1184. if #walls>0 then
  1185. for i=1,#walls do
  1186. table.insert(ded,walls[i])
  1187. end
  1188. end
  1189. for i=1,#ded do
  1190. swait()
  1191. if (RootPart.Position-ded[i].BWall.Position).magnitude<=25 then
  1192. MagicCircle(BrickColor.new(NewCol),ded[i].BWall.CFrame*cf(0,-1,0),25,25,25,15,15,15,.15)
  1193. for e=1,math.random(5,11) do
  1194. local size=math.random(5,15)/10
  1195. local deb=part(3,workspace,0,0,ded[i].BWall.BrickColor,"Debris",vt(size,size,size))
  1196. deb.Anchored=false
  1197. deb.Material=ded[i].BWall.Material
  1198. deb.CanCollide=true
  1199. deb.Velocity=vt(math.random(-40,40),math.random(60,90),math.random(-40,40))
  1200. deb.CFrame=ded[i].BWall.CFrame*euler(math.random(-10,10),math.random(5,10),math.random(-15,15))
  1201. coroutine.resume(coroutine.create(function()
  1202. swait(.55)
  1203. for i=1,10 do
  1204. swait()
  1205. MagicCloud(BrickColor.new("White"),deb.CFrame*cf(math.random(-150,150)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.rad(math.random(-180,180)),math.rad(math.random(-60,60)),math.rad(math.random(-180,180))),.5,2.5,2.5,.1,.1,.1,.05)
  1206. end
  1207. end))
  1208. game:GetService("Debris"):AddItem(deb,5)
  1209. end
  1210. MagniDamage(ded[i].BWall,10,6,9,math.random(8,12),"Knockdown2",ded[i].BWall,0,1,math.random(12,16),nil,nil,true,"Defense",.1,400)
  1211. ded[i].Parent=nil
  1212. end
  1213. end
  1214. dec.Parent=nil
  1215. attack=false
  1216. end
  1217. end
  1218.  
  1219. function do3()
  1220. if attack==true then return end
  1221. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1222. if cooldowns[3]>=cooldownmax and mana.Value>=40 then
  1223. --if true then
  1224. attack=true
  1225. cooldowns[3]=0
  1226. mana.Value=mana.Value-35
  1227. --[[for i=0,1,0.08 do
  1228. swait()
  1229. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.15,0,.15),.25)
  1230. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.25)
  1231. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.45,0,.25)*euler(0,0,0),.25)
  1232. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  1233. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.1),.25)
  1234. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),2.5)
  1235. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.25)
  1236. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.25)
  1237. handlewld.C0=clerp(handlewld.C0,euler(1.25,0,0)*cf(0,.9,.3),.25)
  1238. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1239. break
  1240. end
  1241. end
  1242. local sword=part(3,workspace,0,0,BrickColor.new(NewCol),"Sword",vt())
  1243. local smsh=mesh("BlockMesh",sword,"","",vt(0,0,0),vt(2.5,16,1.5))
  1244. local swdwld=weld(sword,sword,LeftArm,euler(1.57,0,1.57)*cf(0,1,1.2))
  1245. for i=1,2 do
  1246. for i=0,1,0.1 do
  1247. swait()
  1248. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.15,0,-.15),.3)
  1249. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.3)
  1250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.4,0,.25)*euler(0,0,0),.3)
  1251. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1252. LW.C0=clerp(LW.C0,cf(-1.5,0.5,-.55)*euler(1.45,-1.6,-.2),.3)
  1253. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1254. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.3)
  1255. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.3)
  1256. handlewld.C0=clerp(handlewld.C0,euler(1.25,0,0)*cf(0,.9,.3),.3)
  1257. swdwld.C0=clerp(swdwld.C0,euler(1.57,0,1.8)*cf(0,1,1.2),.3)
  1258. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1259. break
  1260. end
  1261. end
  1262. for i=0,1,0.15 do
  1263. swait()
  1264. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.3)
  1265. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.3)
  1266. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.35)*euler(0,0,0),.55)
  1267. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1268. LW.C0=clerp(LW.C0,cf(-1.5,0.35,-.55)*euler(1.45,-1.7,-.2),.55)
  1269. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1270. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.3)
  1271. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.3)
  1272. handlewld.C0=clerp(handlewld.C0,euler(2,0,0)*cf(0,.9,.3),.3)
  1273. swdwld.C0=clerp(swdwld.C0,euler(1.57,0,1.8)*cf(0,1,1.2),.3)
  1274. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1275. break
  1276. end
  1277. end
  1278. end
  1279. smsh:Destroy()
  1280. local smshr=mesh("SpecialMesh",sword,"FileMesh","94746028",vt(0,0,0),vt(1.5,1.5,1.5))
  1281. for i=0,1,0.1 do
  1282. swait()
  1283. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.2)
  1284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.2)
  1285. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.35)*euler(0,0,0),.2)
  1286. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1287. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.45,-.8,-.2)*euler(1,0,0),.2)
  1288. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1289. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.2)
  1290. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.2)
  1291. handlewld.C0=clerp(handlewld.C0,euler(2,0,0)*cf(0,.9,.3),.2)
  1292. swdwld.C0=clerp(swdwld.C0,euler(1.35,0,1.8)*cf(0,1,1.45),.2)
  1293. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1294. break
  1295. end
  1296. end
  1297. for i=0,1,0.15 do
  1298. swait()
  1299. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.5)
  1300. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0)*euler(0,0,0),.5)
  1301. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.35)*euler(0,0,0),.5)
  1302. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1303. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.45,-.6,-.2)*euler(-1.8,0,0),.5)
  1304. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1305. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.5)
  1306. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.5)
  1307. handlewld.C0=clerp(handlewld.C0,euler(2,0,0)*cf(0,.9,.3),.5)
  1308. swdwld.C0=clerp(swdwld.C0,euler(1.7,0,1.8)*cf(0,1,1.45),.5)
  1309. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1310. break
  1311. end
  1312. end]]
  1313. hitbox.Parent=modelzorz
  1314. hitbox.Size=vt()
  1315. hitboxweld()
  1316. hboxpos.Parent=nil
  1317. attack=false
  1318. end
  1319. end
  1320.  
  1321. function do4()
  1322. end
  1323.  
  1324. function DecreaseStat(Model,Stat,Amount,Duration)
  1325. if Model:findFirstChild("Stats")~=nil then
  1326. if Model.Stats[Stat]~=nil then
  1327. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1328. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1329. dur=Instance.new("NumberValue",d)
  1330. dur.Name="Duration"
  1331. dur.Value=Duration
  1332. game:GetService("Debris"):AddItem(d,20)
  1333. if Stat=="Damage" then
  1334. d.Name="DecreaseAtk"
  1335. elseif Stat=="Defense" then
  1336. d.Name="DecreaseDef"
  1337. elseif Stat=="Movement" then
  1338. d.Name="DecreaseMvmt"
  1339. end
  1340. if Model:findFirstChild("Torso")~=nil then
  1341. display=""
  1342. if Stat=="Damage" then
  1343. if Amount>0 then
  1344. display="-Damage"
  1345. else
  1346. display="+Damage"
  1347. end
  1348. elseif Stat=="Defense" then
  1349. if Amount>0 then
  1350. display="-Defense"
  1351. else
  1352. display="+Defense"
  1353. end
  1354. elseif Stat=="Movement" then
  1355. if Amount>0 then
  1356. display="-Movement"
  1357. else
  1358. display="+Movement"
  1359. end
  1360. end
  1361. showDamage(Model,display,"Debuff")
  1362. end
  1363. d.Value=Amount
  1364. end
  1365. end
  1366. end
  1367.  
  1368. function GetDist(Part1,Part2,magni)
  1369. local targ=Part1.Position-Part2.Position
  1370. local mag=targ.magnitude
  1371. if mag<=magni then
  1372. return true
  1373. else
  1374. return false
  1375. end
  1376. end
  1377.  
  1378. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1379. for _,c in pairs(workspace:children()) do
  1380. local hum=c:findFirstChild("Humanoid")
  1381. if hum~=nil then
  1382. local head=nil
  1383. for _,d in pairs(c:children()) do
  1384. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1385. if d.className=="Model" and ranged~=true then
  1386. head=d:findFirstChild("Hitbox")
  1387. if d.Parent==Character then break end
  1388. if head~=nil then
  1389. local targ=head.Position-Part.Position
  1390. local mag=targ.magnitude
  1391. if mag<=magni and c.Name~=Player.Name then
  1392. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1393. ref.Anchored=true
  1394. ref.CFrame=cf(head.Position)
  1395. game:GetService("Debris"):AddItem(ref,1)
  1396. hitnum=math.random(1,5)
  1397. if hitnum==1 then so("199148971",ref,1,1)
  1398. elseif hitnum==2 then so("199149025",ref,1,1)
  1399. elseif hitnum==3 then so("199149072",ref,1,1)
  1400. elseif hitnum==4 then so("199149109",ref,1,1)
  1401. elseif hitnum==5 then so("199149119",ref,1,1)
  1402. end
  1403. StaggerHit.Value=true
  1404. end
  1405. end
  1406. end
  1407. if d.className=="Part" then
  1408. head=d
  1409. if head~=nil then
  1410. local targ=head.Position-Part.Position
  1411. local mag=targ.magnitude
  1412. if mag<=magni and c.Name~=Player.Name then
  1413. if stun==nil then
  1414. stun=math.random(5,10)
  1415. end
  1416. local Rang=nil
  1417. if Ranged==false then
  1418. Rang=true
  1419. end
  1420. local stag=nil
  1421. if shbash==true then
  1422. stag=true
  1423. end
  1424. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1425. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1426. end
  1427. end
  1428. end
  1429. end
  1430. end
  1431. end
  1432. end
  1433.  
  1434. function MagniBuff(Part,magni,Dec,DecAm,Dur,others)
  1435. if Player.Neutral==true then
  1436. DecreaseStat(Character,Dec,DecAm,Dur)
  1437. end
  1438. for _,c in pairs(workspace:children()) do
  1439. local hum=c:findFirstChild("Humanoid")
  1440. if hum~=nil then
  1441. local head=c:findFirstChild("Torso")
  1442. if head~=nil then
  1443. local targ=head.Position-Part.Position
  1444. local mag=targ.magnitude
  1445. if others==nil then
  1446. if mag<=magni then
  1447. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  1448. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  1449. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then
  1450. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  1451. end
  1452. end
  1453. end
  1454. end
  1455. else
  1456. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  1457. if mag<=magni and head.Parent~=Character then
  1458. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  1459. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then
  1460. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  1461. end
  1462. end
  1463. end
  1464. end
  1465. end
  1466. end
  1467. end
  1468. end
  1469. end
  1470.  
  1471. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1472. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1473. end
  1474.  
  1475. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1476. LastPoint=Point
  1477. function effect(Color,Ref,LP,P1,returnn)
  1478. if LP==nil or P1==nil then return end
  1479. local effectsmsh=Instance.new("CylinderMesh")
  1480. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1481. effectsmsh.Name="Mesh"
  1482. local effectsg=Instance.new("Part")
  1483. NoOutline(effectsg)
  1484. effectsg.formFactor=3
  1485. effectsg.CanCollide=false
  1486. effectsg.Name="Eff"
  1487. effectsg.Locked=true
  1488. effectsg.Anchored=true
  1489. effectsg.Size=Vector3.new(0.5,1,0.5)
  1490. effectsg.Parent=workspace
  1491. effectsmsh.Parent=effectsg
  1492. effectsg.BrickColor=BrickColor.new(Color)
  1493. effectsg.Reflectance=Ref
  1494. local point1=P1
  1495. local mg=(LP.p - point1.p).magnitude
  1496. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1497. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1498. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1499. game:GetService("Debris"):AddItem(effectsg,2)
  1500. if returnn then return effectsg end
  1501. if not returnn then
  1502. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  1503. end
  1504. end
  1505.  
  1506. local function CFrameFromTopBack(at, top, back)
  1507. local right = top:Cross(back)
  1508. return CFrame.new(at.x, at.y, at.z,
  1509. right.x, top.x, back.x,
  1510. right.y, top.y, back.y,
  1511. right.z, top.z, back.z)
  1512. end
  1513.  
  1514. function Triangle(a, b, c)
  1515. local edg1 = (c-a):Dot((b-a).unit)
  1516. local edg2 = (a-b):Dot((c-b).unit)
  1517. local edg3 = (b-c):Dot((a-c).unit)
  1518. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1519. a, b, c = a, b, c
  1520. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1521. a, b, c = b, c, a
  1522. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1523. a, b, c = c, a, b
  1524. else
  1525. assert(false, "unreachable")
  1526. end
  1527.  
  1528. local len1 = (c-a):Dot((b-a).unit)
  1529. local len2 = (b-a).magnitude - len1
  1530. local width = (a + (b-a).unit*len1 - c).magnitude
  1531.  
  1532. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1533.  
  1534. local list = {}
  1535.  
  1536. if len1 > 0.01 then
  1537. local w1 = Instance.new('WedgePart', m)
  1538. game:GetService("Debris"):AddItem(w1,5)
  1539. w1.Material = "SmoothPlastic"
  1540. w1.FormFactor = 'Custom'
  1541. w1.BrickColor = BrickColor.new("Medium blue")
  1542. w1.Transparency = 0
  1543. w1.Reflectance = 0
  1544. w1.Material = "SmoothPlastic"
  1545. w1.CanCollide = false
  1546. NoOutline(w1)
  1547. local sz = Vector3.new(0.2, width, len1)
  1548. w1.Size = sz
  1549. local sp = Instance.new("SpecialMesh",w1)
  1550. sp.MeshType = "Wedge"
  1551. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1552. w1:BreakJoints()
  1553. w1.Anchored = true
  1554. w1.Parent = workspace
  1555. w1.Transparency = 0.7
  1556. table.insert(Effects,{w1,"Disappear",.05})
  1557. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1558. table.insert(list,w1)
  1559. end
  1560.  
  1561. if len2 > 0.01 then
  1562. local w2 = Instance.new('WedgePart', m)
  1563. game:GetService("Debris"):AddItem(w2,5)
  1564. w2.Material = "SmoothPlastic"
  1565. w2.FormFactor = 'Custom'
  1566. w2.BrickColor = BrickColor.new("Medium blue")
  1567. w2.Transparency = 0
  1568. w2.Reflectance = 0
  1569. w2.Material = "SmoothPlastic"
  1570. w2.CanCollide = false
  1571. NoOutline(w2)
  1572. local sz = Vector3.new(0.2, width, len2)
  1573. w2.Size = sz
  1574. local sp = Instance.new("SpecialMesh",w2)
  1575. sp.MeshType = "Wedge"
  1576. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1577. w2:BreakJoints()
  1578. w2.Anchored = true
  1579. w2.Parent = workspace
  1580. w2.Transparency = 0.7
  1581. table.insert(Effects,{w2,"Disappear",.05})
  1582. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1583. table.insert(list,w2)
  1584. end
  1585. return unpack(list)
  1586. end
  1587.  
  1588. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  1589. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1590. prt.Anchored=true
  1591. prt.CFrame=cframe
  1592. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1593. game:GetService("Debris"):AddItem(prt,10)
  1594. if Type==1 or Type==nil then
  1595. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1596. elseif Type==2 then
  1597. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1598. end
  1599. end
  1600.  
  1601. function MagicCloud(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1602. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1603. prt.Anchored=true
  1604. prt.CFrame=cframe
  1605. local msh=mesh("SpecialMesh",prt,"FileMesh","1095708",vt(0,0,0),vt(x1,y1,z1))
  1606. game:GetService("Debris"):AddItem(prt,10)
  1607. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1608. end
  1609.  
  1610. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1611. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1612. prt.Anchored=true
  1613. prt.CFrame=cframe
  1614. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1615. game:GetService("Debris"):AddItem(prt,10)
  1616. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1617. end
  1618.  
  1619. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
  1620. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1621. prt.Anchored=true
  1622. prt.CFrame=cframe
  1623. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1624. game:GetService("Debris"):AddItem(prt,10)
  1625. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
  1626. end
  1627.  
  1628. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1629. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1630. prt.Anchored=true
  1631. prt.CFrame=cframe*cf(x2,y2,z2)
  1632. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  1633. game:GetService("Debris"):AddItem(prt,10)
  1634. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1635. end
  1636.  
  1637. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1638. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1639. prt.Anchored=true
  1640. prt.CFrame=cframe
  1641. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1642. game:GetService("Debris"):AddItem(prt,10)
  1643. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1644. end
  1645.  
  1646. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  1647. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  1648. prt.Anchored=true
  1649. prt.CFrame=cframe
  1650. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  1651. game:GetService("Debris"):AddItem(prt,10)
  1652. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  1653. end
  1654.  
  1655. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1656. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1657. prt.Anchored=true
  1658. prt.CFrame=cframe
  1659. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  1660. game:GetService("Debris"):AddItem(prt,10)
  1661. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1662. end
  1663.  
  1664. function MagicSpecial(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1665. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1666. prt.Anchored=true
  1667. prt.CFrame=cframe
  1668. local msh=mesh("SpecialMesh",prt,"FileMesh","24388358",vt(0,0,0),vt(x1,y1,z1))
  1669. game:GetService("Debris"):AddItem(prt,10)
  1670. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1671. end
  1672.  
  1673. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1674. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1675. prt.Anchored=true
  1676. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1677. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1678. local num=math.random(10,50)/1000
  1679. game:GetService("Debris"):AddItem(prt,10)
  1680. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  1681. end
  1682.  
  1683. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1684. if hit.Parent==nil then
  1685. return
  1686. end
  1687. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  1688. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1689. ref.Anchored=true
  1690. ref.CFrame=cf(hit.Position)
  1691. game:GetService("Debris"):AddItem(ref,1)
  1692. hitnum=math.random(1,5)
  1693. if hitnum==1 then so("199148971",ref,1,1)
  1694. elseif hitnum==2 then so("199149025",ref,1,1)
  1695. elseif hitnum==3 then so("199149072",ref,1,1)
  1696. elseif hitnum==4 then so("199149109",ref,1,1)
  1697. elseif hitnum==5 then so("199149119",ref,1,1)
  1698. end
  1699. StaggerHit.Value=true
  1700. end
  1701. h=hit.Parent:FindFirstChild("Humanoid")
  1702. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1703. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1704. if Player.Neutral==false then
  1705. if hit.Parent:findFirstChild("Alignment")~=nil then
  1706. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  1707. end
  1708. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1709. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  1710. end
  1711. end
  1712. if doing4==true then
  1713. if HitTarget==nil then
  1714. --Damagefunc(hit,5,10,1,"Normal",RootPart,.5,2,math.random(5,10),nil,true,false,"Movement",10,100)
  1715. HitTarget=hit.Parent
  1716. MagicBlock(BrickColor.new(NewCol),cf(HitTarget.Torso.Position),1,1,1,3,3,3,.1,1)
  1717. end
  1718. end
  1719. if Sound=="Impact" then
  1720. so("200632875",hit,1,1)
  1721. end
  1722. hitted=true
  1723. if Sound=="Shatter" then
  1724. so("199146069",hit,1,1)
  1725. end
  1726. c=Instance.new("ObjectValue")
  1727. c.Name="creator"
  1728. c.Value=game:service("Players").LocalPlayer
  1729. c.Parent=h
  1730. RecentEnemy.Value=hit.Parent
  1731. game:GetService("Debris"):AddItem(c,.5)
  1732. minim=minim*Atk.Value
  1733. maxim=maxim*Atk.Value
  1734. Damage=0
  1735. if minim==maxim then
  1736. Damage=maxim
  1737. else
  1738. Damage=math.random(minim,maxim)
  1739. end
  1740. blocked=false
  1741. enblock=nil
  1742. Stats=hit.Parent:findFirstChild("Stats")
  1743. if Stats~=nil then
  1744. invis=Stats:findFirstChild("Invisibility")
  1745. isinvis=Stats:findFirstChild("IsInvisible")
  1746. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  1747. invis.Value=0
  1748. end
  1749. enblock=Stats:findFirstChild("Block")
  1750. if enblock~=nil then
  1751. if enblock.Value==true then
  1752. blocked=true
  1753. end
  1754. end
  1755. if Stats:findFirstChild("Defense")~=nil then
  1756. Damage=Damage/(Stats.Defense.Value)
  1757. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  1758. hitnum=math.random(1,5)
  1759. if hitnum==1 then so("199149321",hit,1,1)
  1760. elseif hitnum==2 then so("199149338",hit,1,1)
  1761. elseif hitnum==3 then so("199149367",hit,1,1)
  1762. elseif hitnum==4 then so("199149409",hit,1,1)
  1763. elseif hitnum==5 then so("199149452",hit,1,1)
  1764. end
  1765. elseif ranged==false or ranged==nil and blocked~=true then
  1766. hitnum=math.random(1,6)
  1767. if hitnum==1 then so("199149137",hit,1,1)
  1768. elseif hitnum==2 then so("199149186",hit,1,1)
  1769. elseif hitnum==3 then so("199149221",hit,1,1)
  1770. elseif hitnum==4 then so("199149235",hit,1,1)
  1771. elseif hitnum==5 then so("199149269",hit,1,1)
  1772. elseif hitnum==6 then so("199149297",hit,1,1)
  1773. end
  1774. end
  1775. if Damage<=3 and staghit==true then
  1776. StaggerHit.Value=true
  1777. end
  1778. end
  1779. if Stats:findFirstChild("Stun")~=nil then
  1780. if blocked==true then
  1781. incstun=incstun/2
  1782. end
  1783. if Stats.Stun.Value<Stats.StunThreshold.Value then
  1784. Stats.Stun.Value=Stats.Stun.Value+incstun
  1785. end
  1786. end
  1787. if Stats:findFirstChild("Stagger")~=nil then
  1788. if stagger==true then
  1789. Stats.Stagger.Value=true
  1790. end
  1791. end
  1792. end
  1793. if blocked==true then
  1794. showDamage(hit.Parent,"Block","Damage")
  1795. if ranged~=true then
  1796. enblock.Value=false
  1797. Stagger.Value=true
  1798. hitnum=math.random(1,2)
  1799. if hitnum==1 then so("199148933",hit,1,1)
  1800. elseif hitnum==2 then so("199148947",hit,1,1)
  1801. end
  1802. end
  1803. else
  1804. Damage=math.floor(Damage)
  1805. coroutine.resume(coroutine.create(function(Hum,Dam)
  1806. hit.Parent.Humanoid:TakeDamage(Damage)
  1807. end),h,Damage)
  1808. showDamage(hit.Parent,Damage,"Damage")
  1809. if DecreaseState~=nil then
  1810. if DecreaseState=="Shatter" then
  1811. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  1812. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  1813. else
  1814. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  1815. end
  1816. end
  1817. if Type=="Knockdown" then
  1818. hum=hit.Parent.Humanoid
  1819. hum.PlatformStand=true
  1820. coroutine.resume(coroutine.create(function(HHumanoid)
  1821. swait(1)
  1822. HHumanoid.PlatformStand=false
  1823. end),hum)
  1824. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1825. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1826. local bodvol=Instance.new("BodyVelocity")
  1827. bodvol.velocity=angle*knockback
  1828. bodvol.P=5000
  1829. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1830. bodvol.Parent=hit
  1831. rl=Instance.new("BodyAngularVelocity")
  1832. rl.P=3000
  1833. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1834. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1835. rl.Parent=hit
  1836. game:GetService("Debris"):AddItem(bodvol,.5)
  1837. game:GetService("Debris"):AddItem(rl,.5)
  1838. elseif Type=="Shatter" then
  1839. for i=1,10 do
  1840. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  1841. end
  1842. elseif Type=="Knockdown2" then
  1843. hum=hit.Parent.Humanoid
  1844. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1845. local bodvol=Instance.new("BodyVelocity")
  1846. bodvol.velocity=angle*knockback
  1847. bodvol.P=5000
  1848. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1849. bodvol.Parent=hit
  1850. game:GetService("Debris"):AddItem(bodvol,.5)
  1851. elseif Type=="Normal" then
  1852. vp=Instance.new("BodyVelocity")
  1853. vp.P=500
  1854. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1855. if KnockbackType==1 then
  1856. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1857. elseif KnockbackType==2 then
  1858. vp.velocity=Property.CFrame.lookVector*knockback
  1859. end
  1860. game:GetService("Debris"):AddItem(vp,.5)
  1861. if knockback>0 then
  1862. vp.Parent=hit.Parent.Torso
  1863. end
  1864. end
  1865. end
  1866. debounce=Instance.new("BoolValue")
  1867. debounce.Name="DebounceHit"
  1868. debounce.Parent=hit.Parent
  1869. debounce.Value=true
  1870. game:GetService("Debris"):AddItem(debounce,Delay)
  1871. c=Instance.new("ObjectValue")
  1872. c.Name="creator"
  1873. c.Value=Player
  1874. c.Parent=h
  1875. game:GetService("Debris"):AddItem(c,.5)
  1876. CRIT=false
  1877. end
  1878. end
  1879.  
  1880. showDamage=function(Char,Dealt,Type)
  1881. m=Instance.new("Model")
  1882. m.Name="Effect"
  1883. c=Instance.new("Part")
  1884. c.Transparency=1
  1885. c.Name="Head"
  1886. c.TopSurface=0
  1887. c.BottomSurface=0
  1888. c.formFactor="Plate"
  1889. c.Size=Vector3.new(1,.4,1)
  1890. b=Instance.new("BillboardGui",c)
  1891. b.Size=UDim2.new(5,0,5,0)
  1892. b.AlwaysOnTop=true
  1893. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  1894. if Type=="Damage" then
  1895. damgui.Font="SourceSans"
  1896. if Dealt=="Block" then
  1897. damgui.TextColor3=BrickColor.new("Bright blue").Color
  1898. elseif Dealt<3 then
  1899. damgui.TextColor3=BrickColor.new("White").Color
  1900. elseif Dealt>=3 and Dealt<20 then
  1901. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  1902. else
  1903. damgui.TextColor3=BrickColor.new("Really red").Color
  1904. damgui.Font="SourceSansBold"
  1905. end
  1906. elseif Type=="Debuff" then
  1907. damgui.TextColor3=BrickColor.new("White").Color
  1908. elseif Type=="Interrupt" then
  1909. damgui.TextColor3=BrickColor.new("New Yeller").Color
  1910. elseif Type=="Heal" then
  1911. damgui.TextColor3=BrickColor.new("Bright green").Color
  1912. end
  1913. --damgui.FontSize="Size48"
  1914. damgui.TextScaled=true
  1915. ms=Instance.new("CylinderMesh")
  1916. ms.Scale=Vector3.new(.8,.8,.8)
  1917. ms.Parent=c
  1918. c.Reflectance=0
  1919. Instance.new("BodyGyro").Parent=c
  1920. c.Parent=m
  1921. if Char:findFirstChild("Head")~=nil then
  1922. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1923. elseif Char.Parent:findFirstChild("Head")~=nil then
  1924. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1925. end
  1926. f=Instance.new("BodyPosition")
  1927. f.P=2000
  1928. f.D=100
  1929. f.maxForce=Vector3.new(545000,545000,545000)
  1930. if Type=="Damage" or Type=="Heal" then
  1931. f.position=c.Position+Vector3.new(0,3,0)
  1932. elseif Type=="Debuff" or Type=="Interrupt" then
  1933. f.position=c.Position+Vector3.new(0,5,0)
  1934. end
  1935. f.Parent=c
  1936. game:GetService("Debris"):AddItem(m,5)
  1937. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  1938. c.CanCollide=false
  1939. m.Parent=workspace
  1940. c.CanCollide=false
  1941. end
  1942.  
  1943. combo=0
  1944. function ob1d(mouse)
  1945. if attack==true or equipped==false then return end
  1946. hold=true
  1947. if combo==0 then
  1948. combo=1
  1949. attackone()
  1950. elseif combo==1 then
  1951. combo=2
  1952. attacktwo()
  1953. elseif combo==2 then
  1954. combo=3
  1955. attackthree()
  1956. elseif combo==3 then
  1957. combo=0
  1958. attackfour()
  1959. end
  1960. coroutine.resume(coroutine.create(function()
  1961. for i=1,50 do
  1962. if attack==false then
  1963. swait()
  1964. end
  1965. end
  1966. if attack==false then
  1967. combo=0
  1968. end
  1969. end))
  1970. end
  1971.  
  1972. function ob1u(mouse)
  1973. hold = false
  1974. end
  1975.  
  1976. buttonhold = false
  1977.  
  1978. fenbarmove1.MouseButton1Click:connect(do1)
  1979. fenbarmove2.MouseButton1Click:connect(do2)
  1980. fenbarmove3.MouseButton1Click:connect(do3)
  1981. fenbarmove4.MouseButton1Click:connect(do4)
  1982. eul=0
  1983. equipped=false
  1984. function key(key)
  1985. if attack==true then return end
  1986. if key=="f" then
  1987. pressedf=true
  1988. fnumb=0
  1989. attack=true
  1990. if equipped==false then
  1991. equipped=true
  1992. RSH=ch.Torso["Right Shoulder"]
  1993. LSH=ch.Torso["Left Shoulder"]
  1994. --
  1995. RSH.Parent=nil
  1996. LSH.Parent=nil
  1997. --
  1998. RW.Name="Right Shoulder"
  1999. RW.Part0=ch.Torso
  2000. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2001. RW.C1=cf(0, 0.5, 0)
  2002. RW.Part1=ch["Right Arm"]
  2003. RW.Parent=ch.Torso
  2004. --
  2005. LW.Name="Left Shoulder"
  2006. LW.Part0=ch.Torso
  2007. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2008. LW.C1=cf(0, 0.5, 0)
  2009. LW.Part1=ch["Left Arm"]
  2010. LW.Parent=ch.Torso
  2011. --
  2012. Animate.Parent=nil
  2013. equipanim()
  2014. else
  2015. equipped=false
  2016. hideanim()
  2017. LH.C1=LHC1
  2018. RH.C1=RHC1
  2019. Animate.Parent=Humanoid
  2020. swait(0)
  2021. RW.Parent=nil
  2022. LW.Parent=nil
  2023. RSH.Parent=player.Character.Torso
  2024. LSH.Parent=player.Character.Torso
  2025. end
  2026. attack=false
  2027. end
  2028. if equipped==false then return end
  2029. if key=="e" then
  2030. Transposition()
  2031. end
  2032. if key=="z" then
  2033. do1()
  2034. end
  2035. if key=="x" then
  2036. do2()
  2037. end
  2038. if key=="c" then
  2039. do3()
  2040. end
  2041. if key=="v" then
  2042. do4()
  2043. end
  2044. if key=="h" then
  2045. mana.Value=100
  2046. for i=1,4 do
  2047. cooldowns[i]=100
  2048. end
  2049. end
  2050. end
  2051.  
  2052. function key2(key)
  2053.  
  2054.  
  2055. end
  2056.  
  2057. function s(mouse)
  2058. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2059. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2060. mouse.KeyDown:connect(key)
  2061. mouse.KeyUp:connect(key2)
  2062.  
  2063. player=Player
  2064. ch=Character
  2065. MMouse=mouse
  2066. end
  2067.  
  2068. function ds(mouse)
  2069. end
  2070.  
  2071. Bin.Selected:connect(s)
  2072. Bin.Deselected:connect(ds)
  2073. print("Bob loaded.")
  2074.  
  2075. local mananum=0
  2076. local blocknum2=0
  2077. local donum=0
  2078. local stunnum=0
  2079. local staggeranim=false
  2080. local stunanim=false
  2081. local Point=nil
  2082. local LastPoint=nil
  2083. local oldhealth=Humanoid.Health
  2084. local walk=0
  2085. local walkforw=true
  2086. while true do
  2087. swait()
  2088. if Humanoid.Health<=0 then
  2089. attack=true
  2090. resumeControl()
  2091. modelzorz.Parent=workspace
  2092. game:GetService("Debris"):AddItem(modelzorz,30)
  2093. for i=1,#Weapon do
  2094. Weapon[i].Parent=modelzorz
  2095. Weapon[i].CanCollide=true
  2096. end
  2097. for i=1,#Welds do
  2098. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  2099. Welds[i].Parent=nil
  2100. else
  2101. Welds[i].Parent=rprt1
  2102. end
  2103. end
  2104. end
  2105. --isjugg
  2106. col=Player.TeamColor
  2107. for _,c in pairs(game.Teams:children()) do
  2108. if c.TeamColor==col and c.Name=="Juggernaut" then
  2109. isjugg=true
  2110. end
  2111. end
  2112. if fnumb<21 then
  2113. fnumb=fnumb+1
  2114. if pressedf==false then
  2115. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  2116. tellbar.TextTransparency=tellbar.TextTransparency-.05
  2117. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  2118. else
  2119. if fnumb==20 then
  2120. fenframe5.Parent=nil
  2121. print("daigui")
  2122. end
  2123. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  2124. tellbar.TextTransparency=tellbar.TextTransparency+.05
  2125. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  2126. end
  2127. end
  2128. if hbwld.Parent==nil then
  2129. hitbox2.Name="Hitbox"
  2130. else
  2131. hitbox2.Name="Hitbox2"
  2132. end
  2133. hitbox2.Parent=hitbox.Parent
  2134. hitbox2.Size=hitbox.Size
  2135. hitbox2.CFrame=hitboxCF
  2136. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2137. if Stagger.Value==true and staggeranim==false then
  2138. coroutine.resume(coroutine.create(function()
  2139. staggeranim=true
  2140. while attack==true do
  2141. swait()
  2142. end
  2143. StaggerAnim()
  2144. StaggerHit.Value=false
  2145. Stagger.Value=false
  2146. staggeranim=false
  2147. end))
  2148. end
  2149. if StaggerHit.Value==true and staggeranim==false then
  2150. coroutine.resume(coroutine.create(function()
  2151. staggeranim=true
  2152. while attack==true do
  2153. swait()
  2154. end
  2155. StaggerHitt()
  2156. StaggerHit.Value=false
  2157. Stagger.Value=false
  2158. staggeranim=false
  2159. end))
  2160. end
  2161. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  2162. Humanoid.WalkSpeed=0
  2163. else
  2164. Humanoid.WalkSpeed=16*Mvmt.Value
  2165. end
  2166. if Stun.Value>=StunT.Value and stunanim==false then
  2167. coroutine.resume(coroutine.create(function()
  2168. stunanim=true
  2169. while attack==true do
  2170. swait()
  2171. end
  2172. StunAnim()
  2173. Stun.Value=0
  2174. stunanim=false
  2175. end))
  2176. end
  2177. local stunnum2=20
  2178. if stunnum>=stunnum2 then
  2179. if Stun.Value>0 then
  2180. Stun.Value=Stun.Value-1
  2181. end
  2182. stunnum=0
  2183. end
  2184. stunnum=stunnum+1
  2185. if donum>=.5 then
  2186. handidle=true
  2187. elseif donum<=0 then
  2188. handidle=false
  2189. end
  2190. if handidle==false then
  2191. donum=donum+0.006
  2192. else
  2193. donum=donum-0.006
  2194. end
  2195. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2196. local velderp=RootPart.Velocity.y
  2197. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2198. if equipped==true then
  2199. if attack==false then
  2200. idle=idle+1
  2201. else
  2202. idle=0
  2203. end
  2204. if idle>=500 then
  2205. if attack==false then
  2206. --Sheath()
  2207. end
  2208. end
  2209. if Anim=="Walk" then
  2210. if walkforw==true then
  2211. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2212. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2213. else
  2214. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2215. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2216. end
  2217. else
  2218. RH.C1=clerp(RH.C1,RHC1,.2)
  2219. LH.C1=clerp(LH.C1,LHC1,.2)
  2220. end
  2221. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2222. Anim="Jump"
  2223. if attack==false then
  2224. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.5)
  2225. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  2226. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2227. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.3)
  2228. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.2),.2)
  2229. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.2),.2)
  2231. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2232. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2233. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2234. end
  2235. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2236. Anim="Fall"
  2237. if attack==false then
  2238. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  2239. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2240. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  2241. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.1,0,1),.2)
  2242. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2243. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-1),.2)
  2244. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2245. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2246. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2247. end
  2248. elseif torvel<1 and hitfloor~=nil then
  2249. Anim="Idle"
  2250. if attack==false then
  2251. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.5)
  2252. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(0,0,0),.15)
  2253. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.1),.15)
  2254. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.15-(donum/4),-.15,.2-(donum/4)),.15)
  2255. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2256. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2+(donum/4),.25,-.2+(donum/4)),.15)
  2257. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  2258. RH.C0=clerp(RH.C0,cf(1,-1,-.15)*euler(0,1.57,0)*euler(-.05,-.1,.15),.15)
  2259. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,.2),.15)
  2260. end
  2261. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  2262. Anim="Walk"
  2263. walk=walk+1
  2264. if walk>=15-(5*Mvmt.Value) then
  2265. walk=0
  2266. if walkforw==true then
  2267. walkforw=false
  2268. elseif walkforw==false then
  2269. walkforw=true
  2270. end
  2271. end
  2272. if attack==false then
  2273. handlewld.C0=clerp(handlewld.C0,euler(1.57,0,0)*cf(0,1,0),.5)
  2274. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.3)
  2275. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  2276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.2),.3)
  2277. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.3),.3)
  2279. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2280. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  2281. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  2282. end
  2283. elseif torvel>=30 and hitfloor~=nil then
  2284. Anim="Run"
  2285. if attack==false then
  2286. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.2),.4)
  2287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.2),.4)
  2288. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.2),.4)
  2289. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2290. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.4),.4)
  2291. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2292. RH.C0=clerp(RH.C0,RHC0*cf(1,1,.2)*euler(0,-.2,-.5),.4)
  2293. LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.2,0,-.5),.4)
  2294. end
  2295. end
  2296. end
  2297. if #Effects>0 then
  2298. --table.insert(Effects,{prt,"Block1",delay})
  2299. for e=1,#Effects do
  2300. if Effects[e]~=nil then
  2301. --for j=1,#Effects[e] do
  2302. local Thing=Effects[e]
  2303. if Thing~=nil then
  2304. local Part=Thing[1]
  2305. local Mode=Thing[2]
  2306. local Delay=Thing[3]
  2307. local IncX=Thing[4]
  2308. local IncY=Thing[5]
  2309. local IncZ=Thing[6]
  2310. if Thing[2]=="CylinderClang" then
  2311. if Thing[3]<=1 then
  2312. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2313. Thing[7]=Thing[1].CFrame
  2314. effect("New Yeller",0,Thing[8],Thing[7])
  2315. Thing[8]=Thing[7]
  2316. Thing[3]=Thing[3]+Thing[4]
  2317. else
  2318. Part.Parent=nil
  2319. table.remove(Effects,e)
  2320. end
  2321. --[[Mesh=Thing[7]
  2322. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2323. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  2324. end
  2325. if Thing[2]=="showDamage" then
  2326. if Thing[6]<Thing[5] then
  2327. Thing[6]=Thing[6]+1
  2328. elseif Thing[6]<Thing[7] then
  2329. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2330. Thing[6]=Thing[6]+1
  2331. elseif Thing[6]<Thing[8] then
  2332. Thing[6]=Thing[6]+1
  2333. elseif Thing[6]<Thing[9] then
  2334. Thing[6]=Thing[6]+1
  2335. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2336. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2337. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2338. else
  2339. Thing[1].Parent=nil
  2340. table.remove(Effects,e)
  2341. end
  2342. end
  2343. if Thing[2]=="Wall" then
  2344. if Thing[6]<=900 and Thing[1].Parent~=nil then
  2345. passive2.Value=0
  2346. StunT.Value=100
  2347. Thing[6]=Thing[6]+1
  2348. for i=1,#walls do
  2349. if (RootPart.Position-Thing[5].Position).magnitude<20 then
  2350. passive2.Value=passive2.Value-.15
  2351. StunT.Value=StunT.Value+10
  2352. end
  2353. end
  2354. else
  2355. for i=1,12 do
  2356. MagicCloud(BrickColor.new("White"),Thing[5].CFrame*cf(math.random(-750,750)/100,math.random(-500,500)/100,math.random(-350,350)/100)*euler(math.rad(math.random(-180,180)),math.rad(math.random(-60,60)),math.rad(math.random(-180,180))),math.random(5,7),math.random(7,9),math.random(7,9),.1,.1,.1,.05)
  2357. end
  2358. StunT.Value=StunT.Value-10
  2359. passive2.Value=passive2.Value+.15
  2360. print("officialend")
  2361. Thing[1].Parent=nil
  2362. if Thing[5].Parent~=nil then
  2363. Thing[5].Parent.Parent=nil
  2364. end
  2365. table.remove(Effects,e)
  2366. for i=1,#walls do
  2367. if walls[i]==Thing[1] then
  2368. table.remove(walls,i)
  2369. end
  2370. end
  2371. end
  2372. end
  2373. if Thing[2]=="BloodBind" then
  2374. --table.insert(Effects,{BoundTarget,"BloodBind",0,BoundTarget.Torso,cf(0,0,0)})
  2375. if Thing[4].Parent==nil or Thing[4]==nil or Thing[4].Parent.Parent==nil then
  2376. table.remove(Effects,e)
  2377. BoundTarget=nil
  2378. move2="(X)\
  2379. Blood Bind"
  2380. else
  2381. Thing[5]=Thing[5]*euler(0,.2,0)
  2382. if Thing[3]>=5 then
  2383. Thing[3]=0
  2384. for i=1.57,6.28,1.57 do
  2385. MagicBlock(BrickColor.new(NewCol),cf(Thing[4].Position)*Thing[5]*euler(0,i,0)*cf(0,0,5),1,1,1,1,1,1,.1,1)
  2386. end
  2387. end
  2388. Thing[3]=Thing[3]+1
  2389. if cooldowns[2]>cooldownmax/2 then
  2390. table.remove(Effects,e)
  2391. cooldownsadd[2]=.2
  2392. BoundTarget=nil
  2393. move2="(X)\
  2394. Blood Bind"
  2395. end
  2396. end
  2397. end
  2398. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Wall" and Thing[2]~="BloodBind" then
  2399. if Thing[1].Transparency<=1 then
  2400. if Thing[2]=="Block1" then
  2401. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2402. Mesh=Thing[7]
  2403. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2404. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2405. elseif Thing[2]=="Ice" then
  2406. --prt,"Ice",delay,msh,1,.2
  2407. if Thing[6]<=Thing[5] then
  2408. Thing[6]=Thing[6]+.3
  2409. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)
  2410. else
  2411. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2412. end
  2413. elseif Thing[2]=="Shatter" then
  2414. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2415. Thing[4]=Thing[4]*cf(0,Thing[7],0)
  2416. Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
  2417. --Thing[1].CFrame=Thing[1].CFrame
  2418. Thing[6]=Thing[6]+Thing[5]
  2419. elseif Thing[2]=="Block2" then
  2420. Thing[1].CFrame=Thing[1].CFrame
  2421. Mesh=Thing[7]
  2422. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2423. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2424. elseif Thing[2]=="Cylinder" then
  2425. Mesh=Thing[7]
  2426. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2427. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2428. elseif Thing[2]=="Blood" then
  2429. Mesh=Thing[7]
  2430. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  2431. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2432. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2433. elseif Thing[2]=="Elec" then
  2434. Mesh=Thing[7]
  2435. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2436. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2437. elseif Thing[2]=="Disappear" then
  2438. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2439. end
  2440. else
  2441. Part.Parent=nil
  2442. table.remove(Effects,e)
  2443. end
  2444. end
  2445. end
  2446. --end
  2447. end
  2448. end
  2449. end
  2450. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  2451. fenbarmana4.Text="Mana("..mana.Value..")"
  2452. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  2453. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  2454. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  2455. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  2456. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  2457. fenbarmove2.Text=move2
  2458. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  2459. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  2460. for _,c in pairs(Decrease:children()) do
  2461. if c:findFirstChild("Duration")~=nil then
  2462. c.Duration.Value=c.Duration.Value-1
  2463. if c.Duration.Value<=0 then
  2464. c.Parent=nil
  2465. end
  2466. end
  2467. if c.Name=="DecreaseAtk" then
  2468. decreaseatk=decreaseatk+c.Value
  2469. elseif c.Name=="DecreaseDef" then
  2470. decreasedef=decreasedef+c.Value
  2471. elseif c.Name=="DecreaseMvmt" then
  2472. decreasemvmt=decreasemvmt+c.Value
  2473. end
  2474. end
  2475. Atk.Value=1-decreaseatk
  2476. if Atk.Value<=0 then
  2477. Atk.Value=0
  2478. end
  2479. Def.Value=1-decreasedef
  2480. if Def.Value<=0 then
  2481. Def.Value=0.01
  2482. end
  2483. Mvmt.Value=1-decreasemvmt
  2484. if Mvmt.Value<=0 then
  2485. Mvmt.Value=0
  2486. end
  2487. decreaseatk=0
  2488. decreasedef=0
  2489. decreasemvmt=0
  2490. AtkVal=Atk.Value*100
  2491. AtkVal=math.floor(AtkVal)
  2492. AtkVal=AtkVal/100
  2493. fenbardamage.Text="Damage\
  2494. ("..(AtkVal)..")"
  2495. DefVal=Def.Value*100
  2496. DefVal=math.floor(DefVal)
  2497. DefVal=DefVal/100
  2498. fenbardef.Text="Defense\
  2499. ("..(DefVal)..")"
  2500. MvmtVal=Mvmt.Value*100
  2501. MvmtVal=math.floor(MvmtVal)
  2502. MvmtVal=MvmtVal/100
  2503. if Rooted.Value==true then MvmtVal=0 end
  2504. fenbarmove.Text="Walkspeed\
  2505. ("..(MvmtVal)..")"
  2506. if Stun.Value>=StunT.Value then
  2507. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  2508. else
  2509. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  2510. end
  2511. fenbarstun3.Text="Stun("..Stun.Value..")"
  2512. if mana.Value>=100 then
  2513. mana.Value=100
  2514. else
  2515. if mananum<=9 then
  2516. mananum=mananum+1
  2517. elseif mananum>=8 then
  2518. mananum=0
  2519. mana.Value=mana.Value+1
  2520. end
  2521. end
  2522. --[[if cooldown1>=cooldownmax then
  2523. cooldown1=cooldownmax
  2524. else
  2525. cooldown1=cooldown1+cooldownadd1
  2526. end]]
  2527. for i=1,#cooldowns do
  2528. if cooldowns[i]>=cooldownmax then
  2529. cooldowns[i]=cooldownmax
  2530. else
  2531. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  2532. end
  2533. end
  2534. end
  2535. end
  2536.  
  2537. --[[
  2538. Copyrighted (C) Fenrier 2015
  2539. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement