memberhero

Uloe Script

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