Advertisement
memberhero

Strife Class Fix 1

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