memberhero

Virtue Test 1

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