Advertisement
memberhero

old omega

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