Advertisement
Dark_EccentricYT

Untitled

May 11th, 2017
1,758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 177.93 KB | None | 0 0
  1. --Fenrier
  2. --[[repeat
  3. wait()
  4. until script.Parent:findFirstChild("freeze")--]]
  5. Player = game:GetService("Players").LocalPlayer
  6. Character = Player.Character
  7. PlayerGui = Player.PlayerGui
  8. Backpack = Player.Backpack
  9. Torso = Character.Torso
  10. Head = Character.Head
  11. Humanoid = Character.Humanoid
  12. LeftArm = Character["Left Arm"]
  13. LeftLeg = Character["Left Leg"]
  14. RightArm = Character["Right Arm"]
  15. RightLeg = Character["Right Leg"]
  16. LS = Torso["Left Shoulder"]
  17. LH = Torso["Left Hip"]
  18. RS = Torso["Right Shoulder"]
  19. RH = Torso["Right Hip"]
  20. Neck = Torso.Neck
  21. it = Instance.new
  22. vt = Vector3.new
  23. cf = CFrame.new
  24. euler = CFrame.fromEulerAnglesXYZ
  25. angles = CFrame.Angles
  26. mr = math.rad
  27. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  28. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  29. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  30. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  33. RootPart = Character.HumanoidRootPart
  34. RootJoint = RootPart.RootJoint
  35. RootCF = euler(-1.57, 0, 3.14)
  36. attack = false
  37. attackdebounce = false
  38. MMouse = Player:GetMouse()
  39. combo = 0
  40. local hitfloor, posfloor = nil, nil
  41. local idle = 0
  42. local Anim = "Idle"
  43. local Effects = {}
  44. local Weapon = {}
  45. local Welds = {}
  46. local decreaseatk = 0
  47. local decreasedef = 0
  48. local decreasemvmt = 0
  49. local manainc = 12
  50. local holde = true
  51. local mode = "Gloves"
  52. local cmode = "Shotgun"
  53. local larmmove = true
  54. local rarmmove = true
  55. local doing3 = false
  56. local spill = false
  57. local mugdo = false
  58. --local freezeS = script.Parent.freeze
  59. local freeze = false
  60. local isjugg = false
  61. local move1 = "(Z)\nSnowball"
  62. local move2 = "(X)\nSnow Bomb"
  63. local move3 = "(C)\nWarmth"
  64. local move4 = "(V)\nTundra"
  65. local cooldowns = {}
  66. local cooldown1 = 0
  67. table.insert(cooldowns, cooldown1)
  68. local cooldown2 = 0
  69. table.insert(cooldowns, cooldown2)
  70. local cooldown3 = 0
  71. table.insert(cooldowns, cooldown3)
  72. local cooldown4 = 0
  73. table.insert(cooldowns, cooldown4)
  74. local cooldownsadd = {}
  75. local cooldownadd1 = 0.5
  76. table.insert(cooldownsadd, cooldownadd1)
  77. local cooldownadd2 = 0.34
  78. table.insert(cooldownsadd, cooldownadd2)
  79. local cooldownadd3 = 0.23
  80. table.insert(cooldownsadd, cooldownadd3)
  81. local cooldownadd4 = 0.14
  82. table.insert(cooldownsadd, cooldownadd4)
  83. local cooldownmax = 100
  84. player = nil
  85. RSH = nil
  86. RW = Instance.new("Motor")
  87. LW = Instance.new("Motor")
  88. RW.Name = "Right Shoulder"
  89. LW.Name = "Left Shoulder"
  90. LH = Torso["Left Hip"]
  91. RH = Torso["Right Hip"]
  92. TorsoColor = Torso.BrickColor
  93. NewCol = BrickColor.new("Deep blue").Color
  94. NewCol2 = BrickColor.new("Pastel light blue").Color
  95. NewCol3 = BrickColor.new("Institutional white").Color
  96. NewCol4 = BrickColor.new("Deep blue").Color
  97. NewCol5 = BrickColor.new("Electric blue").Color
  98. NewCol6 = BrickColor.new("Bright blue").Color
  99. NewCol7 = BrickColor.new("Pastel blue").Color
  100. NewColraa = BrickColor.new("Deep blue").Color
  101. if Player:findFirstChild("Color1") ~= nil then
  102. NewColraa = Player.Color1.Value
  103. end
  104. print(BrickColor.new(NewCol2))
  105. local mdec = Instance.new("NumberValue", Decrease)
  106. mdec.Name = "DecreaseDef"
  107. mdec.Value = 0.4
  108. local mdec2 = Instance.new("NumberValue", Decrease)
  109. mdec2.Name = "DecreaseMvmt"
  110. mdec2.Value = 0.1
  111. if Character:findFirstChild("Effects", true) ~= nil then
  112. Character:findFirstChild("Effects", true).Parent = nil
  113. end
  114. local effects = it("Model", Character)
  115. effects.Name = "Effects"
  116. gairo = Instance.new("BodyGyro")
  117. gairo.Parent = nil
  118. gairo.maxTorque = Vector3.new(400000, 400000, 400000)
  119. gairo.P = 100000
  120. local Animate = Humanoid.Animator
  121. local canjump = true
  122. removeControl = function()
  123. canjump = false
  124. end
  125.  
  126. resumeControl = function()
  127. canjump = true
  128. end
  129.  
  130. Player.Character.Humanoid.Changed:connect(function()
  131. if canjump == false then
  132. Player.Character.Humanoid.Jump = false
  133. end
  134. end
  135. )
  136. ArtificialHB = Instance.new("BindableEvent", script)
  137. ArtificialHB.Name = "Heartbeat"
  138.  
  139. script:WaitForChild("Heartbeat")
  140.  
  141. frame = 1 / 30
  142. tf = 0
  143. allowframeloss = true
  144. tossremainder = false
  145. lastframe = tick()
  146. script.Heartbeat:Fire()
  147.  
  148. game:GetService("RunService").Heartbeat:connect(function(s, p)
  149. tf = tf + s
  150. if tf >= frame then
  151. if allowframeloss then
  152. script.Heartbeat:Fire()
  153. lastframe = tick()
  154. else
  155. for i = 1, math.floor(tf / frame) do
  156. script.Heartbeat:Fire()
  157. end
  158. lastframe = tick()
  159. end
  160. if tossremainder then
  161. tf = 0
  162. else
  163. tf = tf - frame * math.floor(tf / frame)
  164. end
  165. end
  166. end)
  167.  
  168. function swait(num)
  169. if num == 0 or num == nil then
  170. ArtificialHB.Event:wait()
  171. else
  172. for i = 0, num do
  173. ArtificialHB.Event:wait()
  174. end
  175. end
  176. end
  177. if Character:findFirstChild("Snow Gloves", true) ~= nil then
  178. Character:findFirstChild("Snow Gloves", true).Parent = nil
  179. end
  180. if Character:findFirstChild("Snow Cannon", true) ~= nil then
  181. Character:findFirstChild("Snow Cannon", true).Parent = nil
  182. end
  183. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  184. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  185. end
  186. if Character:findFirstChild("Stats", true) ~= nil then
  187. Character:findFirstChild("Stats", true).Parent = nil
  188. end
  189. local Stats = Instance.new("BoolValue")
  190. Stats.Name = "Stats"
  191. Stats.Parent = Character
  192. local Atk = Instance.new("NumberValue")
  193. Atk.Name = "Damage"
  194. Atk.Parent = Stats
  195. Atk.Value = 1
  196. local Def = Instance.new("NumberValue")
  197. Def.Name = "Defense"
  198. Def.Parent = Stats
  199. Def.Value = 1
  200. local Mvmt = Instance.new("NumberValue")
  201. Mvmt.Name = "Movement"
  202. Mvmt.Parent = Stats
  203. Mvmt.Value = 1
  204. local Block = Instance.new("BoolValue")
  205. Block.Name = "Block"
  206. Block.Parent = Stats
  207. Block.Value = false
  208. local Stun = Instance.new("NumberValue")
  209. Stun.Name = "Stun"
  210. Stun.Parent = Stats
  211. Stun.Value = 0
  212. local StunT = Instance.new("NumberValue")
  213. StunT.Name = "StunThreshold"
  214. StunT.Parent = Stats
  215. StunT.Value = 100
  216. local Rooted = Instance.new("BoolValue")
  217. Rooted.Name = "Rooted"
  218. Rooted.Parent = Stats
  219. Rooted.Value = false
  220. local Stunned = Instance.new("BoolValue")
  221. Stunned.Name = "Stunned"
  222. Stunned.Parent = Stats
  223. Stunned.Value = false
  224. local Stagger = Instance.new("BoolValue")
  225. Stagger.Name = "Stagger"
  226. Stagger.Parent = Stats
  227. Stagger.Value = false
  228. local StaggerHit = Instance.new("BoolValue")
  229. StaggerHit.Name = "StaggerHit"
  230. StaggerHit.Parent = Stats
  231. StaggerHit.Value = false
  232. local RecentEnemy = Instance.new("ObjectValue")
  233. RecentEnemy.Name = "RecentEnemy"
  234. RecentEnemy.Parent = Stats
  235. RecentEnemy.Value = nil
  236. local Decrease = Instance.new("BoolValue")
  237. Decrease.Name = "Decrease"
  238. Decrease.Parent = Stats
  239. Decrease.Value = false
  240. local mana = Instance.new("NumberValue")
  241. mana.Name = "Mana"
  242. mana.Parent = Stats
  243. mana.Value = 0
  244. local passive = Instance.new("NumberValue", nil)
  245. passive.Name = "DecreaseMvmt"
  246. passive.Value = 0.4
  247. NoOutline = function(Part)
  248. Part.TopSurface = 10
  249. end
  250.  
  251. local part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  252. fp = it("Part")
  253. fp.formFactor = formfactor
  254. fp.Parent = parent
  255. fp.Reflectance = reflectance
  256. fp.Transparency = transparency
  257. fp.CanCollide = false
  258. fp.Locked = true
  259. fp.BrickColor = brickcolor
  260. fp.Name = name
  261. fp.Size = size
  262. fp.Position = Torso.Position
  263. NoOutline(fp)
  264. fp.Material = "SmoothPlastic"
  265. fp:BreakJoints()
  266. return fp
  267. end
  268.  
  269. local mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  270. mesh = it(Mesh)
  271. mesh.Parent = part
  272. if Mesh == "SpecialMesh" then
  273. mesh.MeshType = meshtype
  274. if meshid ~= "nil" then
  275. if meshid == "rbxasset://fonts/torso.mesh" then
  276. mesh.MeshId = meshid
  277. else
  278. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  279. end
  280. end
  281. end
  282. mesh.Offset = offset
  283. mesh.Scale = scale
  284. return mesh
  285. end
  286.  
  287. local weld = function(parent, part0, part1, c0)
  288. weld = it("Motor")
  289. weld.Parent = parent
  290. weld.Part0 = part0
  291. weld.Part1 = part1
  292. weld.C0 = c0
  293. return weld
  294. end
  295.  
  296. local gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  297. gui = it(GuiType)
  298. gui.Parent = parent
  299. gui.Text = text
  300. gui.BackgroundTransparency = backtrans
  301. gui.BackgroundColor3 = backcol
  302. gui.SizeConstraint = "RelativeXY"
  303. gui.TextXAlignment = "Center"
  304. gui.TextYAlignment = "Center"
  305. gui.Position = pos
  306. gui.Size = size
  307. gui.Font = "SourceSans"
  308. gui.FontSize = "Size14"
  309. gui.TextWrapped = false
  310. gui.TextStrokeTransparency = 0
  311. gui.TextColor = BrickColor.new("White")
  312. return gui
  313. end
  314.  
  315. local Color1 = Torso.BrickColor
  316. local fengui = it("GuiMain")
  317. fengui.Parent = Player.PlayerGui
  318. fengui.Name = "WeaponGUI"
  319. local fenframe = it("Frame")
  320. fenframe.Parent = fengui
  321. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  322. fenframe.BackgroundTransparency = 1
  323. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  324. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  325. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  326. local fenframe2 = it("Frame")
  327. fenframe2.Parent = fengui
  328. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  329. fenframe2.BackgroundTransparency = 1
  330. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  331. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  332. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  333. local fenframe3 = it("Frame")
  334. fenframe3.Parent = fengui
  335. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  336. fenframe3.BackgroundTransparency = 1
  337. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  338. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  339. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  340. local fenframe4 = it("Frame")
  341. fenframe4.Parent = fengui
  342. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  343. fenframe4.BackgroundTransparency = 1
  344. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  345. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  346. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  347. local pressedf = false
  348. local fenframe5 = it("Frame")
  349. fenframe5.Parent = fengui
  350. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  351. fenframe5.BackgroundTransparency = 1
  352. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  353. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  354. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  355. fenframe5.ZIndex = 2
  356. tellbar = gui("TextLabel", fenframe5, "Press F to equip", 1, Color3.new(0, 0, 0), UDim2.new(0.35, 0, 0.3, 0), UDim2.new(0.3, 0, 0.3, 0))
  357. tellbar.Font = "Arial"
  358. tellbar.TextScaled = true
  359. tellbar.TextTransparency = 1
  360. tellbar.TextStrokeTransparency = 1
  361. tellbar.ZIndex = 2
  362. local fnumb = 0
  363. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  364. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  365. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  366. 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))
  367. 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))
  368. 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))
  369. 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))
  370. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  371. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  372. 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))
  373. 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))
  374. 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))
  375. 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))
  376. fenbarmove1.ZIndex = 2
  377. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  378. 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))
  379. fenbarmove2.ZIndex = 2
  380. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  381. 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))
  382. fenbarmove3.ZIndex = 2
  383. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  384. 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))
  385. fenbarmove4.ZIndex = 2
  386. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  387. local modelzorz = Instance.new("Model")
  388. modelzorz.Parent = Character
  389. modelzorz.Name = "Snow Gloves"
  390. local modelzorz2 = Instance.new("Model")
  391. modelzorz2.Parent = Character
  392. modelzorz2.Name = "Snow Cannon"
  393. tehprt = RightArm
  394. eul = 0
  395. for i = 1, 2 do
  396. if i == 2 then
  397. tehprt = LeftArm
  398. end
  399. if i == 2 then
  400. eul = mr(180)
  401. end
  402. local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  403. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part01", vt())
  404. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part02", vt())
  405. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol3), "Part03", vt())
  406. msh1 = mesh("SpecialMesh", prt1, "FileMesh", "rbxasset://fonts/torso.mesh", vt(0, 0, 0), vt(0.55, 0.55, 0.15))
  407. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "rbxasset://fonts/torso.mesh", vt(0, 0, 0), vt(0.525, 0.525, 0.75))
  408. msh3 = mesh("SpecialMesh", prt3, "FileMesh", "19251107", vt(0, 0, 0), vt(0.2, 0.35, 0.2))
  409. local handlewld = weld(handle, handle, tehprt, euler(0, eul, 0) * cf(0, 0, 0))
  410. local wld1 = weld(prt1, prt1, handle, euler(mr(90), 0, 0) * cf(0, 0.35, 0))
  411. local wld2 = weld(prt1, prt2, prt1, euler(0, 0, 0) * cf(0, 0, 0.325))
  412. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, mr(90)) * cf(-0.525, 0, 0.35))
  413. for _,c in pairs(modelzorz:children()) do
  414. table.insert(Weapon, c)
  415. end
  416. for _,c in pairs(prt1:children()) do
  417. if c.className == "Motor" then
  418. table.insert(Welds, c)
  419. end
  420. end
  421. end
  422. chandle = part(3, modelzorz2, 0, 1, BrickColor.new(NewCol), "cannonHandle", vt())
  423. cprt1 = part(3, modelzorz2, 0, 0.5, BrickColor.new(NewCol4), "cannonPart01", vt())
  424. cprt2 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart02", vt())
  425. cprt3 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart03", vt())
  426. cprt4 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart04", vt())
  427. cprt5 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart05", vt())
  428. cprt6 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart06", vt())
  429. cprt7 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart07", vt())
  430. cprt8 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart08", vt())
  431. cprt9 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart09", vt())
  432. cprt10 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart10", vt())
  433. cprt11 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart11", vt())
  434. cprt12 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart12", vt())
  435. cprt13 = part(3, modelzorz2, 0.1, 0, BrickColor.new("Black"), "cannonPart13", vt())
  436. cprt14 = part(3, modelzorz2, 0.1, 0, BrickColor.new("Black"), "cannonPart14", vt())
  437. cprt15 = part(3, modelzorz2, 0.1, 0, BrickColor.new("Black"), "cannonPart15", vt())
  438. cprt16 = part(3, modelzorz2, 0.1, 0, BrickColor.new("Black"), "cannonPart16", vt())
  439. cprt17 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart17", vt())
  440. cprt18 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart18", vt())
  441. cprt19 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart19", vt())
  442. cprt20 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart20", vt())
  443. cprt21 = part(3, modelzorz2, 0.6, 0, BrickColor.new(NewCol2), "cannonPart21", vt())
  444. cprt22 = part(3, modelzorz2, 0.6, 0, BrickColor.new(NewCol2), "cannonPart22", vt())
  445. cprt23 = part(3, modelzorz2, 0.6, 0, BrickColor.new(NewCol2), "cannonPart23", vt())
  446. cprt24 = part(3, modelzorz2, 0, 0, BrickColor.new("Smoky grey"), "cannonPart24", vt())
  447. cprt24.Material = "Metal"
  448. cprt25 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart25", vt())
  449. cprt26 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart26", vt())
  450. cprt27 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart27", vt())
  451. cprt28 = part(3, modelzorz2, 0, 0, BrickColor.new("Smoky grey"), "cannonPart28", vt())
  452. cprt28.Material = "Metal"
  453. cprt29 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart29", vt())
  454. cprt30 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart30", vt())
  455. cprt31 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart31", vt())
  456. cprt32 = part(3, modelzorz2, 0, 0, BrickColor.new("Ghost grey"), "cannonPart32", vt())
  457. cprt33 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart33", vt())
  458. cprt33a = part(3, modelzorz2, 0, 1, BrickColor.new(NewCol4), "cannonPart33a", vt())
  459. cprt34 = part(3, modelzorz2, 0, 0, BrickColor.new("Medium stone grey"), "cannonPart34", vt())
  460. cprt34.Material = "Metal"
  461. cprt35 = part(3, modelzorz2, 0, 0, BrickColor.new("Medium stone grey"), "cannonPart35", vt())
  462. cprt35.Material = "Metal"
  463. cprt36 = part(3, modelzorz2, 0, 0, BrickColor.new("Medium stone grey"), "cannonPart36", vt())
  464. cprt36.Material = "Metal"
  465. cprt37 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol5), "cannonPart37", vt())
  466. cprt37.Material = "Neon"
  467. cprt38 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol5), "cannonPart38", vt())
  468. cprt38.Material = "Neon"
  469. cprt39 = part(3, modelzorz2, 0.2, 0, BrickColor.new("Black"), "cannonPart39", vt())
  470. cprt39.Material = "Metal"
  471. cprt40 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart40", vt())
  472. cprt41 = part(3, modelzorz2, 0, 0, BrickColor.new("Fossil"), "cannonPart41", vt())
  473. cprt42 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol4), "cannonPart42", vt())
  474. cprt43 = part(3, modelzorz2, 0.2, 0, BrickColor.new(NewCol3), "cannonPart43", vt())
  475. cprt44 = part(3, modelzorz2, 0.2, 0, BrickColor.new(NewCol3), "cannonPart44", vt())
  476. cprt45 = part(3, modelzorz2, 0, 0, BrickColor.new("Medium stone grey"), "cannonPart45", vt())
  477. cprt46 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol6), "cannonPart46", vt())
  478. cprt46.Material = "Neon"
  479. cprt47 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol2), "cannonPart47", vt())
  480. cprt48 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol2), "cannonPart48", vt())
  481. cprt49 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol2), "cannonPart49", vt())
  482. cprt50 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol2), "cannonPart50", vt())
  483. cprt51 = part(3, modelzorz2, 0.4, 0, BrickColor.new("Medium stone grey"), "cannonPart51", vt())
  484. cprt51.Material = "Metal"
  485. cprt52 = part(3, modelzorz2, 0.4, 0, BrickColor.new("Medium stone grey"), "cannonPart52", vt())
  486. cprt52.Material = "Metal"
  487. cprt53 = part(3, modelzorz2, 0.4, 0, BrickColor.new("Medium stone grey"), "cannonPart53", vt())
  488. cprt53.Material = "Metal"
  489. cprt54 = part(3, modelzorz2, 0.4, 0.7, BrickColor.new(NewCol7), "cannonPart54", vt())
  490. cprt55 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol6), "cannonPart55", vt())
  491. cprt55.Material = "Neon"
  492. cprt56 = part(3, modelzorz2, 0, 0, BrickColor.new("Medium stone grey"), "cannonPart56", vt())
  493. cprt56.Material = "Metal"
  494. cprt57 = part(3, modelzorz2, 0, 0, BrickColor.new("Really black"), "cannonPart57", vt())
  495. cmsh1 = mesh("BlockMesh", cprt1, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  496. cmsh2 = mesh("BlockMesh", cprt2, "", "", vt(0, 0, 0), vt(1, 4, 1))
  497. cmsh3 = mesh("SpecialMesh", cprt3, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  498. cmsh4 = mesh("SpecialMesh", cprt4, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  499. cmsh5 = mesh("BlockMesh", cprt5, "", "", vt(0, 0, 0), vt(1, 4, 1))
  500. cmsh6 = mesh("BlockMesh", cprt6, "", "", vt(0, 0, 0), vt(1, 4, 1))
  501. cmsh7 = mesh("SpecialMesh", cprt7, "Wedge", "nil", vt(0, 0, 0), vt(4, 1.5, 3))
  502. cmsh8 = mesh("BlockMesh", cprt8, "", "", vt(0, 0, 0), vt(1.5, 3, 4))
  503. cmsh9 = mesh("SpecialMesh", cprt9, "Wedge", "nil", vt(0, 0, 0), vt(4, 1.5, 2))
  504. cmsh10 = mesh("SpecialMesh", cprt10, "Wedge", "nil", vt(0, 0, 0), vt(4, 0.75, 2))
  505. cmsh11 = mesh("BlockMesh", cprt11, "", "", vt(0, 0, 0), vt(1.5, 2, 4))
  506. cmsh12 = mesh("BlockMesh", cprt12, "", "", vt(0, 0, 0), vt(0.75, 5, 4))
  507. cmsh13 = mesh("BlockMesh", cprt13, "", "", vt(0, 0, 0), vt(4, 1.25, 1.25))
  508. cmsh14 = mesh("BlockMesh", cprt14, "", "", vt(0, 0, 0), vt(1, 1.5, 1.249))
  509. cmsh15 = mesh("BlockMesh", cprt15, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1.249))
  510. cmsh16 = mesh("SpecialMesh", cprt16, "Torso", "nil", vt(0, 0, 0), vt(1.75, 0.5, 1.25))
  511. cmsh17 = mesh("SpecialMesh", cprt17, "Wedge", "nil", vt(0, 0, 0), vt(4, 1.25, 2))
  512. cmsh18 = mesh("SpecialMesh", cprt18, "Wedge", "nil", vt(0, 0, 0), vt(2, 2.5, 1))
  513. cmsh19 = mesh("SpecialMesh", cprt19, "Wedge", "nil", vt(0, 0, 0), vt(2, 2.5, 1))
  514. cmsh20 = mesh("BlockMesh", cprt20, "", "", vt(0, 0, 0), vt(2, 3, 5))
  515. cmsh21 = mesh("SpecialMesh", cprt21, "Torso", "nil", vt(0, 0, 0), vt(5, 3, 3.5))
  516. cmsh22 = mesh("BlockMesh", cprt22, "", "", vt(0, 0, 0), vt(5.25, 4.75, 3.5))
  517. cmsh23 = mesh("BlockMesh", cprt23, "", "", vt(0, 0, 0), vt(4.25, 2.75, 3.5))
  518. cmsh24 = mesh("BlockMesh", cprt24, "", "", vt(0, 0, 0), vt(1.5, 1.5, 4))
  519. cmsh25 = mesh("SpecialMesh", cprt25, "Torso", "nil", vt(0, 0, 0), vt(2.75, 1.5, 1.75))
  520. cmsh26 = mesh("CylinderMesh", cprt26, "", "", vt(0, 0, 0), vt(0.75, 2, 0.75))
  521. cmsh27 = mesh("SpecialMesh", cprt27, "Head", "nil", vt(0, 0, 0), vt(1, 1, 1))
  522. cmsh28 = mesh("BlockMesh", cprt28, "", "", vt(0, 0, 0), vt(1.5, 1.5, 4))
  523. cmsh29 = mesh("SpecialMesh", cprt29, "Torso", "nil", vt(0, 0, 0), vt(2.75, 1.5, 1.75))
  524. cmsh30 = mesh("CylinderMesh", cprt30, "", "", vt(0, 0, 0), vt(0.75, 2, 0.75))
  525. cmsh31 = mesh("SpecialMesh", cprt31, "Head", "nil", vt(0, 0, 0), vt(1, 1, 1))
  526. cmsh32 = mesh("BlockMesh", cprt32, "", "", vt(0, 0, 0), vt(2, 3.75, 1.751))
  527. cmsh33 = mesh("CylinderMesh", cprt33, "", "", vt(0, 0, 0), vt(0.75, 4, 0.75))
  528. cmsh34 = mesh("CylinderMesh", cprt34, "", "", vt(0, 0, 0), vt(1.25, 2, 1.25))
  529. cmsh35 = mesh("CylinderMesh", cprt35, "", "", vt(0, 0, 0), vt(3.75, 1.25, 3.75))
  530. cmsh36 = mesh("SpecialMesh", cprt36, "FileMesh", "156292370", vt(0, 0, 0), vt(1.1, 1.1, 4))
  531. cmsh37 = mesh("CylinderMesh", cprt37, "", "", vt(0, 0, 0), vt(6, 0.75, 4.75))
  532. cmsh38 = mesh("CylinderMesh", cprt38, "", "", vt(0, 0, 0), vt(2, 1.5, 2))
  533. cmsh39 = mesh("SpecialMesh", cprt39, "Torso", "nil", vt(0, 0, 0), vt(6, 1.5, 2.5))
  534. cmsh40 = mesh("CylinderMesh", cprt40, "", "", vt(0, 0, 0), vt(2.25, 0.5, 2.25))
  535. cmsh41 = mesh("CylinderMesh", cprt41, "", "", vt(0, 0, 0), vt(2.5, 0.5, 2.5))
  536. cmsh42 = mesh("CylinderMesh", cprt42, "", "", vt(0, 0, 0), vt(3, 0.5, 3))
  537. cmsh43 = mesh("CylinderMesh", cprt43, "", "", vt(0, 0, 0), vt(2.5, 5.5, 2.5))
  538. cmsh44 = mesh("SpecialMesh", cprt44, "Sphere", "nil", vt(0, 0, 0), vt(2.5, 2.5, 2.5))
  539. cmsh45 = mesh("SpecialMesh", cprt45, "Sphere", "nil", vt(0, 0, 0), vt(1, 4, 4))
  540. cmsh46 = mesh("SpecialMesh", cprt46, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 2, 2))
  541. cmsh47 = mesh("SpecialMesh", cprt47, "Sphere", "nil", vt(0, 0, 0), vt(5.25, 5.25, 5.25))
  542. cmsh48 = mesh("CylinderMesh", cprt48, "", "", vt(0, 0, 0), vt(5.25, 9, 5.25))
  543. cmsh49 = mesh("BlockMesh", cprt49, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1))
  544. cmsh50 = mesh("BlockMesh", cprt50, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1))
  545. cmsh51 = mesh("CylinderMesh", cprt51, "", "", vt(0, 0, 0), vt(5.25, 6, 5.25))
  546. cmsh52 = mesh("CylinderMesh", cprt52, "", "", vt(0, 0, 0), vt(5.375, 0.25, 5.375))
  547. cmsh53 = mesh("CylinderMesh", cprt53, "", "", vt(0, 0, 0), vt(5.375, 0.25, 5.375))
  548. cmsh54 = mesh("CylinderMesh", cprt54, "", "", vt(0, 0, 0), vt(5.05, 6, 5.05))
  549. cmsh55 = mesh("CylinderMesh", cprt55, "", "", vt(0, 0, 0), vt(5.1, 6, 5.03))
  550. cmsh56 = mesh("CylinderMesh", cprt56, "", "", vt(0, 0, 0), vt(4.5, 0.5, 4.5))
  551. cmsh57 = mesh("CylinderMesh", cprt57, "", "", vt(0, 0, 0), vt(4, 0.51, 4))
  552. chandlewld = weld(chandle, chandle, Torso, euler(0, -mr(90), -mr(45)) * cf(-0.6, -1.8, -0.8))
  553. cwld1 = weld(cprt1, cprt1, chandle, euler(0, 0, 0) * cf(0, 0, 0))
  554. cwld2 = weld(cprt1, cprt2, cprt1, euler(-mr(110), 0, 0) * cf(0, 0, 0))
  555. cwld3 = weld(cprt1, cprt3, cprt1, euler(-mr(20), 0, 0) * cf(0, -0.171, 0.47))
  556. cwld4 = weld(cprt1, cprt4, cprt1, euler(mr(20), mr(180), 0) * cf(0, 0.171, -0.47))
  557. cwld5 = weld(cprt1, cprt5, cprt1, euler(-mr(20), 0, 0) * cf(0, 0.299, 0.641))
  558. cwld6 = weld(cprt1, cprt6, cprt1, euler(-mr(20), 0, 0) * cf(0, 0.641, -0.299))
  559. cwld7 = weld(cprt1, cprt7, cprt1, euler(0, mr(180), 0) * cf(0, 0.633, -0.183))
  560. cwld8 = weld(cprt1, cprt8, cprt1, euler(mr(90), 0, mr(90)) * cf(0, 0.933, -0.183))
  561. cwld9 = weld(cprt1, cprt9, cprt1, euler(0, 0, mr(180)) * cf(0, 0.933, 0.317))
  562. cwld10 = weld(cprt1, cprt10, cprt1, euler(0, 0, mr(180)) * cf(0, 0.708, 0.717))
  563. cwld11 = weld(cprt1, cprt11, cprt1, euler(mr(90), 0, mr(90)) * cf(0, 0.633, 0.317))
  564. cwld12 = weld(cprt1, cprt12, cprt1, euler(mr(90), 0, mr(90)) * cf(0, 0.558, 1.017))
  565. cwld13 = weld(cprt1, cprt13, cprt1, euler(0, 0, mr(90)) * euler(0, 0, 0) * cf(0, 0.258, 1.817))
  566. cwld14 = weld(cprt1, cprt14, cprt1, euler(0, mr(90), 0) * euler(mr(45), 0, 0) * cf(0, -0.11, 1.77))
  567. cwld15 = weld(cprt1, cprt15, cprt1, euler(0, mr(90), 0) * euler(mr(45), 0, 0) * cf(0, 0.358, 1.867))
  568. cwld16 = weld(cprt1, cprt16, cprt1, euler(0, mr(90), 0) * euler(-mr(90), 0, 0) * cf(0, 0.433, 1.642))
  569. cwld17 = weld(cprt1, cprt17, cprt1, euler(0, 0, 0) * cf(0, 0.608, 1.717))
  570. cwld18 = weld(cprt1, cprt18, cprt1, euler(0, -mr(40), mr(90)) * cf(-0.25, 0.626, 2.087))
  571. cwld19 = weld(cprt1, cprt19, cprt1, euler(0, -mr(140), mr(90)) * euler(0, -mr(180), 0) * cf(0.25, 0.626, 2.087))
  572. cwld20 = weld(cprt1, cprt20, cprt1, euler(0, -mr(90), 0) * euler(mr(50), 0, 0) * cf(0, 0.883, 1.78))
  573. cwld21 = weld(cprt1, cprt21, cprt1, euler(-mr(90), 0, mr(90)) * cf(0, 1.158, 0.442))
  574. cwld22 = weld(cprt1, cprt22, cprt1, euler(-mr(90), 0, mr(90)) * cf(0, 1.133, 1.217))
  575. cwld23 = weld(cprt1, cprt23, cprt1, euler(-mr(90), 0, mr(90)) * cf(0, 1.233, 1.817))
  576. cwld24 = weld(cprt1, cprt24, cprt1, euler(0, 0, 0) * cf(-0.45, 1.233, 0.742))
  577. cwld25 = weld(cprt1, cprt25, cprt1, euler(0, 0, mr(90)) * cf(-0.5, 1.233, 0.742))
  578. cwld26 = weld(cprt1, cprt26, cprt1, euler(mr(90), 0, 0) * cf(-0.475, 1.233, 0.292))
  579. cwld27 = weld(cprt1, cprt27, cprt1, euler(0, 0, mr(90)) * cf(-0.475, 1.233, 0.042))
  580. cwld28 = weld(cprt1, cprt28, cprt1, euler(0, 0, 0) * cf(0.45, 1.233, 0.742))
  581. cwld29 = weld(cprt1, cprt29, cprt1, euler(0, 0, -mr(90)) * cf(0.5, 1.233, 0.742))
  582. cwld30 = weld(cprt1, cprt30, cprt1, euler(mr(90), 0, 0) * cf(0.475, 1.233, 0.292))
  583. cwld31 = weld(cprt1, cprt31, cprt1, euler(0, 0, mr(90)) * cf(0.475, 1.233, 0.042))
  584. cwld32 = weld(cprt1, cprt32, cprt1, euler(0, 0, mr(90)) * cf(0, 1.483, 0.742))
  585. cwld33 = weld(cprt1, cprt33, cprt1, euler(0, 0, mr(90)) * cf(0, 1.233, 0.042))
  586. cwld33a = weld(cprt1, cprt33a, cprt33, euler(0, 0, 0) * cf(0, 0, 0))
  587. cwld34 = weld(cprt1, cprt34, cprt33a, euler(0, 0, 0) * cf(0, 0, 0))
  588. cwld35 = weld(cprt1, cprt35, cprt33a, euler(0, 0, 0) * cf(0, 0, 0))
  589. cwld36 = weld(cprt1, cprt36, cprt33a, euler(mr(90), 0, 0) * cf(0, 0, 0))
  590. cwld37 = weld(cprt1, cprt37, cprt33a, euler(0, 0, 0) * cf(0, 0, 0))
  591. cwld38 = weld(cprt1, cprt38, cprt33a, euler(0, 0, 0) * cf(0, 0, 0))
  592. cwld39 = weld(cprt1, cprt39, cprt1, euler(0, mr(90), mr(180)) * cf(0, 1.633, 1.542))
  593. cwld40 = weld(cprt1, cprt40, cprt1, euler(mr(65), 0, 0) * cf(0, 1.811, 2.018))
  594. cwld41 = weld(cprt1, cprt41, cprt1, euler(mr(65), 0, 0) * cf(0, 1.843, 1.95))
  595. cwld42 = weld(cprt1, cprt42, cprt1, euler(mr(65), 0, 0) * cf(0, 1.875, 1.882))
  596. cwld43 = weld(cprt1, cprt43, cprt1, euler(mr(65), 0, 0) * cf(0, 2.118, 1.361))
  597. cwld44 = weld(cprt1, cprt44, cprt1, euler(0, 0, 0) * cf(0, 2.35, 0.862))
  598. cwld45 = weld(cprt1, cprt45, cprt1, euler(0, 0, mr(90)) * cf(0, 0.558, 1.167))
  599. cwld46 = weld(cprt1, cprt46, cprt1, euler(0, 0, mr(90)) * cf(0, 0.558, 1.167))
  600. cwld47 = weld(cprt1, cprt47, cprt1, euler(0, 0, 0) * cf(0, 1.308, 2.092))
  601. cwld48 = weld(cprt1, cprt48, cprt1, euler(mr(90), 0, 0) * cf(0, 1.308, 2.992))
  602. cwld49 = weld(cprt1, cprt49, cprt1, euler(0, mr(90), 0) * cf(0, 0.808, 2.242))
  603. cwld50 = weld(cprt1, cprt50, cprt1, euler(0, mr(90), 0) * cf(0, 0.808, 3.742))
  604. cwld51 = weld(cprt1, cprt51, cprt1, euler(mr(90), 0, 0) * cf(0, 1.283, 2.992))
  605. cwld52 = weld(cprt1, cprt52, cprt1, euler(mr(90), 0, 0) * cf(0, 1.208, 3.592))
  606. cwld53 = weld(cprt1, cprt53, cprt1, euler(mr(90), 0, 0) * cf(0, 1.208, 2.392))
  607. cwld54 = weld(cprt1, cprt54, cprt1, euler(mr(90), 0, 0) * cf(0, 1.183, 2.992))
  608. cwld55 = weld(cprt1, cprt55, cprt1, euler(mr(90), 0, 0) * cf(0, 1.233, 2.992))
  609. cwld56 = weld(cprt1, cprt56, cprt1, euler(mr(90), 0, 0) * cf(0, 1.308, 3.917))
  610. cwld57 = weld(cprt1, cprt57, cprt1, euler(mr(90), 0, 0) * cf(0, 1.308, 3.917))
  611. for i = 45, 360, 45 do
  612. cprt58 = part(3, modelzorz2, 0.4, 0, BrickColor.new(NewCol2), "cannonPart58", vt())
  613. cmsh58 = mesh("BlockMesh", cprt58, "", "", vt(0, 0, 0), vt(0.5, 0.5, 1))
  614. cwld58 = weld(cprt1, cprt58, cprt56, euler(0, mr(90), 0) * euler(mr(45), 0, 0) * cf(0, 0.415, 0.035) * euler(mr(90), 0, 0) * euler(0, -mr(i), 0))
  615. end
  616. for _,c in pairs(modelzorz2:children()) do
  617. table.insert(Weapon, c)
  618. end
  619. for _,c in pairs(cprt1:children()) do
  620. if c.className == "Motor" then
  621. table.insert(Welds, c)
  622. end
  623. end
  624. hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
  625. hitbox.Anchored = false
  626. hitboxCF = cf(0, 0, 0)
  627. hboxpos = Instance.new("BodyPosition", nil)
  628. hboxpos.P = 2000
  629. hboxpos.D = 100
  630. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  631. nr = NumberRange.new
  632. ns = NumberSequence.new
  633. cs = ColorSequence.new
  634. nsk = NumberSequenceKeypoint.new
  635. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  636. fp = it("ParticleEmitter")
  637. fp.Parent = parent
  638. fp.Color = cs(col1, col2)
  639. fp.LightEmission = lightemis
  640. fp.Size = size
  641. fp.Texture = texture
  642. fp.Transparency = transparency
  643. fp.ZOffset = zoffset
  644. fp.Acceleration = accel
  645. fp.Drag = drag
  646. fp.LockedToPart = ltp
  647. fp.VelocityInheritance = velinher
  648. fp.EmissionDirection = emisdir
  649. fp.Enabled = enabled
  650. fp.Lifetime = lifetime
  651. fp.Rate = rate
  652. fp.Rotation = rotation
  653. fp.RotSpeed = rotspeed
  654. fp.Speed = speed
  655. fp.VelocitySpread = velspread
  656. return fp
  657. end
  658.  
  659. sizeseq = ns({nsk(0, 0), nsk(0.027, 0.765), nsk(0.184, 2.24), nsk(1, 4.64)})
  660. transseq = ns({nsk(0, 0.375), nsk(0.4, 1), nsk(1, 1)})
  661. icicleparti1 = particle(nil, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.2, sizeseq, "http://www.roblox.com/asset/?id=329766994", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Bottom", true, nr(7, 10), 15, nr(-360, 360), nr(-30, 30), nr(3), 20)
  662. sizeseq = ns({nsk(0, 0), nsk(0.025, 0.383), nsk(0.192, 2.51), nsk(1, 2.02)})
  663. transseq = ns({nsk(0, 0.8), nsk(0.3, 1), nsk(1, 1)})
  664. icicleparti2 = particle(nil, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.3, sizeseq, "http://www.roblox.com/asset/?id=241594419", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Bottom", true, nr(7, 10), 80, nr(-360, 360), nr(-30, 30), nr(3), 20)
  665. sizeseq = ns({nsk(0, 0.328), nsk(0.075, 3.11), nsk(0.206, 4.97), nsk(1, 10)})
  666. transseq = ns({nsk(0, 0.363), nsk(0.107, 1), nsk(1, 1)})
  667. cannonparti1 = particle(cprt57, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.2, sizeseq, "http://www.roblox.com/asset/?id=329766994", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Top", false, nr(7, 10), 15, nr(-360, 360), nr(-30, 30), nr(5), 10)
  668. sizeseq = ns({nsk(0, 0), nsk(0.023, 3.08), nsk(0.185, 3.72), nsk(1, 10)})
  669. transseq = ns({nsk(0, 0.8), nsk(0.1, 1), nsk(1, 1)})
  670. cannonparti2 = particle(cprt57, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.3, sizeseq, "http://www.roblox.com/asset/?id=241594419", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Top", false, nr(5, 7), 30, nr(-360, 360), nr(-30, 30), nr(15), 5)
  671. sizeseq = ns({nsk(0, 5.63), nsk(0.02, 2.9), nsk(0.277, 3.72), nsk(1, 10)})
  672. transseq = ns({nsk(0, 0), nsk(0.132, 0.944), nsk(0.303, 1), nsk(1, 1)})
  673. freezeparti1 = particle(nil, Color3.new(0.66666666666667, 1, 1), Color3.new(1, 1, 1), 0.3, sizeseq, "http://www.roblox.com/asset/?id=241594419", transseq, 0, vt(0, -10, 0), 0, false, 0, "Top", true, nr(3, 4), 100, nr(-360, 360), nr(-30, 30), nr(15), 80)
  674. sizeseq = ns({nsk(0, 0), nsk(0.06, 10), nsk(1, 10)})
  675. transseq = ns({nsk(0, 0), nsk(0.462, 1), nsk(1, 1)})
  676. freezeparti2 = particle(nil, Color3.new(0.66666666666667, 1, 1), Color3.new(1, 1, 1), 0.3, sizeseq, "http://www.roblox.com/asset/?id=272050333", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", true, nr(1, 2), 10, nr(-360, 360), nr(-30, 30), nr(15), 80)
  677. parti = it("ParticleEmitter")
  678. parti.Color = cs(Color3.new(0.24313725490196, 0.24313725490196, 0.24313725490196), Color3.new(0.54901960784314, 0.54901960784314, 0.54901960784314))
  679. parti.LightEmission = 0.6
  680. parti.Size = ns(0.2)
  681. parti.Texture = "http://www.roblox.com/asset/?id=253188732"
  682. sizeseq = ns({nsk(0, 0.68), nsk(0.15, 0.68), nsk(0.34, 1), nsk(0.51, 1.31), nsk(0.71, 1.81), nsk(0.9, 3.6), nsk(1, 5.4)})
  683. transseq = ns({nsk(0, 0.65), nsk(0.3, 0.65), nsk(0.6, 0.9), nsk(1, 1)})
  684. parti.Transparency = transseq
  685. parti.Size = sizeseq
  686. parti.ZOffset = 0
  687. parti.Acceleration = vt(0, 1, 0)
  688. parti.LockedToPart = false
  689. parti.EmissionDirection = "Top"
  690. parti.Lifetime = nr(2, 2)
  691. parti.Rate = 50
  692. parti.Rotation = nr(0, 0)
  693. parti.RotSpeed = nr(0, 0)
  694. parti.Speed = nr(0.2, 0.2)
  695. parti.VelocitySpread = 20
  696. parti.Parent = nil
  697. parti.Enabled = true
  698. parti2a = parti:Clone()
  699. parti2a.Color = cs(Color3.new(0.37647058823529, 0.1843137254902, 0), Color3.new(0.29411764705882, 0.21176470588235, 0.10196078431373))
  700. parti2a.LightEmission = 0
  701. parti2a.Texture = "http://www.roblox.com/asset/?id=242209918"
  702. sizeseq = ns({nsk(0, 0), nsk(0.04, 0.7), nsk(0.184, 1.5), nsk(0.385, 3), nsk(1, 10)})
  703. transseq = ns({nsk(0, 0), nsk(0.04, 0.5), nsk(0.4, 1), nsk(1, 1)})
  704. parti2a.Transparency = transseq
  705. parti2a.Size = sizeseq
  706. parti2a.ZOffset = 1
  707. parti2a.Acceleration = vt(0, -10, 0)
  708. parti2a.LockedToPart = false
  709. parti2a.EmissionDirection = "Top"
  710. parti2a.Lifetime = nr(3, 3)
  711. parti2a.Rate = 120
  712. parti2a.Rotation = nr(-180, 180)
  713. parti2a.RotSpeed = nr(-180, 180)
  714. parti2a.Speed = nr(7, 12)
  715. parti2a.VelocitySpread = 25
  716. parti2a.Parent = nil
  717. parti2a.Enabled = true
  718. if script.Parent.className ~= "HopperBin" then
  719. Tool = Instance.new("HopperBin")
  720. Tool.Parent = Backpack
  721. Tool.Name = "Snow Gloves"
  722. script.Parent = Tool
  723. end
  724. Bin = script.Parent
  725. if Bin.Name == "Tundrus" then
  726. Bin.Name = "Snow Gloves"
  727. end
  728. bodvel = Instance.new("BodyVelocity")
  729. bg = Instance.new("BodyGyro")
  730. so = function(id, par, vol, pit)
  731. sou = Instance.new("Sound", par or workspace)
  732. sou.Volume = vol
  733. sou.Pitch = pit or 1
  734. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  735. coroutine.resume(coroutine.create(function(Sound)
  736. swait()
  737. Sound:play()
  738. end
  739. ), sou)
  740. game:GetService("Debris"):AddItem(sou, 6)
  741. end
  742.  
  743. function clerp(a,b,t)
  744. qa = {QuaternionFromCFrame(a)}
  745. qb = {QuaternionFromCFrame(b)}
  746. ax, ay, az = a.x, a.y, a.z
  747. bx, by, bz = b.x, b.y, b.z
  748. _t = 1-t
  749. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  750. end
  751.  
  752. function QuaternionFromCFrame(cf)
  753. mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  754. trace = m00 + m11 + m22
  755. if trace > 0 then
  756. s = math.sqrt(1 + trace)
  757. recip = 0.5/s
  758. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  759. else
  760. i = 0
  761. if m11 > m00 then
  762. i = 1
  763. end
  764. if m22 > (i == 0 and m00 or m11) then
  765. i = 2
  766. end
  767. if i == 0 then
  768. s = math.sqrt(m00-m11-m22+1)
  769. recip = 0.5/s
  770. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  771. elseif i == 1 then
  772. s = math.sqrt(m11-m22-m00+1)
  773. recip = 0.5/s
  774. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  775. elseif i == 2 then
  776. s = math.sqrt(m22-m00-m11+1)
  777. recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  778. end
  779. end
  780. end
  781.  
  782. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  783. xs, ys, zs = x + x, y + y, z + z
  784. wx, wy, wz = w*xs, w*ys, w*zs
  785. xx = x*xs
  786. xy = x*ys
  787. xz = x*zs
  788. yy = y*ys
  789. yz = y*zs
  790. zz = z*zs
  791. 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))
  792. end
  793.  
  794. function clerp(a,b,t)
  795. local qa = {QuaternionFromCFrame(a)}
  796. local qb = {QuaternionFromCFrame(b)}
  797. local ax, ay, az = a.x, a.y, a.z
  798. local bx, by, bz = b.x, b.y, b.z
  799. local _t = 1-t
  800. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  801. end
  802.  
  803. function QuaternionFromCFrame(cf)
  804. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  805. local trace = m00 + m11 + m22
  806. if trace > 0 then
  807. local s = math.sqrt(1 + trace)
  808. local recip = 0.5/s
  809. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  810. else
  811. local i = 0
  812. if m11 > m00 then
  813. i = 1
  814. end
  815. if m22 > (i == 0 and m00 or m11) then
  816. i = 2
  817. end
  818. if i == 0 then
  819. local s = math.sqrt(m00-m11-m22+1)
  820. local recip = 0.5/s
  821. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  822. elseif i == 1 then
  823. local s = math.sqrt(m11-m22-m00+1)
  824. local recip = 0.5/s
  825. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  826. elseif i == 2 then
  827. local s = math.sqrt(m22-m00-m11+1)
  828. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  829. end
  830. end
  831. end
  832.  
  833. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  834. local xs, ys, zs = x + x, y + y, z + z
  835. local wx, wy, wz = w*xs, w*ys, w*zs
  836. local xx = x*xs
  837. local xy = x*ys
  838. local xz = x*zs
  839. local yy = y*ys
  840. local yz = y*zs
  841. local zz = z*zs
  842. 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))
  843. end
  844.  
  845. function QuaternionSlerp(a, b, t)
  846. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  847. local startInterp, finishInterp;
  848. if cosTheta >= 0.0001 then
  849. if (1 - cosTheta) > 0.0001 then
  850. local theta = math.acos(cosTheta)
  851. local invSinTheta = 1/math.sin(theta)
  852. startInterp = math.sin((1-t)*theta)*invSinTheta
  853. finishInterp = math.sin(t*theta)*invSinTheta
  854. else
  855. startInterp = 1-t
  856. finishInterp = t
  857. end
  858. else
  859. if (1+cosTheta) > 0.0001 then
  860. local theta = math.acos(-cosTheta)
  861. local invSinTheta = 1/math.sin(theta)
  862. startInterp = math.sin((t-1)*theta)*invSinTheta
  863. finishInterp = math.sin(t*theta)*invSinTheta
  864. else
  865. startInterp = t-1
  866. finishInterp = t
  867. end
  868. end
  869. 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
  870. end
  871.  
  872. hideanim = function()
  873. equipped = false
  874. mdec2.Parent = nil
  875. mdec.Parent = Decrease
  876. for i = 0, 1, 0.1 do
  877. swait()
  878. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  880. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  881. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  882. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  883. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  884. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  885. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  886. end
  887. end
  888.  
  889. mdec.Parent = Decrease
  890. equipanim = function()
  891. equipped = true
  892. mdec.Parent = nil
  893. mdec2.Parent = Decrease
  894. end
  895.  
  896. StaggerAnim = function()
  897. attack = true
  898. removeControl()
  899. for i = 1, math.random(2, 4) do
  900. 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)
  901. end
  902. for i = 0, 1, 0.35 do
  903. swait()
  904. Torso.Velocity = RootPart.CFrame.lookVector * -40
  905. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  906. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  907. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  908. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  909. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  910. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  911. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  912. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  913. end
  914. for i = 0, 1, 0.2 do
  915. swait()
  916. Torso.Velocity = RootPart.CFrame.lookVector * -40
  917. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  919. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  920. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  921. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  922. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  923. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  924. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  925. end
  926. for i = 0, 1, 0.1 do
  927. swait()
  928. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  929. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  930. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  931. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  932. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  933. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  934. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  935. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  936. end
  937. for i = 1, 40 do
  938. swait()
  939. if StunT.Value <= Stun.Value then
  940. break
  941. end
  942. end
  943. do
  944. resumeControl()
  945. combo = 0
  946. attack = false
  947. end
  948. end
  949.  
  950. StaggerHitt = function()
  951. attack = true
  952. for i = 1, math.random(2, 4) do
  953. 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)
  954. end
  955. for i = 0, 1, 0.1 do
  956. swait()
  957. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  958. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  959. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  960. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  961. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  962. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  963. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  964. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  965. end
  966. attack = false
  967. end
  968.  
  969. StunAnim = function()
  970. attack = true
  971. removeControl()
  972. Stunned.Value = true
  973. showDamage(Character, "Stunned", "Interrupt")
  974. local dec = Instance.new("NumberValue", Decrease)
  975. dec.Name = "DecreaseMvmt"
  976. dec.Value = 10
  977. for i = 0, 1, 0.3 do
  978. swait()
  979. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  980. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  981. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  982. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  983. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  984. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  985. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  986. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  987. end
  988. for i = 0, 1, 0.3 do
  989. swait()
  990. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  991. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  992. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  993. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  994. 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)
  995. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  996. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  997. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  998. end
  999. for i = 0, 1, 0.3 do
  1000. swait()
  1001. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1002. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1003. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1004. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1005. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1006. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1007. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1008. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1009. end
  1010. local gairost = Instance.new("BodyGyro")
  1011. gairost.Parent = RootPart
  1012. gairost.maxTorque = Vector3.new(40, 0, 40)
  1013. gairost.P = 20
  1014. gairost.cframe = cf(0, 0, 0)
  1015. for i = 0, 1, 0.1 do
  1016. swait()
  1017. if hitfloor ~= nil then
  1018. Torso.Velocity = vt(0, 0, 0)
  1019. end
  1020. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1021. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1022. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1023. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1024. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1025. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1026. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1027. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1028. end
  1029. for i = 1, 70 do
  1030. swait()
  1031. gairost.cframe = RootPart.CFrame
  1032. if hitfloor ~= nil then
  1033. Torso.Velocity = vt(0, 0, 0)
  1034. end
  1035. end
  1036. for i = 0, 1, 0.2 do
  1037. swait()
  1038. Stun.Value = 0
  1039. gairost.cframe = RootPart.CFrame
  1040. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1041. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1042. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1043. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1044. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1045. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1046. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1047. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1048. end
  1049. resumeControl()
  1050. gairost.Parent = nil
  1051. dec.Parent = nil
  1052. Stun.Value = 0
  1053. combo = 0
  1054. Stunned.Value = false
  1055. attack = false
  1056. for i = 1, 10 do
  1057. swait()
  1058. Stun.Value = 0
  1059. end
  1060. end
  1061.  
  1062. attackone = function()
  1063. attack = true
  1064. for i = 0, 1, 0.2 do
  1065. swait()
  1066. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(-0.1, 0, 0), 0.4)
  1067. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.6), 0.4)
  1068. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.4)
  1069. LW.C0 = clerp(LW.C0, cf(-0.4, 0.7, -0.7) * euler(1.57, 0, 1.3) * euler(0.5, 0, 0), 0.4)
  1070. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.4)
  1071. LH.C0 = clerp(LH.C0, cf(-1.4, -0.9, -0.3) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.4)
  1072. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1073. do
  1074. if StaggerHit.Value == true then
  1075. break
  1076. end
  1077. -- DECOMPILER ERROR at PC171: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1078.  
  1079. -- DECOMPILER ERROR at PC171: LeaveBlock: unexpected jumping out IF_STMT
  1080.  
  1081. end
  1082. end
  1083. end
  1084. so("169445073", LeftArm, 1, 0.95)
  1085. for i = 0, 1, 0.2 do
  1086. swait()
  1087. MagniDamage(LeftArm, 3, 4, 5, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1088. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.5)
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.5)
  1090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.1, 0, 1) * euler(0, 0, 0), 0.5)
  1091. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.1) * euler(1.57, 0, -1.3) * euler(-0.2, 0, 0), 0.5)
  1092. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.5)
  1093. LH.C0 = clerp(LH.C0, cf(-1.1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.1, 0) * euler(0, 0, 0), 0.4)
  1094. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1095. do
  1096. if StaggerHit.Value == true then
  1097. break
  1098. end
  1099. -- DECOMPILER ERROR at PC369: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1100.  
  1101. -- DECOMPILER ERROR at PC369: LeaveBlock: unexpected jumping out IF_STMT
  1102.  
  1103. end
  1104. end
  1105. end
  1106. attack = false
  1107. end
  1108.  
  1109. attacktwo = function()
  1110. attack = true
  1111. for i = 0, 1, 0.15 do
  1112. swait()
  1113. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1114. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1115. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.2) * euler(1.7, 0, -0.2) * euler(0, 0, 0), 0.4)
  1116. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2) * euler(0, 0, 0), 0.4)
  1117. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1118. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1119. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1120. do
  1121. if StaggerHit.Value == true then
  1122. break
  1123. end
  1124. -- DECOMPILER ERROR at PC159: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1125.  
  1126. -- DECOMPILER ERROR at PC159: LeaveBlock: unexpected jumping out IF_STMT
  1127.  
  1128. end
  1129. end
  1130. end
  1131. so("169445092", RightArm, 1, 1)
  1132. for i = 0, 1, 0.2 do
  1133. swait()
  1134. MagniDamage(RightArm, 3, 4, 5, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1135. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.8) * euler(1.6, 0, 0.2) * euler(0, 0, 0), 0.6)
  1136. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.4)
  1137. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.4)
  1138. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.4) * euler(0, 0, 0), 0.4)
  1139. RH.C0 = clerp(RH.C0, cf(1.2, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(0, 0, -0.2), 0.4)
  1140. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1141. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1142. do
  1143. if StaggerHit.Value == true then
  1144. break
  1145. end
  1146. -- DECOMPILER ERROR at PC351: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1147.  
  1148. -- DECOMPILER ERROR at PC351: LeaveBlock: unexpected jumping out IF_STMT
  1149.  
  1150. end
  1151. end
  1152. end
  1153. attack = false
  1154. end
  1155.  
  1156. attackthree = function()
  1157. attack = true
  1158. for i = 0, 1, 0.15 do
  1159. swait()
  1160. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1161. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1162. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.2) * euler(2, 0, 0.4) * euler(0, 0, 0), 0.4)
  1163. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.1) * euler(0, 0, 0), 0.4)
  1164. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1165. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1166. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1167. do
  1168. if StaggerHit.Value == true then
  1169. break
  1170. end
  1171. -- DECOMPILER ERROR at PC159: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1172.  
  1173. -- DECOMPILER ERROR at PC159: LeaveBlock: unexpected jumping out IF_STMT
  1174.  
  1175. end
  1176. end
  1177. end
  1178. so("169445092", RightArm, 1, 0.9)
  1179. for i = 0, 1, 0.15 do
  1180. swait()
  1181. MagniDamage(RightArm, 3, 4, 5, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1182. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.4)
  1183. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.4)
  1184. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(1.2, 0, -0.4) * euler(0, 0, 0), 0.6)
  1185. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.4) * euler(0, 0, 0), 0.4)
  1186. RH.C0 = clerp(RH.C0, cf(1.2, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(0, 0, -0.2), 0.4)
  1187. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1188. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1189. do
  1190. if StaggerHit.Value == true then
  1191. break
  1192. end
  1193. -- DECOMPILER ERROR at PC351: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1194.  
  1195. -- DECOMPILER ERROR at PC351: LeaveBlock: unexpected jumping out IF_STMT
  1196.  
  1197. end
  1198. end
  1199. end
  1200. attack = false
  1201. end
  1202.  
  1203. attackfour = function()
  1204. attack = true
  1205. sball4 = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  1206. smsh4 = mesh("SpecialMesh", sball4, "Sphere", "nil", vt(0, 0, 0), vt(0, 0, 0))
  1207. swld = weld(sball4, sball4, LeftArm, euler(0, 0, 0) * cf(0, 1, 0))
  1208. for i = 0, 1, 0.2 do
  1209. swait()
  1210. smsh4.Scale = smsh4.Scale + vt(1.6, 1.6, 1.6)
  1211. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.5)
  1212. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.5)
  1213. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.1, 0, 1) * euler(0, 0, 0), 0.5)
  1214. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.1) * euler(1.57, 0, -1.3) * euler(-0.2, 0, 0), 0.5)
  1215. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.5)
  1216. LH.C0 = clerp(LH.C0, cf(-1.1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.1, 0) * euler(0, 0, 0), 0.4)
  1217. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1218. do
  1219. if StaggerHit.Value == true then
  1220. break
  1221. end
  1222. -- DECOMPILER ERROR at PC227: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1223.  
  1224. -- DECOMPILER ERROR at PC227: LeaveBlock: unexpected jumping out IF_STMT
  1225.  
  1226. end
  1227. end
  1228. end
  1229. so("169445073", LeftArm, 1, 0.85)
  1230. RecentEnemy.Value = nil
  1231. explodeball = false
  1232. for i = 0, 1, 0.15 do
  1233. swait()
  1234. if RecentEnemy.Value == nil then
  1235. MagniDamage(sball4, 3, 6, 8, math.random(15, 25), "Normal", RootPart, 0.3, 2, (math.random(5, 7)), nil, nil, true)
  1236. else
  1237. if explodeball == false then
  1238. explodeball = true
  1239. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1240. ref.Anchored = true
  1241. ref.CFrame = sball4.CFrame
  1242. game:GetService("Debris"):AddItem(ref, 1)
  1243. so("333511851", ref, 0.8, 0.9)
  1244. for i = 1, math.random(2, 3) do
  1245. sball2 = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  1246. sball2.CFrame = sball4.CFrame
  1247. sball2.Anchored = false
  1248. game:GetService("Debris"):AddItem(sball2, 3)
  1249. smsh = mesh("SpecialMesh", sball2, "Sphere", "nil", vt(0, 0, 0), vt(math.random(10, 20) / 10, math.random(10, 20) / 10, math.random(10, 20) / 10))
  1250. sball2.Velocity = vt(math.random(-20, 20), math.random(20, 50), math.random(-20, 20))
  1251. end
  1252. sball4.Parent = nil
  1253. end
  1254. end
  1255. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  1256. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.6), 0.4)
  1257. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.4)
  1258. LW.C0 = clerp(LW.C0, cf(-0.4, 0.7, -0.7) * euler(1.57, 0, 1.3) * euler(-0.2, 0, 0), 0.4)
  1259. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.4)
  1260. LH.C0 = clerp(LH.C0, cf(-1.4, -0.9, -0.3) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.4)
  1261. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1262. do
  1263. if StaggerHit.Value == true then
  1264. break
  1265. end
  1266. -- DECOMPILER ERROR at PC556: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1267.  
  1268. -- DECOMPILER ERROR at PC556: LeaveBlock: unexpected jumping out IF_STMT
  1269.  
  1270. end
  1271. end
  1272. end
  1273. sball4.Parent = nil
  1274. attack = false
  1275. end
  1276.  
  1277. attackcannon = function()
  1278. attack = true
  1279. for i = 0, 1, 0.13 do
  1280. swait()
  1281. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.35)
  1282. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.4) * euler(0.2, 0, 0), 0.35)
  1283. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -1.4) * euler(0, 0.1, 0), 0.35)
  1284. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(1.2, 0, 0.5) * euler(0, 1.3, 0), 0.35)
  1285. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(1.4, 0, 1) * euler(0, -1, 0), 0.35)
  1286. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.3)
  1287. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1.4, 0) * euler(0, 0, -0.2), 0.3)
  1288. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1289. do
  1290. if StaggerHit.Value == true then
  1291. break
  1292. end
  1293. -- DECOMPILER ERROR at PC195: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1294.  
  1295. -- DECOMPILER ERROR at PC195: LeaveBlock: unexpected jumping out IF_STMT
  1296.  
  1297. end
  1298. end
  1299. end
  1300. so("203691447", cprt22, 1, 1.2)
  1301. for i = 0, 1, 0.07 do
  1302. swait()
  1303. if i < 0.5 then
  1304. MagniDamage(cprt22, 4, 6, 8, math.random(20, 30), "Normal", RootPart, 0.5, 1, (math.random(4, 6)), nil, true)
  1305. end
  1306. if i < 0.25 then
  1307. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.3)
  1308. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0) * euler(0, 0, 0.7), 0.3)
  1309. chandlewld.C0 = clerp(chandlewld.C0, euler(0.2, 0, 0) * cf(0, 1, 0), 0.4)
  1310. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.5, 0, -0.3) * euler(0, 1.5, 0), 0.4)
  1311. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, 0) * euler(1.6, 0, 0.1) * euler(0, -1, 0), 0.4)
  1312. RH.C0 = clerp(RH.C0, cf(1, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.7, 0) * euler(-0.1, 0, 0.1), 0.3)
  1313. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, 0.1), 0.3)
  1314. else
  1315. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.3, 0, 0), 0.3)
  1316. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0) * euler(0, 0, 1), 0.3)
  1317. chandlewld.C0 = clerp(chandlewld.C0, euler(0.2, 0, 0) * cf(0, 1, 0), 0.3)
  1318. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, -0.2) * euler(1.3, 0, -0.4) * euler(0, 2, 0), 0.3)
  1319. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, 0) * euler(1, 0, 0.1) * euler(0, -1, 0), 0.3)
  1320. RH.C0 = clerp(RH.C0, cf(1, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(-0.1, 0, 0.1), 0.3)
  1321. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, 0.1), 0.3)
  1322. end
  1323. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1324. do
  1325. if StaggerHit.Value == true then
  1326. break
  1327. end
  1328. -- DECOMPILER ERROR at PC582: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1329.  
  1330. -- DECOMPILER ERROR at PC582: LeaveBlock: unexpected jumping out IF_STMT
  1331.  
  1332. end
  1333. end
  1334. end
  1335. attack = false
  1336. end
  1337.  
  1338. WinterShooter = function()
  1339. attack = true
  1340. if mode == "Gloves" then
  1341. manainc = 999
  1342. passive.Parent = Decrease
  1343. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, -0.4) * euler(0, 1.5, 0), 0.3)
  1344. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, 0.4) * euler(0, 0, 0), 0.3)
  1345. for i = 0, 1, 0.15 do
  1346. swait()
  1347. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(-0.2, 0, 0), 0.45)
  1348. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.45)
  1349. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, 0.1) * euler(3.5, 0, -0.4) * euler(0, 1.5, 0), 0.45)
  1350. LW.C0 = clerp(LW.C0, cf(-1.4, 0.6, 0.1) * euler(3.5, 0, 0.4), 0.45)
  1351. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.2), 0.45)
  1352. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.45)
  1353. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1354. do
  1355. if StaggerHit.Value == true then
  1356. break
  1357. end
  1358. end
  1359. end
  1360. end
  1361. chandlewld.Part1 = RightArm
  1362. chandlewld.C0 = euler(mr(180), mr(180), 0.5) * cf(0, 1, 0)
  1363. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0.4) * euler(0, 0, 0), 0.3)
  1364. mode = "Winter"
  1365. attack = false
  1366. gairo.Parent = RootPart
  1367. Humanoid.AutoRotate = false
  1368. else
  1369. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, -0.4) * euler(0, 1.5, 0), 0.3)
  1370. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, 0.4) * euler(0, 0, 0), 0.3)
  1371. for i = 0, 1, 0.15 do
  1372. swait()
  1373. chandlewld.C0 = clerp(chandlewld.C0, euler(mr(180), mr(180), 0.5) * cf(0, 1, 0), 0.45)
  1374. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(-0.2, 0, 0), 0.45)
  1375. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.45)
  1376. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, 0.1) * euler(3.5, 0, -0.4) * euler(0, 1.5, 0), 0.45)
  1377. LW.C0 = clerp(LW.C0, cf(-1.4, 0.6, 0.1) * euler(3.5, 0, 0.4), 0.45)
  1378. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.2), 0.45)
  1379. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.45)
  1380. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1381. do
  1382. if StaggerHit.Value == true then
  1383. break
  1384. end
  1385. end
  1386. end
  1387. end
  1388. passive.Parent = nil
  1389. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, -0.4) * euler(0, 1.5, 0), 0.3)
  1390. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, 0.4) * euler(0, 0, 0), 0.3)
  1391. chandlewld.Part1 = Torso
  1392. chandlewld.C0 = euler(0, -mr(90), -mr(45)) * cf(-0.6, -1.8, -0.8)
  1393. mode = "Gloves"
  1394. manainc = 8
  1395. gairo.Parent = nil
  1396. Humanoid.AutoRotate = true
  1397. attack = false
  1398. end
  1399. end
  1400.  
  1401. do1 = function()
  1402. if attack == true then
  1403. return
  1404. end
  1405. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1406. return
  1407. end
  1408. if cooldownmax <= cooldowns[1] and (mana.Value >= 5) then
  1409. attack = true
  1410. if mode == "Gloves" then
  1411. holde = true
  1412. passive.Parent = Decrease
  1413. manainc = 15
  1414. for i = 0, 1, 0.15 do
  1415. swait()
  1416. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1417. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.3)
  1418. RW.C0 = clerp(RW.C0, cf(1.2, 0.45, -0.4) * euler(0.4, 0, 0.4), 0.3)
  1419. LW.C0 = clerp(LW.C0, cf(-1.2, 0.45, -0.4) * euler(0.4, 0, -0.4), 0.3)
  1420. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.3)
  1421. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.3)
  1422. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1423. do
  1424. if StaggerHit.Value == true then
  1425. break
  1426. end
  1427. end
  1428. end
  1429. end
  1430. ul = 0
  1431. maxi = 1
  1432. while holde == true do
  1433. for i = 0, 1, 0.2 do
  1434. swait()
  1435. ul = ul + 1
  1436. if ul > 4 then
  1437. maxi = maxi + 1
  1438. ul = 0
  1439. if maxi > 4 then
  1440. holde = false
  1441. end
  1442. end
  1443. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1444. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.4)
  1445. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, -0.4) * euler(0.3, 0, -0.2), 0.4)
  1446. LW.C0 = clerp(LW.C0, cf(-0.9, 0.4, -0.4) * euler(0.3, 0, 0.2), 0.4)
  1447. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.4)
  1448. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.4)
  1449. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  1450. do
  1451. if holde == false then
  1452. break
  1453. end
  1454. end
  1455. end
  1456. end
  1457. for i = 0, 1, 0.2 do
  1458. swait()
  1459. ul = ul + 1
  1460. if ul > 2 then
  1461. maxi = maxi + 1
  1462. ul = 0
  1463. if maxi > 8 then
  1464. holde = false
  1465. end
  1466. end
  1467. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1468. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.4)
  1469. RW.C0 = clerp(RW.C0, cf(1.2, 0.4, -0.4) * euler(0.35, 0, 0.3), 0.4)
  1470. LW.C0 = clerp(LW.C0, cf(-1.2, 0.4, -0.4) * euler(0.35, 0, -0.3), 0.4)
  1471. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.4)
  1472. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.4)
  1473. if Stagger.Value ~= true then
  1474. if StunT.Value > Stun.Value then
  1475. if StaggerHit.Value ~= true then
  1476. do
  1477. if holde == false then
  1478. break
  1479. end
  1480. end
  1481. end
  1482. end
  1483. end
  1484. end
  1485. end
  1486. passive.Parent = nil
  1487. rand = math.random(1, 2)
  1488. mana.Value = math.floor(mana.Value - maxi / 1.5)
  1489. manainc = 12
  1490. local snball = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  1491. smsh = mesh("SpecialMesh", snball, "Sphere", "nil", vt(0, 0, 0), vt(4 + maxi, 4 + maxi, 4 + maxi))
  1492. if rand == 1 then
  1493. local swld = weld(snball, snball, LeftArm, euler(0, 0, 0) * cf(0, 1, 0))
  1494. elseif rand == 2 then
  1495. local swld = weld(snball, snball, RightArm, euler(0, 0, 0) * cf(0, 1, 0))
  1496. end
  1497. for i = 0, 1, 0.15 do
  1498. swait()
  1499. newpos = vt(MMouse.Hit.p.X, RootPart.Position.Y, MMouse.Hit.p.Z)
  1500. MoveCF = cf(RootPart.Position, newpos)
  1501. local mpos = Torso.CFrame * euler(0, 0, 0)
  1502. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1503. x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1504. if rand == 1 then
  1505. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, 1), 0.4)
  1506. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.05, 0, 0), 0.4)
  1507. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1), 0.4)
  1508. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4, 0) * euler(2.8, 0, -1), 0.4)
  1509. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, -0.1), 0.4)
  1510. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(-0.2, 0, 0), 0.4)
  1511. else
  1512. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, -1), 0.4)
  1513. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.05, 0, 0), 0.4)
  1514. RW.C0 = clerp(RW.C0, cf(1.5, 0.4, 0) * euler(2.8, 0, 1), 0.4)
  1515. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -1), 0.4)
  1516. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 0.5, 0) * euler(-0.2, 0, -0.2), 0.45)
  1517. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.45)
  1518. end
  1519. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1520. do
  1521. if StaggerHit.Value == true then
  1522. break
  1523. end
  1524. end
  1525. end
  1526. end
  1527. for i = 0, 1, 0.4 do
  1528. swait()
  1529. newpos = vt(MMouse.Hit.p.X, RootPart.Position.Y, MMouse.Hit.p.Z)
  1530. MoveCF = cf(RootPart.Position, newpos)
  1531. local mpos = Torso.CFrame * euler(0, 0, 0)
  1532. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1533. x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1534. if rand == 1 then
  1535. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, -1), 0.45)
  1536. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.45)
  1537. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.45)
  1538. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4, 0) * euler(1.5, 0, -0.5), 0.45)
  1539. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, 0.5, 0) * euler(-0.2, 0, -0.2), 0.45)
  1540. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.45)
  1541. else
  1542. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, 1), 0.45)
  1543. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.45)
  1544. RW.C0 = clerp(RW.C0, cf(1.5, 0.4, 0) * euler(1.5, 0, 0.5), 0.45)
  1545. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.45)
  1546. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, -0.1), 0.45)
  1547. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(-0.2, 0, 0), 0.45)
  1548. end
  1549. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1550. do
  1551. if StaggerHit.Value == true then
  1552. break
  1553. end
  1554. end
  1555. end
  1556. end
  1557. if rand == 1 then
  1558. so("169445073", LeftArm, 0.8, 1.2)
  1559. else
  1560. so("169445073", RightArm, 0.8, 1.2)
  1561. end
  1562. snball.Parent = nil
  1563. for i = 1, maxi do
  1564. tehs = vt(math.random(-maxi * 50, maxi * 50) / 100, math.random(-maxi * 50, maxi * 50) / 100, math.random(-maxi * 50, maxi * 50) / 100) * (Torso.Position - MMouse.Hit.p).magnitude / 100
  1565. if i == 1 then
  1566. tehs = vt(0, 0, 0)
  1567. end
  1568. Shootcombo(tehs, math.random(70, 200) / 100, snball)
  1569. end
  1570. for i = 0, 1, 0.3 do
  1571. swait()
  1572. newpos = vt(MMouse.Hit.p.X, RootPart.Position.Y, MMouse.Hit.p.Z)
  1573. MoveCF = cf(RootPart.Position, newpos)
  1574. local mpos = Torso.CFrame * euler(0, 0, 0)
  1575. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1576. x = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1577. if rand == 1 then
  1578. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, -1), 0.4)
  1579. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.4)
  1580. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.6), 0.4)
  1581. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4, 0) * euler(1, 0, -0.5), 0.4)
  1582. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1583. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.4)
  1584. else
  1585. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, 0) * euler(0, 0, 1), 0.4)
  1586. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.4)
  1587. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0.5), 0.4)
  1588. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4, 0) * euler(-0.6, 0, -0.6), 0.4)
  1589. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, -0.1), 0.45)
  1590. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(-0.2, 0, 0), 0.45)
  1591. end
  1592. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1593. do
  1594. if StaggerHit.Value == true then
  1595. break
  1596. end
  1597. end
  1598. end
  1599. end
  1600. attack = false
  1601. end
  1602. if mode == "Winter" then
  1603. gairo.Parent = nil
  1604. if cmode == "Rapid" then
  1605. so("16211041", cprt57, 1, 0.7)
  1606. Shootcannon(vt(0, 0, 0), 2.5, cprt57)
  1607. end
  1608. if cmode == "Shotgun" then
  1609. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1610. for i = 1, 5 do
  1611. tehs = vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100) * (Torso.Position - MMouse.Hit.p).magnitude / 100
  1612. if i == 1 then
  1613. tehs = vt(0, 0, 0)
  1614. end
  1615. mana.Value = mana.Value - 1
  1616. so("16211041", cprt57, 0.6, 0.7)
  1617. Shootcannon(tehs, math.random(150, 200) / 100, cprt57)
  1618. end
  1619. for i = 0, 1, 0.15 do
  1620. swait()
  1621. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.45)
  1622. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.45)
  1623. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 1, 0) * euler(0, 0, -1) * euler(0, 0.1, 0), 0.45)
  1624. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.2, 0, 0.5) * euler(0, 1.1, 0), 0.45)
  1625. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(0.6, 0, 1) * euler(0, -1, 0), 0.45)
  1626. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.2), 0.45)
  1627. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.45)
  1628. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1629. do
  1630. if StaggerHit.Value == true then
  1631. break
  1632. end
  1633. end
  1634. end
  1635. end
  1636. end
  1637. if cmode == "Volley" then
  1638. for i = 1, 5 do
  1639. Torso.Velocity = RootPart.CFrame.lookVector * -10
  1640. tehs = vt(math.random(-150, 150) / 100, math.random(-150, 150) / 100, math.random(-150, 150) / 100) * (Torso.Position - MMouse.Hit.p).magnitude / 100
  1641. if i == 1 then
  1642. tehs = vt(0, 0, 0)
  1643. end
  1644. mana.Value = mana.Value - 1
  1645. so("16211041", cprt57, 0.6, 0.7)
  1646. Shootcannon2(tehs, 2, cprt57)
  1647. for i = 0, 1, 0.5 do
  1648. swait()
  1649. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.5)
  1650. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.5)
  1651. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.5)
  1652. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.2, 0, 0.5) * euler(0, 1.1, 0), 0.35)
  1653. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(0.6, 0, 1) * euler(0, -1, 0), 0.35)
  1654. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.5)
  1655. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.5)
  1656. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1657. do
  1658. if StaggerHit.Value == true then
  1659. break
  1660. end
  1661. end
  1662. end
  1663. end
  1664. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 1)
  1665. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 1)
  1666. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 1)
  1667. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 1)
  1668. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 1)
  1669. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 1)
  1670. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 1)
  1671. end
  1672. end
  1673. if cmode == "ShotgunVolley" then
  1674. for i = 1, 3 do
  1675. Torso.Velocity = RootPart.CFrame.lookVector * -20
  1676. for i = 1, 3 do
  1677. tehs = vt(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100) * (Torso.Position - MMouse.Hit.p).magnitude / 100
  1678. if i == 1 then
  1679. tehs = vt(0, 0, 0)
  1680. end
  1681. mana.Value = mana.Value - 1
  1682. so("16211041", cprt57, 0.6, 0.7)
  1683. Shootcannon2(tehs, 2, cprt57)
  1684. end
  1685. for i = 0, 1, 0.5 do
  1686. swait()
  1687. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.4)
  1688. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1689. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -1) * euler(0, 0.1, 0), 0.4)
  1690. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.2, 0, 0.5) * euler(0, 1.1, 0), 0.4)
  1691. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(0.6, 0, 1) * euler(0, -1, 0), 0.4)
  1692. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.2), 0.4)
  1693. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.4)
  1694. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1695. do
  1696. if StaggerHit.Value == true then
  1697. break
  1698. end
  1699. end
  1700. end
  1701. end
  1702. for i = 0, 1, 0.5 do
  1703. swait()
  1704. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.5)
  1705. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.5)
  1706. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.5)
  1707. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.5)
  1708. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.5)
  1709. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.5)
  1710. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.5)
  1711. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1712. do
  1713. if StaggerHit.Value == true then
  1714. break
  1715. end
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. gairo.Parent = RootPart
  1722. if cmode == "Rapid" then
  1723. cmode = "Shotgun"
  1724. elseif cmode == "Shotgun" then
  1725. cmode = "Volley"
  1726. elseif cmode == "Volley" then
  1727. cmode = "ShotgunVolley"
  1728. elseif cmode == "ShotgunVolley" then
  1729. cmode = "Shotgun"
  1730. end
  1731. cooldowns[1] = 95
  1732. attack = false
  1733. end
  1734. end
  1735. end
  1736. do2 = function()
  1737. if attack == true then
  1738. return
  1739. end
  1740. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1741. return
  1742. end
  1743. if cooldownmax <= cooldowns[2] and mana.Value >= 15 then
  1744. attack = true
  1745. cooldowns[2] = 0
  1746. mana.Value = mana.Value - 15
  1747. if mode == "Gloves" then
  1748. for i = 0, 1, 0.15 do
  1749. swait()
  1750. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1751. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.3)
  1752. RW.C0 = clerp(RW.C0, cf(1.2, 0.45, -0.4) * euler(0.4, 0, 0.4), 0.3)
  1753. LW.C0 = clerp(LW.C0, cf(-1.2, 0.45, -0.4) * euler(0.4, 0, -0.4), 0.3)
  1754. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.3)
  1755. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.3)
  1756. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1757. do
  1758. if StaggerHit.Value == true then
  1759. break
  1760. end
  1761. end
  1762. end
  1763. end
  1764. sball4 = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  1765. smsh4 = mesh("SpecialMesh", sball4, "Sphere", "nil", vt(0, 0, 0), vt(0, 0, 0))
  1766. swld = weld(sball4, sball4, Torso, euler(0, 0, 0) * cf(0, 1, 1))
  1767. for d = 1, 2 do
  1768. for i = 0, 1, 0.2 do
  1769. swait()
  1770. smsh4.Scale = smsh4.Scale + vt(1.2, 1.2, 1.2)
  1771. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1772. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.4)
  1773. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, -0.4) * euler(0.3, 0, -0.2), 0.4)
  1774. LW.C0 = clerp(LW.C0, cf(-0.9, 0.4, -0.4) * euler(0.3, 0, 0.2), 0.4)
  1775. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.4)
  1776. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.4)
  1777. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1778. do
  1779. if StaggerHit.Value == true then
  1780. break
  1781. end
  1782. end
  1783. end
  1784. end
  1785. if d == 1 then
  1786. for i = 0, 1, 0.2 do
  1787. swait()
  1788. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1789. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * euler(0.2, 0, 0), 0.4)
  1790. RW.C0 = clerp(RW.C0, cf(1.2, 0.4, -0.4) * euler(0.35, 0, 0.3), 0.4)
  1791. LW.C0 = clerp(LW.C0, cf(-1.2, 0.4, -0.4) * euler(0.35, 0, -0.3), 0.4)
  1792. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.8) * euler(0, 1.57, 0) * euler(-0.1, 0, -1.4), 0.4)
  1793. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.4)
  1794. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1795. do
  1796. if StaggerHit.Value == true then
  1797. break
  1798. end
  1799. end
  1800. end
  1801. end
  1802. end
  1803. end
  1804. swld.Part1 = RightArm
  1805. swld.C0 = cf(0.6, 1, 0)
  1806. for i = 0, 1, 0.2 do
  1807. swait()
  1808. swld.C0 = clerp(swld.C0, cf(0.3, 2.2, 0), 0.4)
  1809. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.4)
  1810. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.05, 0, 0), 0.4)
  1811. RW.C0 = clerp(RW.C0, cf(1.1, 0.7, -0.1) * euler(3.2, 0, -0.3), 0.4)
  1812. LW.C0 = clerp(LW.C0, cf(-1.1, 0.7, -0.1) * euler(3.2, 0, 0.3), 0.4)
  1813. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.4)
  1814. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, 0, -0.1), 0.4)
  1815. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1816. do
  1817. if StaggerHit.Value == true then
  1818. break
  1819. end
  1820. end
  1821. end
  1822. end
  1823. Humanoid.Jump = true
  1824. for i = 0, 1, 0.2 do
  1825. swait()
  1826. swld.C0 = clerp(swld.C0, cf(0.3, 2.2, 0), 0.4)
  1827. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.4)
  1828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.2, 0, 0), 0.4)
  1829. RW.C0 = clerp(RW.C0, cf(1.1, 0.7, -0.1) * euler(3.5, 0, -0.3), 0.4)
  1830. LW.C0 = clerp(LW.C0, cf(-1.1, 0.7, -0.1) * euler(3.5, 0, 0.3), 0.4)
  1831. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.4)
  1832. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.4)
  1833. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1834. do
  1835. if StaggerHit.Value == true then
  1836. break
  1837. end
  1838. end
  1839. end
  1840. end
  1841. da = 0
  1842. for i = 0, 1, 0.2 do
  1843. swait()
  1844. da = da + 1
  1845. if da == 3 then
  1846. so("169445073", Torso, 0.8, 0.9)
  1847. Shoot2(vt(0, 0, 0), 1.4, sball4)
  1848. sball4.Parent = nil
  1849. end
  1850. if da < 3 then
  1851. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, -0.3) * euler(1, 0, -0.3), 0.4)
  1852. LW.C0 = clerp(LW.C0, cf(-1.1, 0.5, -0.3) * euler(1, 0, 0.3), 0.4)
  1853. else
  1854. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, -0.3) * euler(-0.5, 0, 0.3), 0.4)
  1855. LW.C0 = clerp(LW.C0, cf(-1.1, 0.5, -0.3) * euler(-0.5, 0, -0.3), 0.4)
  1856. end
  1857. swld.C0 = clerp(swld.C0, cf(0.3, 2.2, 0), 0.4)
  1858. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.4)
  1859. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.05, 0, 0), 0.4)
  1860. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.4)
  1861. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.4)
  1862. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1863. do
  1864. if StaggerHit.Value == true then
  1865. break
  1866. end
  1867. -- DECOMPILER ERROR at PC1082: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1868.  
  1869. -- DECOMPILER ERROR at PC1082: LeaveBlock: unexpected jumping out IF_STMT
  1870.  
  1871. end
  1872. end
  1873. end
  1874. sball4.Parent = nil
  1875. attack = false
  1876. else
  1877. do
  1878. so("16211041", cprt57, 1, 0.6)
  1879. Shoot2(vt(0, 0, 0), 1.8, cprt57)
  1880. for i = 1, 0, -0.1 do
  1881. swait()
  1882. Torso.Velocity = RootPart.CFrame.lookVector * -40 * i
  1883. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.45)
  1884. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.45)
  1885. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 1, 0) * euler(0, 0, -1) * euler(0, 0.1, 0), 0.45)
  1886. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.2, 0, 0.5) * euler(0, 1.1, 0), 0.45)
  1887. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(0.6, 0, 1) * euler(0, -1, 0), 0.45)
  1888. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.2), 0.45)
  1889. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.45)
  1890. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1891. do
  1892. if StaggerHit.Value == true then
  1893. break
  1894. end
  1895. -- DECOMPILER ERROR at PC1300: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1896.  
  1897. -- DECOMPILER ERROR at PC1300: LeaveBlock: unexpected jumping out IF_STMT
  1898.  
  1899. end
  1900. end
  1901. end
  1902. attack = false
  1903. end
  1904. end
  1905. end
  1906. end
  1907.  
  1908. do3 = function()
  1909. if doing3 == true then
  1910. doing3 = false
  1911. return
  1912. end
  1913. if attack == true then
  1914. return
  1915. end
  1916. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1917. return
  1918. end
  1919. if cooldownmax <= cooldowns[3] and mana.Value >= 5 then
  1920. attack = true
  1921. mana.Value = mana.Value - 5
  1922. doing3 = true
  1923. spill = false
  1924. mdecc = Instance.new("NumberValue", Decrease)
  1925. mdecc.Name = "DecreaseDef"
  1926. mdecc.Value = 0
  1927. for i = 0, 1, 0.1 do
  1928. swait()
  1929. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.3)
  1930. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1931. if mode == "Gloves" then
  1932. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.2) * euler(0, -0.3, 0), 0.3)
  1933. else
  1934. chandlewld.C0 = clerp(chandlewld.C0, euler(-1.4, 0, 0) * cf(0, 0.8, 0), 0.3)
  1935. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.2) * euler(1.7, 0, 0.8) * euler(0, 0.2, 0), 0.3)
  1936. end
  1937. LW.C0 = clerp(LW.C0, cf(-1.3, 0.4, 0.2) * euler(-0.4, 0, 0.4), 0.3)
  1938. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1939. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.3)
  1940. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1941. do
  1942. if StaggerHit.Value == true then
  1943. break
  1944. end
  1945. end
  1946. end
  1947. end
  1948. if mode == "Gloves" then
  1949. mugdo = true
  1950. else
  1951. gairo.Parent = nil
  1952. Humanoid.AutoRotate = true
  1953. end
  1954. mug = part(3, effects, 0, 0, BrickColor.new(NewColraa), "Mug", vt())
  1955. mmsh = mesh("SpecialMesh", mug, "FileMesh", "32023686", vt(0, 0, 0), vt(1.2, 1.2, 1.2))
  1956. mwld = weld(mug, mug, LeftArm, euler(1.57, 0, -1.57) * cf(0, 1.45, 0))
  1957. mug2 = part(3, mug, 0, 0, BrickColor.new("Cocoa"), "Mug2", vt())
  1958. mmsh2 = mesh("CylinderMesh", mug2, "nil", "nil", vt(0, 0, 0), vt(3, 3, 3))
  1959. mwld2 = weld(mug2, mug2, mug, euler(0, 0, 0) * cf(0.13, 0, 0))
  1960. steam = part(3, effects, 0, 1, BrickColor.new("Black"), "Steam", vt(0.4, 0.5, 0.4))
  1961. steam.Anchored = true
  1962. parti2 = parti:Clone()
  1963. parti2.Parent = steam
  1964. daa = 0
  1965. bleh = math.random(200, 400)
  1966. while doing3 == true and spill == false do
  1967. swait()
  1968. steam.CFrame = mug2.CFrame
  1969. if mode == "Gloves" then
  1970. manainc = 6
  1971. else
  1972. manainc = 8
  1973. end
  1974. daa = daa + 1
  1975. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1976. if mode == "Gloves" then
  1977. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.1) * euler(0, 0, 0), 0.3)
  1978. else
  1979. chandlewld.C0 = clerp(chandlewld.C0, euler(-1.4, 0, 0) * cf(0, 0.8, 0), 0.3)
  1980. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.2) * euler(1.7, 0, 0.8) * euler(0, 0.2, 0), 0.3)
  1981. end
  1982. if daa < bleh then
  1983. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.05, 0, 0), 0.2)
  1984. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.1) * euler(1.2, 0, 0.8) * euler(0, -0.2, 0), 0.1)
  1985. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1986. if daa == bleh - 1 then
  1987. LW.C0 = cf(-1.5, 0.5, 0.1) * euler(1.2, 0, 0.8) * euler(0, -0.2, 0)
  1988. LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  1989. end
  1990. else
  1991. if bleh <= daa and daa < bleh + 70 then
  1992. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.2)
  1993. if daa < bleh + 20 then
  1994. LW.C0 = clerp(LW.C0, cf(-1.8, 0.6, 0.1) * euler(2, 0, 1) * euler(0, 0, 0), 0.1)
  1995. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0.4, 0), 0.2)
  1996. else
  1997. LW.C0 = clerp(LW.C0, cf(-1.8, 0.6, 0.1) * euler(1.9, 0, 1) * euler(0, 0, 0), 0.4)
  1998. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0.35, 0), 0.4)
  1999. end
  2000. else
  2001. if bleh + 70 <= daa then
  2002. bleh = math.random(200, 400)
  2003. daa = 0
  2004. end
  2005. end
  2006. end
  2007. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2008. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.3)
  2009. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  2010. break
  2011. end
  2012. end
  2013. if mode == "Gloves" then
  2014. manainc = 12
  2015. else
  2016. manainc = 999
  2017. end
  2018. cooldowns[3] = 0
  2019. if spill == false and doing3 == false then
  2020. for i = 0, 1, 0.05 do
  2021. swait()
  2022. steam.CFrame = mug2.CFrame
  2023. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2024. if mode == "Gloves" then
  2025. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.1) * euler(0, 0, 0), 0.3)
  2026. else
  2027. chandlewld.C0 = clerp(chandlewld.C0, euler(-1.4, 0, 0) * cf(0, 0.8, 0), 0.3)
  2028. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.2) * euler(1.7, 0, 0.8) * euler(0, 0.2, 0), 0.3)
  2029. end
  2030. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.1, 0, 0), 0.3)
  2031. LW.C0 = clerp(LW.C0, cf(-1.8, 0.8, 0.1) * euler(2, 0, 1) * euler(0, -0.8, 0), 0.3)
  2032. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2033. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2034. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.3)
  2035. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2036. do
  2037. if StaggerHit.Value == true then
  2038. break
  2039. end
  2040. end
  2041. end
  2042. end
  2043. mana.Value = mana.Value + 10
  2044. mug2.Parent = nil
  2045. parti2.Enabled = false
  2046. game:GetService("Debris"):AddItem(steam, 5)
  2047. DecreaseStat(Character, "Defense", -0.15, 300)
  2048. DecreaseStat(Character, "Movement", -0.1, 300)
  2049. if isjugg == false then
  2050. coroutine.resume(coroutine.create(function(Hum, Dam)
  2051. damageFunc:InvokeServer(Humanoid, -10)
  2052. end
  2053. ), h, Damage)
  2054. showDamage(Character, 10, "Heal")
  2055. end
  2056. for i = 0, 1, 0.07 do
  2057. swait()
  2058. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.25)
  2059. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.25)
  2060. if mode == "Gloves" then
  2061. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.2) * euler(0, -0.3, 0), 0.25)
  2062. else
  2063. chandlewld.C0 = clerp(chandlewld.C0, euler(-1.4, 0, 0) * cf(0, 0.8, 0), 0.3)
  2064. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.2) * euler(1.7, 0, 0.8) * euler(0, 0.2, 0), 0.3)
  2065. end
  2066. LW.C0 = clerp(LW.C0, cf(-1.3, 0.4, 0.2) * euler(-0.4, 0, 0.4), 0.25)
  2067. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.25)
  2068. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.25)
  2069. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2070. do
  2071. if StaggerHit.Value == true then
  2072. break
  2073. end
  2074. end
  2075. end
  2076. end
  2077. mdecc.Parent = nil
  2078. mug.Parent = nil
  2079. parti2.Enabled = false
  2080. game:GetService("Debris"):AddItem(steam, 5)
  2081. attack = false
  2082. if mode ~= "Gloves" then
  2083. gairo.Parent = RootPart
  2084. Humanoid.AutoRotate = false
  2085. end
  2086. else
  2087. if spill == true then
  2088. for i = 0, 1, 0.1 do
  2089. swait()
  2090. steam.CFrame = mug2.CFrame
  2091. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.05, 0, 0), 0.2)
  2092. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.3)
  2093. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.1) * euler(1.4, 0, -0.6) * euler(0, -1, 0), 0.3)
  2094. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2095. RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05) * euler(0, -1, 0), 0.3)
  2096. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.1), 0.3)
  2097. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2098. do
  2099. if StaggerHit.Value == true then
  2100. break
  2101. end
  2102. end
  2103. end
  2104. end
  2105. parti2d = parti2a:Clone()
  2106. parti2d.Parent = steam
  2107. cf1 = nil
  2108. cf2 = nil
  2109. cf3 = nil
  2110. cf4 = nil
  2111. cf5 = nil
  2112. refc = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2113. refc.Anchored = true
  2114. refc.CFrame = cf(Torso.Position)
  2115. game:GetService("Debris"):AddItem(refc, 1)
  2116. numc = 0
  2117. for i = 0, 1.7, 0.1 do
  2118. swait()
  2119. if numc == 1 then
  2120. cf1 = steam.CFrame * cf(0, 2, 0)
  2121. end
  2122. if numc == 2 then
  2123. cf2 = steam.CFrame * cf(0, 2, 0)
  2124. end
  2125. if numc == 3 then
  2126. cf3 = steam.CFrame * cf(0, 2, 0)
  2127. end
  2128. if numc == 4 then
  2129. cf4 = steam.CFrame * cf(0, 2, 0)
  2130. end
  2131. if numc == 5 then
  2132. cf5 = steam.CFrame * cf(0, 2, 0)
  2133. end
  2134. if cf1 ~= nil then
  2135. refc.CFrame = cf1
  2136. MagniDamage(refc, 2, 4, 6, 0, "Normal", RootPart, 1, 1, (math.random(2, 4)), nil, nil, true, "Defense", 0.1, 200)
  2137. cf1 = cf1 * cf(0, 0.3, -0.2)
  2138. end
  2139. if cf2 ~= nil then
  2140. refc.CFrame = cf2
  2141. MagniDamage(refc, 2, 4, 6, 0, "Normal", RootPart, 1, 1, (math.random(2, 4)), nil, nil, true, "Defense", 0.1, 200)
  2142. cf2 = cf2 * cf(0, 0.35, -0.2)
  2143. end
  2144. if cf3 ~= nil then
  2145. refc.CFrame = cf3
  2146. MagniDamage(refc, 2, 4, 6, 0, "Normal", RootPart, 1, 1, (math.random(2, 4)), nil, nil, true, "Defense", 0.1, 200)
  2147. cf3 = cf3 * cf(0, 0.4, -0.2)
  2148. end
  2149. if cf4 ~= nil then
  2150. refc.CFrame = cf4
  2151. MagniDamage(refc, 2, 4, 6, 0, "Normal", RootPart, 1, 1, (math.random(2, 4)), nil, nil, true, "Defense", 0.1, 200)
  2152. cf4 = cf4 * cf(0, 0.45, -0.2)
  2153. end
  2154. if cf5 ~= nil then
  2155. refc.CFrame = cf5
  2156. MagniDamage(refc, 2, 4, 6, 0, "Normal", RootPart, 1, 1, (math.random(2, 4)), nil, nil, true, "Defense", 0.1, 200)
  2157. cf5 = cf5 * cf(0, 0.5, -0.2)
  2158. end
  2159. numc = numc + 1
  2160. if i > 0.45 then
  2161. parti2d.Enabled = false
  2162. parti2.Enabled = false
  2163. mug2.Parent = nil
  2164. end
  2165. steam.CFrame = mug2.CFrame
  2166. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.3, 0, 0), 0.3)
  2167. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.25)
  2168. LW.C0 = clerp(LW.C0, cf(-1.1, 0.5, -0.4) * euler(1.3, 0, 0.8) * euler(0, -1.5, 0), 0.25)
  2169. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2170. RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05) * euler(0, -1, 0), 0.3)
  2171. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.1), 0.3)
  2172. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2173. do
  2174. if StaggerHit.Value == true then
  2175. break
  2176. end
  2177. end
  2178. end
  2179. end
  2180. parti2d.Enabled = false
  2181. for i = 0, 1, 0.07 do
  2182. swait()
  2183. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.25)
  2184. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.25)
  2185. LW.C0 = clerp(LW.C0, cf(-1.3, 0.4, 0.2) * euler(-0.4, 0, 0.4), 0.25)
  2186. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.25)
  2187. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.25)
  2188. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2189. do
  2190. if StaggerHit.Value == true then
  2191. break
  2192. end
  2193. end
  2194. end
  2195. end
  2196. mdecc.Parent = nil
  2197. mug.Parent = nil
  2198. parti2.Enabled = false
  2199. game:GetService("Debris"):AddItem(steam, 5)
  2200. if mode ~= "Gloves" then
  2201. gairo.Parent = RootPart
  2202. Humanoid.AutoRotate = false
  2203. end
  2204. mugdo = false
  2205. attack = false
  2206. end
  2207. end
  2208. end
  2209. end
  2210. do4 = function()
  2211. if attack == true then
  2212. return
  2213. end
  2214. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2215. return
  2216. end
  2217. if cooldownmax <= cooldowns[4] and mana.Value >= 30 then
  2218. if mode == "Gloves" then
  2219. WinterShooter()
  2220. end
  2221. attack = true
  2222. cooldowns[4] = 0
  2223. for i = 0, 1, 0.05 do
  2224. swait()
  2225. chandlewld.C0 = clerp(chandlewld.C0, euler(0.4, 0, 0) * cf(0, 1, 0), 0.3)
  2226. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0, 0, 0), 0.3)
  2227. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0) * euler(0, 0, -0.7), 0.3)
  2228. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.6, 0, -0.2) * euler(0, 1, 0), 0.3)
  2229. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.7) * euler(0.8, 0, 0.4) * euler(0, -1, 0), 0.3)
  2230. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 0.7, 0) * euler(-0.2, 0, -0.4), 0.3)
  2231. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 0.7, 0) * euler(0, 0, 0.1), 0.3)
  2232. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2233. do
  2234. if StaggerHit.Value == true then
  2235. break
  2236. end
  2237. end
  2238. end
  2239. end
  2240. so("333475929", cprt57, 1, 1)
  2241. mana.Value = mana.Value - 30
  2242. ShootIce(cprt57)
  2243. Torso.Velocity = RootPart.CFrame.lookVector * -100
  2244. cannonparti1.Enabled = true
  2245. cannonparti2.Enabled = true
  2246. for i = 0, 1, 0.15 do
  2247. swait()
  2248. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.4, 0, 0) * cf(0, 1, 0), 0.45)
  2249. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.45)
  2250. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 1, 0) * euler(0, 0, -1) * euler(0, 0.1, 0) * euler(0, 0, -6.28 * i), 0.45)
  2251. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(1.2, 0, 0.5) * euler(0, 1.3, 0), 0.45)
  2252. LW.C0 = clerp(LW.C0, cf(-0.8, 0.3, -0.5) * euler(1.4, 0, 1) * euler(0, -1, 0), 0.45)
  2253. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.2), 0.45)
  2254. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.45)
  2255. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2256. do
  2257. if StaggerHit.Value == true then
  2258. break
  2259. end
  2260. end
  2261. end
  2262. end
  2263. for i = 0, 1, 0.1 do
  2264. swait()
  2265. if i > 0.5 then
  2266. cannonparti1.Enabled = false
  2267. cannonparti2.Enabled = false
  2268. end
  2269. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 1, 0) * euler(0, 0, -1) * euler(0, 0.1, 0) * euler(0, 0, -1), 0.45)
  2270. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2271. do
  2272. if StaggerHit.Value == true then
  2273. break
  2274. end
  2275. end
  2276. end
  2277. end
  2278. cannonparti1.Enabled = false
  2279. cannonparti2.Enabled = false
  2280. attack = false
  2281. end
  2282. end
  2283.  
  2284. computeLaunchAngle = function(dx, dy, grav)
  2285. g = math.abs(grav)
  2286. VELOCITY = 200
  2287. inRoot = VELOCITY * VELOCITY * VELOCITY * VELOCITY - g * (g * dx * dx + 2 * dy * VELOCITY * VELOCITY)
  2288. if inRoot <= 0 then
  2289. return 0.25 * math.pi
  2290. end
  2291. root = math.sqrt(inRoot)
  2292. inATan1 = (VELOCITY * VELOCITY + root) / (g * dx)
  2293. inATan2 = (VELOCITY * VELOCITY - root) / (g * dx)
  2294. a1 = math.atan(inATan1)
  2295. a2 = math.atan(inATan2)
  2296. if a1 < a2 then
  2297. return a1
  2298. end
  2299. return a2
  2300. end
  2301.  
  2302. computeDirection = function(vec)
  2303. lenSquared = vec.magnitude * vec.magnitude
  2304. invSqrt = 1 / math.sqrt(lenSquared)
  2305. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  2306. end
  2307.  
  2308. Shootcombo = function(spread, multip, partcf)
  2309. MouseLook = cf((partcf.Position + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  2310. targ = MMouse.Hit.p - partcf.Position
  2311. dist = targ.magnitude
  2312. if dist > 500 then
  2313. dist = 500
  2314. end
  2315. MouseLook = MouseLook * euler(mr(dist / (9.8 * multip)), 0, 0)
  2316. sball = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  2317. sball.Anchored = true
  2318. smsh = mesh("SpecialMesh", sball, "Sphere", "nil", vt(0, 0, 0), vt(5, 5, 5))
  2319. table.insert(Effects, {MouseLook, "Shoot", 100, partcf.Position, 4, 5, 0, sball, 5, multip})
  2320. end
  2321.  
  2322. Shootcannon = function(spread, multip, partcf)
  2323. MouseLook = cf((partcf.Position + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  2324. targ = MMouse.Hit.p - partcf.Position
  2325. dist = targ.magnitude
  2326. if dist > 500 then
  2327. dist = 500
  2328. end
  2329. MouseLook = MouseLook * euler(mr(dist / (9.8 * multip)), 0, 0)
  2330. sball = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  2331. sball.Anchored = true
  2332. sball.CFrame = partcf.CFrame
  2333. smsh = mesh("SpecialMesh", sball, "Sphere", "nil", vt(0, 0, 0), vt(8, 8, 8))
  2334. table.insert(Effects, {MouseLook, "Shoot2", 100, partcf.Position, 3, 5, 0, sball, 5, multip})
  2335. end
  2336.  
  2337. Shootcannon2 = function(spread, multip, partcf)
  2338. MouseLook = cf((partcf.Position + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  2339. targ = MMouse.Hit.p - partcf.Position
  2340. dist = targ.magnitude
  2341. if dist > 500 then
  2342. dist = 500
  2343. end
  2344. MouseLook = MouseLook * euler(mr(dist / (9.8 * multip)), 0, 0)
  2345. sball = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  2346. sball.Anchored = true
  2347. sball.CFrame = partcf.CFrame
  2348. smsh = mesh("SpecialMesh", sball, "Sphere", "nil", vt(0, 0, 0), vt(7, 7, 7))
  2349. table.insert(Effects, {MouseLook, "Shoot2", 100, partcf.Position, 2, 4, 0, sball, 5, multip})
  2350. end
  2351.  
  2352. Shoot2 = function(spread, multip, partcf)
  2353. MouseLook = cf((partcf.Position + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  2354. targ = MMouse.Hit.p - partcf.Position
  2355. dist = targ.magnitude
  2356. if dist > 500 then
  2357. dist = 500
  2358. end
  2359. MouseLook = MouseLook * euler(mr(dist / (9.8 * multip)), 0, 0)
  2360. sball = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  2361. sball.Anchored = true
  2362. sball.CFrame = partcf.CFrame
  2363. smsh = mesh("SpecialMesh", sball, "Sphere", "nil", vt(0, 0, 0), vt(14, 14, 14))
  2364. table.insert(Effects, {MouseLook, "Shoot3", 100, partcf.Position, 10, 12, 0, sball, 5, multip})
  2365. end
  2366.  
  2367. ShootIce = function(partcf)
  2368. MouseLook = cf((partcf.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2369. targ = MMouse.Hit.p - partcf.Position
  2370. dist = targ.magnitude
  2371. if dist > 500 then
  2372. dist = 500
  2373. end
  2374. sball = part(3, effects, 0.5, 0, BrickColor.new("Cyan"), "Snowball", vt())
  2375. sball.Anchored = true
  2376. smsh = mesh("SpecialMesh", sball, "FileMesh", "1778999", vt(0, 0, 0), vt(1, 3, 1))
  2377. sball.CFrame = partcf.CFrame
  2378. partic1 = icicleparti1:Clone()
  2379. partic1.Parent = sball
  2380. partic1.Enabled = true
  2381. partic2 = icicleparti2:Clone()
  2382. partic2.Parent = sball
  2383. partic2.Enabled = true
  2384. so("333475957", sball, 1, 1)
  2385. table.insert(Effects, {MouseLook, "ShootIce", 100, partcf.Position, 10, 12, 0, sball, 10, multip, partic1, partic2})
  2386. end
  2387.  
  2388. findNearestTorso = function(pos, distance)
  2389. list = (game.Workspace:children())
  2390. torso = nil
  2391. dist = distance
  2392. temp, human, temp2 = nil, nil, nil
  2393. for x = 1, #list do
  2394. temp2 = list[x]
  2395. canfind = true
  2396. -- DECOMPILER ERROR at PC36: Unhandled construct in 'MakeBoolean' P1
  2397.  
  2398. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  2399. canfind = false
  2400. end
  2401. canfind = true
  2402. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  2403. temp = temp2:findFirstChild("Torso")
  2404. human = temp2:findFirstChild("Humanoid")
  2405. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2406. torso = temp
  2407. dist = (temp.Position - pos).magnitude
  2408. end
  2409. end
  2410. end
  2411. return torso, dist
  2412. end
  2413.  
  2414. DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
  2415. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2416. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2417. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2418. dur = Instance.new("NumberValue", d)
  2419. dur.Name = "Duration"
  2420. dur.Value = Duration
  2421. game:GetService("Debris"):AddItem(d, 20)
  2422. if Stat == "Damage" then
  2423. d.Name = "DecreaseAtk"
  2424. else
  2425. if Stat == "Defense" then
  2426. d.Name = "DecreaseDef"
  2427. else
  2428. if Stat == "Movement" then
  2429. d.Name = "DecreaseMvmt"
  2430. end
  2431. end
  2432. end
  2433. if Model:findFirstChild("Torso") ~= nil then
  2434. display = ""
  2435. if Stat == "Damage" then
  2436. if Amount > 0 then
  2437. display = "-Damage"
  2438. else
  2439. display = "+Damage"
  2440. end
  2441. else
  2442. if Stat == "Defense" then
  2443. if Amount > 0 then
  2444. display = "-Defense"
  2445. else
  2446. display = "+Defense"
  2447. end
  2448. else
  2449. if Stat == "Movement" then
  2450. if Amount > 0 then
  2451. display = "-Movement"
  2452. else
  2453. display = "+Movement"
  2454. end
  2455. end
  2456. end
  2457. end
  2458. end
  2459. if cangui == false then
  2460. showDamage(Model, display, "Debuff")
  2461. d.Value = Amount
  2462. end
  2463. end
  2464. end
  2465.  
  2466. GetDist = function(Part1, Part2, magni)
  2467. targ = Part1.Position - Part2.Position
  2468. mag = targ.magnitude
  2469. if mag <= magni then
  2470. return true
  2471. else
  2472. return false
  2473. end
  2474. end
  2475.  
  2476. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2477. for _,c in pairs(workspace:children()) do
  2478. hum = c:findFirstChild("Humanoid")
  2479. if hum ~= nil then
  2480. head = nil
  2481. for _,d in pairs(c:children()) do
  2482. if d.className == "Model" and ranged ~= true then
  2483. head = d:findFirstChild("Hitbox")
  2484. if d.Parent == Character then
  2485. break
  2486. end
  2487. if head ~= nil then
  2488. targ = head.Position - Part.Position
  2489. mag = targ.magnitude
  2490. if mag <= magni and c.Name ~= Player.Name then
  2491. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2492. ref.Anchored = true
  2493. ref.CFrame = cf(head.Position)
  2494. game:GetService("Debris"):AddItem(ref, 1)
  2495. hitnum = math.random(1, 5)
  2496. if hitnum == 1 then
  2497. so("199148971", ref, 1, 1)
  2498. else
  2499. if hitnum == 2 then
  2500. so("199149025", ref, 1, 1)
  2501. else
  2502. if hitnum == 3 then
  2503. so("199149072", ref, 1, 1)
  2504. else
  2505. if hitnum == 4 then
  2506. so("199149109", ref, 1, 1)
  2507. else
  2508. if hitnum == 5 then
  2509. so("199149119", ref, 1, 1)
  2510. end
  2511. end
  2512. end
  2513. end
  2514. end
  2515. StaggerHit.Value = true
  2516. end
  2517. end
  2518. end
  2519. do
  2520. if d.className == "Part" then
  2521. head = d
  2522. if head ~= nil then
  2523. targ = head.Position - Part.Position
  2524. mag = targ.magnitude
  2525. if mag <= magni and c.Name ~= Player.Name then
  2526. if stun == nil then
  2527. stun = math.random(5, 10)
  2528. end
  2529. Rang = nil
  2530. if Ranged == false then
  2531. Rang = true
  2532. end
  2533. stag = nil
  2534. if shbash == true then
  2535. stag = true
  2536. end
  2537. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2538. end
  2539. end
  2540. end
  2541. do
  2542. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2543.  
  2544. end
  2545. end
  2546. end
  2547. end
  2548. end
  2549. end
  2550.  
  2551. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2552. DecreaseStat(Character, Dec, DecAm, Dur)
  2553. for _,c in pairs(workspace:children()) do
  2554. hum = c:findFirstChild("Humanoid")
  2555. if hum ~= nil then
  2556. head = c:findFirstChild("Torso")
  2557. if head ~= nil then
  2558. targ = head.Position - Part.Position
  2559. mag = targ.magnitude
  2560. cando = true
  2561. if mag <= magni then
  2562. if Player.Neutral == false then
  2563. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2564. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2565. cando = true
  2566. else
  2567. cando = false
  2568. end
  2569. else
  2570. cando = false
  2571. end
  2572. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2573. cando = true
  2574. end
  2575. else
  2576. cando = false
  2577. end
  2578. if cando == true then
  2579. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2580. end
  2581. end
  2582. end
  2583. end
  2584. end
  2585. end
  2586.  
  2587. MagniDebuff = function(Part, magni, Dec, DecAm, Dur)
  2588. for _,c in pairs(workspace:children()) do
  2589. local hum = c:findFirstChild("Humanoid")
  2590. if hum ~= nil then
  2591. local head = c:findFirstChild("Torso")
  2592. if head ~= nil then
  2593. local targ = head.Position - Part.Position
  2594. local mag = targ.magnitude
  2595. if mag <= magni and c.Name ~= Player.Name and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and (game.Players:GetPlayerFromCharacter(head.Parent).TeamColor ~= Player.TeamColor or Player.Neutral == true) then
  2596. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2597. end
  2598. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2599. end
  2600. end
  2601. end
  2602. end
  2603.  
  2604. rayCast = function(Pos, Dir, Max, Ignore)
  2605. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2606. end
  2607.  
  2608. Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2609. LastPoint = Point
  2610. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2611. if LP == nil or P1 == nil then
  2612. return
  2613. end
  2614. effectsmsh = Instance.new("SpecialMesh")
  2615. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2616. effectsmsh.MeshType = "Head"
  2617. effectsmsh.Name = "Mesh"
  2618. effectsg = Instance.new("Part")
  2619. NoOutline(effectsg)
  2620. effectsg.formFactor = 3
  2621. effectsg.CanCollide = false
  2622. effectsg.Name = "Eff"
  2623. effectsg.Locked = true
  2624. effectsg.Anchored = true
  2625. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2626. effectsg.Parent = workspace
  2627. effectsmsh.Parent = effectsg
  2628. effectsg.BrickColor = BrickColor.new(Color)
  2629. effectsg.Reflectance = Ref
  2630. point1 = P1
  2631. mg = (LP.p - point1.p).magnitude
  2632. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2633. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2634. effectsmsh.Scale = Vector3.new(size, 1, size)
  2635. game:GetService("Debris"):AddItem(effectsg, 2)
  2636. if returnn then
  2637. return effectsg
  2638. end
  2639. if not returnn then
  2640. if thing1 == 1 then
  2641. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  2642. else
  2643. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2644. end
  2645. end
  2646. end
  2647.  
  2648. CFrameFromTopBack = function(at, top, back)
  2649. right = top:Cross(back)
  2650. 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)
  2651. end
  2652.  
  2653. Triangle = function(a, b, c)
  2654. edg1 = c - a:Dot(b - a.unit)
  2655. edg2 = a - b:Dot(c - b.unit)
  2656. edg3 = b - c:Dot(a - c.unit)
  2657. if edg1 <= b - a.magnitude and edg1 >= 0 then
  2658. a = a
  2659. else
  2660. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2661.  
  2662. if edg2 <= c - b.magnitude and edg2 >= 0 then
  2663. a = b
  2664. else
  2665. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2666.  
  2667. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2668.  
  2669. if edg3 <= a - c.magnitude and edg3 >= 0 then
  2670. a = c
  2671. else
  2672. assert(false, "unreachable")
  2673. end
  2674. end
  2675. end
  2676. len1 = c - a:Dot(b - a.unit)
  2677. len2 = b - a.magnitude - len1
  2678. width = a + b - a.unit * len1 - c.magnitude
  2679. maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2680. list = {}
  2681. if len1 > 0.01 then
  2682. w1 = Instance.new("WedgePart", m)
  2683. w1.Name = "Triangle"
  2684. game:GetService("Debris"):AddItem(w1, 5)
  2685. w1.Material = "SmoothPlastic"
  2686. w1.FormFactor = "Custom"
  2687. w1.BrickColor = BrickColor.new("Medium blue")
  2688. w1.Transparency = 0
  2689. w1.Reflectance = 0
  2690. w1.Material = "SmoothPlastic"
  2691. w1.CanCollide = false
  2692. NoOutline(w1)
  2693. sz = Vector3.new(0.2, width, len1)
  2694. w1.Size = sz
  2695. sp = Instance.new("SpecialMesh", w1)
  2696. sp.MeshType = "Wedge"
  2697. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2698. w1:BreakJoints()
  2699. w1.Anchored = true
  2700. w1.Parent = workspace
  2701. w1.Transparency = 0.7
  2702. table.insert(Effects, {w1, "Disappear", 0.05})
  2703. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2704. table.insert(list, w1)
  2705. end
  2706. do
  2707. if len2 > 0.01 then
  2708. w2 = Instance.new("WedgePart", m)
  2709. w2.Name = "Triangle"
  2710. game:GetService("Debris"):AddItem(w2, 5)
  2711. w2.Material = "SmoothPlastic"
  2712. w2.FormFactor = "Custom"
  2713. w2.BrickColor = BrickColor.new("Medium blue")
  2714. w2.Transparency = 0
  2715. w2.Reflectance = 0
  2716. w2.Material = "SmoothPlastic"
  2717. w2.CanCollide = false
  2718. NoOutline(w2)
  2719. sz = Vector3.new(0.2, width, len2)
  2720. w2.Size = sz
  2721. sp = Instance.new("SpecialMesh", w2)
  2722. sp.MeshType = "Wedge"
  2723. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2724. w2:BreakJoints()
  2725. w2.Anchored = true
  2726. w2.Parent = workspace
  2727. w2.Transparency = 0.7
  2728. table.insert(Effects, {w2, "Disappear", 0.05})
  2729. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2730. table.insert(list, w2)
  2731. end
  2732. do
  2733. return unpack(list)
  2734. end
  2735. end
  2736. end
  2737.  
  2738. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2739. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2740. prt.Anchored = true
  2741. prt.CFrame = cframe
  2742. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2743. game:GetService("Debris"):AddItem(prt, 10)
  2744. if Type == 1 or Type == nil then
  2745. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2746. else
  2747. if Type == 2 then
  2748. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2749. end
  2750. end
  2751. end
  2752.  
  2753. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2754. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2755. prt.Anchored = true
  2756. prt.CFrame = cframe
  2757. msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2758. game:GetService("Debris"):AddItem(prt, 10)
  2759. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2760. end
  2761.  
  2762. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2763. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2764. prt.Anchored = true
  2765. prt.CFrame = cframe
  2766. msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2767. game:GetService("Debris"):AddItem(prt, 10)
  2768. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2769. end
  2770.  
  2771. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2772. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2773. prt.Anchored = true
  2774. prt.CFrame = cframe
  2775. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2776. game:GetService("Debris"):AddItem(prt, 10)
  2777. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2778. end
  2779.  
  2780. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2781. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2782. prt.Anchored = true
  2783. prt.CFrame = cframe
  2784. msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2785. game:GetService("Debris"):AddItem(prt, 10)
  2786. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2787. end
  2788.  
  2789. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2790. prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  2791. prt.Anchored = true
  2792. prt.CFrame = cframe
  2793. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2794. game:GetService("Debris"):AddItem(prt, 10)
  2795. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2796. end
  2797.  
  2798. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2799. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2800. prt.Anchored = true
  2801. prt.CFrame = cframe
  2802. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2803. game:GetService("Debris"):AddItem(prt, 10)
  2804. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2805. end
  2806.  
  2807. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2808. prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2809. prt.Anchored = true
  2810. prt.CFrame = cframe
  2811. msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  2812. game:GetService("Debris"):AddItem(prt, 10)
  2813. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2814. end
  2815.  
  2816. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  2817. prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2818. prt.Anchored = true
  2819. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2820. game:GetService("Debris"):AddItem(prt, 10)
  2821. msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2822. num = math.random(10, 50) / 1000
  2823. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  2824. end
  2825.  
  2826. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2827. magz = (p0 - p1).magnitude
  2828. curpos = p0
  2829. trz = {-ofs, ofs}
  2830. for i = 1, tym do
  2831. li = Instance.new("Part", workspace)
  2832. li.TopSurface = 0
  2833. li.BottomSurface = 0
  2834. li.Anchored = true
  2835. li.Transparency = tra or 0.4
  2836. li.BrickColor = BrickColor.new(col)
  2837. li.formFactor = "Custom"
  2838. li.CanCollide = false
  2839. li.Size = Vector3.new(th, th, magz / tym)
  2840. ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2841. trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2842. if tym == i then
  2843. magz2 = (curpos - p1).magnitude
  2844. li.Size = Vector3.new(th, th, magz2)
  2845. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2846. else
  2847. do
  2848. do
  2849. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2850. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2851. game.Debris:AddItem(li, 10)
  2852. table.insert(Effects, {li, "Disappear", last})
  2853. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out DO_STMT
  2854.  
  2855. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2856.  
  2857. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_STMT
  2858.  
  2859. end
  2860. end
  2861. end
  2862. end
  2863. end
  2864.  
  2865. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2866. if hit.Parent == nil then
  2867. return
  2868. end
  2869. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2870. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2871. ref.Anchored = true
  2872. ref.CFrame = cf(hit.Position)
  2873. game:GetService("Debris"):AddItem(ref, 1)
  2874. hitnum = math.random(1, 5)
  2875. if hitnum == 1 then
  2876. so("199148971", ref, 1, 1)
  2877. else
  2878. if hitnum == 2 then
  2879. so("199149025", ref, 1, 1)
  2880. else
  2881. if hitnum == 3 then
  2882. so("199149072", ref, 1, 1)
  2883. else
  2884. if hitnum == 4 then
  2885. so("199149109", ref, 1, 1)
  2886. else
  2887. if hitnum == 5 then
  2888. so("199149119", ref, 1, 1)
  2889. end
  2890. end
  2891. end
  2892. end
  2893. end
  2894. StaggerHit.Value = true
  2895. end
  2896. h = hit.Parent:FindFirstChild("Humanoid")
  2897. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2898. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2899. return
  2900. end
  2901. if Player.Neutral == false then
  2902. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2903. return
  2904. end
  2905. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2906. return
  2907. end
  2908. end
  2909. c = Instance.new("ObjectValue")
  2910. c.Name = "creator"
  2911. c.Value = game:service("Players").LocalPlayer
  2912. c.Parent = h
  2913. RecentEnemy.Value = hit.Parent
  2914. game:GetService("Debris"):AddItem(c, 0.5)
  2915. minim = minim * Atk.Value
  2916. maxim = maxim * Atk.Value
  2917. Damage = 0
  2918. if minim == maxim then
  2919. Damage = maxim
  2920. else
  2921. Damage = math.random(minim, maxim)
  2922. end
  2923. blocked = false
  2924. enblock = nil
  2925. Stats = hit.Parent:findFirstChild("Stats")
  2926. if Stats == nil then
  2927. Character.Stats:Clone().Parent=hit.Parent
  2928. end
  2929. if Stats ~= nil then
  2930. Stats.Defense.Value=1
  2931. invis = Stats:findFirstChild("Invisibility")
  2932. isinvis = Stats:findFirstChild("IsInvisible")
  2933. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  2934. invis.Value = 0
  2935. end
  2936. enblock = Stats:findFirstChild("Block")
  2937. if enblock ~= nil and enblock.Value == true then
  2938. blocked = true
  2939. end
  2940. if Stats:findFirstChild("Defense") ~= nil then
  2941. Damage = Damage / Stats.Defense.Value
  2942. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2943. hitnum = math.random(1, 5)
  2944. if hitnum == 1 then
  2945. so("199149321", hit, 1, 1)
  2946. else
  2947. if hitnum == 2 then
  2948. so("199149338", hit, 1, 1)
  2949. else
  2950. if hitnum == 3 then
  2951. so("199149367", hit, 1, 1)
  2952. else
  2953. if hitnum == 4 then
  2954. so("199149409", hit, 1, 1)
  2955. else
  2956. if hitnum == 5 then
  2957. so("199149452", hit, 1, 1)
  2958. end
  2959. end
  2960. end
  2961. end
  2962. end
  2963. else
  2964. if ranged == false or ranged == nil and blocked ~= true then
  2965. hitnum = math.random(1, 6)
  2966. if hitnum == 1 then
  2967. so("199149137", hit, 1, 1)
  2968. else
  2969. if hitnum == 2 then
  2970. so("199149186", hit, 1, 1)
  2971. else
  2972. if hitnum == 3 then
  2973. so("199149221", hit, 1, 1)
  2974. else
  2975. if hitnum == 4 then
  2976. so("199149235", hit, 1, 1)
  2977. else
  2978. if hitnum == 5 then
  2979. so("199149269", hit, 1, 1)
  2980. else
  2981. if hitnum == 6 then
  2982. so("199149297", hit, 1, 1)
  2983. end
  2984. end
  2985. end
  2986. end
  2987. end
  2988. end
  2989. end
  2990. end
  2991. if Damage <= 3 and staghit == true and ranged ~= true then
  2992. StaggerHit.Value = true
  2993. end
  2994. end
  2995. if Stats:findFirstChild("Stun") ~= nil then
  2996. if blocked == true then
  2997. incstun = incstun / 2
  2998. end
  2999. if Stats.Stun.Value < Stats.StunThreshold.Value then
  3000. Stats.Stun.Value = Stats.Stun.Value + incstun
  3001. end
  3002. end
  3003. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3004. Stats.Stagger.Value = true
  3005. end
  3006. end
  3007. if blocked == true then
  3008. showDamage(hit.Parent, "Block", "Damage")
  3009. if ranged ~= true then
  3010. enblock.Value = false
  3011. Stagger.Value = true
  3012. hitnum = math.random(1, 2)
  3013. if hitnum == 1 then
  3014. so("199148933", hit, 1, 1)
  3015. else
  3016. if hitnum == 2 then
  3017. so("199148947", hit, 1, 1)
  3018. end
  3019. end
  3020. end
  3021. else
  3022. Damage = math.floor(Damage)
  3023. coroutine.resume(coroutine.create(function(Hum, Dam)
  3024. CurrentHealth = Hum.Health
  3025. hit.Parent.Humanoid:TakeDamage(Damage)
  3026. end
  3027. ), h, Damage)
  3028. if freeze == true then
  3029. --[[frS2 = freezeS:Clone()
  3030. frS2.Parent = hit.Parent
  3031. frS2.Disabled = false--]]
  3032. end
  3033. showDamage(hit.Parent, Damage, "Damage")
  3034. if DecreaseState ~= nil then
  3035. if DecreaseState == "Temporal" then
  3036. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3037. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  3038. else
  3039. if DecreaseState == "Temporal2" then
  3040. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3041. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3042. else
  3043. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3044. end
  3045. end
  3046. end
  3047. if Type == "NormalDecreaseMvmt1" then
  3048. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3049. end
  3050. if Type == "Knockdown" then
  3051. hum = hit.Parent.Humanoid
  3052. hum.PlatformStand = true
  3053. coroutine.resume(coroutine.create(function(HHumanoid)
  3054. swait(1)
  3055. HHumanoid.PlatformStand = false
  3056. end
  3057. ), hum)
  3058. angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3059. bodvol = Instance.new("BodyVelocity")
  3060. bodvol.velocity = angle * knockback
  3061. bodvol.P = 5000
  3062. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3063. bodvol.Parent = hit
  3064. rl = Instance.new("BodyAngularVelocity")
  3065. rl.P = 3000
  3066. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3067. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3068. rl.Parent = hit
  3069. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3070. game:GetService("Debris"):AddItem(rl, 0.5)
  3071. else
  3072. do
  3073. if Type == "Knockdown2" then
  3074. hum = hit.Parent.Humanoid
  3075. angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3076. bodvol = Instance.new("BodyVelocity")
  3077. bodvol.velocity = angle * knockback
  3078. bodvol.P = 5000
  3079. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3080. bodvol.Parent = hit
  3081. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3082. else
  3083. do
  3084. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3085. vp = Instance.new("BodyVelocity")
  3086. vp.P = 500
  3087. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3088. if KnockbackType == 1 then
  3089. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3090. else
  3091. if KnockbackType == 2 then
  3092. vp.velocity = Property.CFrame.lookVector * knockback
  3093. end
  3094. end
  3095. game:GetService("Debris"):AddItem(vp, 0.5)
  3096. if knockback > 0 then
  3097. vp.Parent = hit.Parent.Torso
  3098. end
  3099. end
  3100. debounce = Instance.new("BoolValue")
  3101. debounce.Name = "DebounceHit"
  3102. debounce.Parent = hit.Parent
  3103. debounce.Value = true
  3104. game:GetService("Debris"):AddItem(debounce, Delay)
  3105. c = Instance.new("ObjectValue")
  3106. c.Name = "creator"
  3107. c.Value = Player
  3108. c.Parent = h
  3109. game:GetService("Debris"):AddItem(c, 0.5)
  3110. CRIT = false
  3111. end
  3112. end
  3113. end
  3114. end
  3115. end
  3116. end
  3117. end
  3118.  
  3119. showDamage = function(Char, Dealt, Type)
  3120. m = Instance.new("Model")
  3121. m.Name = "Effect"
  3122. c = Instance.new("Part")
  3123. c.Transparency = 1
  3124. c.Name = "Head"
  3125. c.TopSurface = 0
  3126. c.BottomSurface = 0
  3127. c.formFactor = "Plate"
  3128. c.Size = Vector3.new(1, 0.4, 1)
  3129. b = Instance.new("BillboardGui", c)
  3130. b.Size = UDim2.new(5, 0, 5, 0)
  3131. b.AlwaysOnTop = true
  3132. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3133. if Type == "Damage" then
  3134. damgui.Font = "SourceSans"
  3135. if Dealt == "Block" then
  3136. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3137. else
  3138. if Dealt < 3 then
  3139. damgui.TextColor3 = BrickColor.new("White").Color
  3140. else
  3141. if Dealt >= 3 and Dealt < 20 then
  3142. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3143. else
  3144. damgui.TextColor3 = BrickColor.new("Really red").Color
  3145. damgui.Font = "SourceSansBold"
  3146. end
  3147. end
  3148. end
  3149. else
  3150. if Type == "Debuff" then
  3151. damgui.TextColor3 = BrickColor.new("White").Color
  3152. else
  3153. if Type == "Interrupt" then
  3154. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3155. else
  3156. if Type == "Heal" then
  3157. damgui.TextColor3 = BrickColor.new("Bright green").Color
  3158. end
  3159. end
  3160. end
  3161. end
  3162. damgui.TextScaled = true
  3163. ms = Instance.new("CylinderMesh")
  3164. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3165. ms.Parent = c
  3166. c.Reflectance = 0
  3167. Instance.new("BodyGyro").Parent = c
  3168. c.Parent = m
  3169. if Char:findFirstChild("Head") ~= nil then
  3170. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3171. else
  3172. if Char.Parent:findFirstChild("Head") ~= nil then
  3173. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3174. end
  3175. end
  3176. f = Instance.new("BodyPosition")
  3177. f.P = 2000
  3178. f.D = 100
  3179. f.maxForce = Vector3.new(545000, 545000, 545000)
  3180. if Type == "Damage" or Type == "Heal" then
  3181. f.position = c.Position + Vector3.new(0, 3, 0)
  3182. else
  3183. if Type == "Debuff" or Type == "Interrupt" then
  3184. f.position = c.Position + Vector3.new(0, 5, 0)
  3185. end
  3186. end
  3187. f.Parent = c
  3188. game:GetService("Debris"):AddItem(m, 5)
  3189. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3190. c.CanCollide = false
  3191. m.Parent = workspace
  3192. c.CanCollide = false
  3193. end
  3194.  
  3195. combo = 0
  3196. ob1d = function(mouse)
  3197. if spill == false then
  3198. spill = true
  3199. end
  3200. if attack == true or equipped == false then
  3201. return
  3202. end
  3203. hold = true
  3204. if mode == "Winter" then
  3205. attackcannon()
  3206. else
  3207. if combo == 0 then
  3208. combo = 1
  3209. attackone()
  3210. else
  3211. if combo == 1 then
  3212. combo = 2
  3213. attacktwo()
  3214. else
  3215. if combo == 2 then
  3216. combo = 3
  3217. attackthree()
  3218. else
  3219. if combo == 3 then
  3220. combo = 0
  3221. attackfour()
  3222. end
  3223. end
  3224. end
  3225. end
  3226. end
  3227. coroutine.resume(coroutine.create(function()
  3228. for i = 1, 50 do
  3229. if attack == false then
  3230. swait()
  3231. end
  3232. end
  3233. if attack == false then
  3234. combo = 0
  3235. end
  3236. end
  3237. ))
  3238. end
  3239.  
  3240. ob1u = function(mouse)
  3241. hold = false
  3242. end
  3243.  
  3244. buttonhold = false
  3245. fenbarmove1.MouseButton1Click:connect(do1)
  3246. fenbarmove2.MouseButton1Click:connect(do2)
  3247. fenbarmove3.MouseButton1Click:connect(do3)
  3248. fenbarmove4.MouseButton1Click:connect(do4)
  3249. eul = 0
  3250. equipped = false
  3251. key = function(key)
  3252. if key == "c" and doing3 == true then
  3253. doing3 = false
  3254. end
  3255. if attack == true then
  3256. return
  3257. end
  3258. if key == "f" and mode == "Gloves" then
  3259. pressedf = true
  3260. fnumb = 0
  3261. attack = true
  3262. if equipped == false then
  3263. equipped = true
  3264. RSH = ch.Torso["Right Shoulder"]
  3265. LSH = ch.Torso["Left Shoulder"]
  3266. RSH.Parent = nil
  3267. LSH.Parent = nil
  3268. RW.Name = "Right Shoulder"
  3269. RW.Part0 = ch.Torso
  3270. RW.C0 = cf(1.5, 0.5, 0)
  3271. RW.C1 = cf(0, 0.5, 0)
  3272. RW.Part1 = ch["Right Arm"]
  3273. RW.Parent = ch.Torso
  3274. LW.Name = "Left Shoulder"
  3275. LW.Part0 = ch.Torso
  3276. LW.C0 = cf(-1.5, 0.5, 0)
  3277. LW.C1 = cf(0, 0.5, 0)
  3278. LW.Part1 = ch["Left Arm"]
  3279. LW.Parent = ch.Torso
  3280. Animate.Parent = nil
  3281. equipanim()
  3282. else
  3283. equipped = false
  3284. hideanim()
  3285. LH.C1 = LHC1
  3286. RH.C1 = RHC1
  3287. Animate.Parent = Humanoid
  3288. swait(0)
  3289. RW.Parent = nil
  3290. LW.Parent = nil
  3291. RSH.Parent = player.Character.Torso
  3292. LSH.Parent = player.Character.Torso
  3293. end
  3294. attack = false
  3295. end
  3296. if equipped == false then
  3297. return
  3298. end
  3299. if key == "e" and (mana.Value >= 30 or mode == "Winter") then
  3300. WinterShooter()
  3301. end
  3302. if key == "z" then
  3303. do1()
  3304. end
  3305. if key == "x" then
  3306. do2()
  3307. end
  3308. if key == "c" then
  3309. do3()
  3310. end
  3311. if key == "v" then
  3312. do4()
  3313. end
  3314. end
  3315.  
  3316. key2 = function(key)
  3317. if key == "z" then
  3318. holde = false
  3319. end
  3320. end
  3321.  
  3322. s = function(mouse)
  3323. mouse.Button1Down:connect(function()
  3324. ob1d(mouse)
  3325. end
  3326. )
  3327. mouse.Button1Up:connect(function()
  3328. ob1u(mouse)
  3329. end
  3330. )
  3331. mouse.KeyDown:connect(key)
  3332. mouse.KeyUp:connect(key2)
  3333. player = Player
  3334. ch = Character
  3335. end
  3336.  
  3337. ds = function(mouse)
  3338. end
  3339.  
  3340. Bin.Selected:connect(s)
  3341. Bin.Deselected:connect(ds)
  3342. print("Tundrus loaded.")
  3343. mananum = 0
  3344. donum = 0
  3345. stunnum = 0
  3346. staggeranim = false
  3347. stunanim = false
  3348. walk = 0
  3349. walkforw = true
  3350. oldhealth = Humanoid.Health
  3351. while true do
  3352. swait()
  3353. col = Player.TeamColor
  3354. --[[for _,c in pairs(game.Teams:children()) do
  3355. if c.TeamColor == col and c.Name == "Juggernaut" then
  3356. isjugg = true
  3357. end
  3358. end--]]
  3359. effects.Parent = Character
  3360. if Humanoid.Health <= 0 then
  3361. attack = true
  3362. resumeControl()
  3363. modelzorz.Parent = workspace
  3364. game:GetService("Debris"):AddItem(modelzorz, 30)
  3365. for i = 1, #Weapon do
  3366. Weapon[i].Parent = modelzorz
  3367. Weapon[i].CanCollide = true
  3368. end
  3369. for i = 1, #Welds do
  3370. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3371. Welds[i].Parent = nil
  3372. else
  3373. Welds[i].Parent = cprt1
  3374. end
  3375. end
  3376. end
  3377. do
  3378. if fnumb < 21 then
  3379. fnumb = fnumb + 1
  3380. if pressedf == false then
  3381. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3382. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3383. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3384. else
  3385. if fnumb == 20 then
  3386. fenframe5.Parent = nil
  3387. print("daigui")
  3388. end
  3389. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3390. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3391. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3392. end
  3393. end
  3394. if Humanoid.Health < oldhealth then
  3395. damage = oldhealth - Humanoid.Health
  3396. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3397. ref.Anchored = true
  3398. ref.CFrame = cf(Torso.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  3399. game:GetService("Debris"):AddItem(ref, 5)
  3400. hitfloorsno, posfloorsno = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3401. if hitfloorsno ~= nil then
  3402. snow = part(3, effects, 0, 0, BrickColor.new("White"), "Snow", vt())
  3403. snow.Anchored = true
  3404. snow.Material = "Ice"
  3405. snow.CFrame = cf(posfloorsno)
  3406. smsh = mesh("CylinderMesh", snow, "", "", vt(0, 0, 0), vt(1, 2, 1))
  3407. table.insert(Effects, {snow, "LeakSnow", smsh, math.random(300, 600), 50, math.random(3000, 9000) / 100})
  3408. end
  3409. end
  3410. do
  3411. oldhealth = Humanoid.Health
  3412. if Stagger.Value == true and staggeranim == false then
  3413. coroutine.resume(coroutine.create(function()
  3414. staggeranim = true
  3415. while attack == true do
  3416. swait()
  3417. end
  3418. StaggerAnim()
  3419. StaggerHit.Value = false
  3420. Stagger.Value = false
  3421. staggeranim = false
  3422. end
  3423. ))
  3424. end
  3425. if StaggerHit.Value == true and staggeranim == false then
  3426. coroutine.resume(coroutine.create(function()
  3427. staggeranim = true
  3428. while attack == true do
  3429. swait()
  3430. end
  3431. StaggerHitt()
  3432. StaggerHit.Value = false
  3433. Stagger.Value = false
  3434. staggeranim = false
  3435. end
  3436. ))
  3437. end
  3438. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3439. Humanoid.WalkSpeed = 0
  3440. else
  3441. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3442. end
  3443. if StunT.Value <= Stun.Value and stunanim == false then
  3444. coroutine.resume(coroutine.create(function()
  3445. stunanim = true
  3446. while attack == true do
  3447. swait()
  3448. end
  3449. StunAnim()
  3450. Stun.Value = 0
  3451. stunanim = false
  3452. end
  3453. ))
  3454. end
  3455. stunnum2 = 40
  3456. if stunnum2 <= stunnum then
  3457. if 0 < Stun.Value then
  3458. Stun.Value = Stun.Value - 1
  3459. end
  3460. stunnum = 0
  3461. end
  3462. stunnum = stunnum + 1
  3463. if 0.5 <= donum then
  3464. handidle = true
  3465. else
  3466. if donum <= 0 then
  3467. handidle = false
  3468. end
  3469. end
  3470. if handidle == false then
  3471. donum = donum + 0.003
  3472. else
  3473. donum = donum - 0.003
  3474. end
  3475. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3476. local velderp = RootPart.Velocity.y
  3477. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3478. if equipped == true then
  3479. if Anim == "Walk" then
  3480. if walkforw == true then
  3481. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3482. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3483. if (attack == false and mode == "Gloves" and rarmmove == true) or mugdo == true then
  3484. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(-1, 0, 0), Mvmt.Value * 10 / 50)
  3485. else
  3486. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3487. end
  3488. if attack == false and mode == "Gloves" and larmmove == true then
  3489. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0.5, 0, 0), Mvmt.Value * 10 / 50)
  3490. else
  3491. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3492. end
  3493. else
  3494. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3495. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3496. if (attack == false and mode == "Gloves" and rarmmove == true) or mugdo == true then
  3497. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0.5, 0, 0), Mvmt.Value * 10 / 50)
  3498. else
  3499. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3500. end
  3501. if attack == false and mode == "Gloves" and larmmove == true then
  3502. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(-1, 0, 0), Mvmt.Value * 10 / 50)
  3503. else
  3504. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3505. end
  3506. end
  3507. else
  3508. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3509. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3510. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3511. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3512. end
  3513. if mode == "Winter" then
  3514. gunpos = vt(MMouse.Hit.p.x, Head.Position.Y, MMouse.Hit.p.z)
  3515. gairo.cframe = cf(Head.Position, gunpos)
  3516. cwld33a.C0 = cwld33a.C0 * euler(0, -0.08, 0)
  3517. end
  3518. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3519. Anim = "Jump"
  3520. if attack == false then
  3521. if mode == "Gloves" then
  3522. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3523. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3524. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3525. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.2), 0.2)
  3526. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  3527. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3528. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3529. else
  3530. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.15)
  3531. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.15)
  3532. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.15)
  3533. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.15)
  3534. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.15)
  3535. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.15)
  3536. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.15)
  3537. end
  3538. end
  3539. else
  3540. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3541. Anim = "Fall"
  3542. if attack == false then
  3543. if mode == "Gloves" then
  3544. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3545. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3546. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3547. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  3548. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  3549. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3550. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3551. else
  3552. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.15)
  3553. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.15)
  3554. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.15)
  3555. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.15)
  3556. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.15)
  3557. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.15)
  3558. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.15)
  3559. end
  3560. end
  3561. else
  3562. if torvel < 1 and hitfloor ~= nil then
  3563. Anim = "Idle"
  3564. if attack == false then
  3565. if mode == "Gloves" then
  3566. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.05, 0, 0), 0.15)
  3567. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.15)
  3568. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4 - (donum) / 3, 0, 0.2 + (donum) / 3) * euler(0, -0.3, 0), 0.15)
  3569. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4 - (donum) / 3, 0, -0.2 - (donum) / 3), 0.15)
  3570. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.2)
  3571. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.2)
  3572. else
  3573. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.15)
  3574. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.15)
  3575. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.15)
  3576. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.15)
  3577. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.15)
  3578. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, -0.4), 0.15)
  3579. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.15)
  3580. end
  3581. end
  3582. else
  3583. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3584. Anim = "Walk"
  3585. walk = walk + 1
  3586. if 15 - 5 * Mvmt.Value <= walk then
  3587. walk = 0
  3588. if walkforw == true then
  3589. walkforw = false
  3590. else
  3591. if walkforw == false then
  3592. walkforw = true
  3593. end
  3594. end
  3595. end
  3596. if attack == false then
  3597. if mode == "Gloves" then
  3598. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  3599. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3600. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.2)
  3601. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.2)
  3602. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  3603. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  3604. else
  3605. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.15)
  3606. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.15)
  3607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.15)
  3608. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.15)
  3609. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.15)
  3610. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.2) * euler(0, 1.57, 0) * euler(0, 0.5, 0) * euler(-0.2, 0, -0.4), 0.15)
  3611. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, 0.1), 0.15)
  3612. end
  3613. end
  3614. else
  3615. if 30 <= torvel and hitfloor ~= nil then
  3616. Anim = "Run"
  3617. if attack == false then
  3618. if mode == "Gloves" then
  3619. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  3620. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3621. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.2)
  3622. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.2)
  3623. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  3624. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  3625. else
  3626. chandlewld.C0 = clerp(chandlewld.C0, euler(-0.2, 0, 0) * cf(0, 1, 0), 0.15)
  3627. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.15)
  3628. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1), 0.15)
  3629. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0.1) * euler(0.4, 0, 0.2) * euler(0, 1.1, 0), 0.15)
  3630. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0.6, 0, 0.8) * euler(0, -1, 0), 0.15)
  3631. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.05), 0.15)
  3632. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, -0.05), 0.15)
  3633. end
  3634. end
  3635. end
  3636. end
  3637. end
  3638. end
  3639. end
  3640. end
  3641. if 0 < #Effects then
  3642. for e = 1, #Effects do
  3643. if Effects[e] ~= nil then
  3644. local Thing = Effects[e]
  3645. if Thing ~= nil then
  3646. local Part = Thing[1]
  3647. local Mode = Thing[2]
  3648. local Delay = Thing[3]
  3649. local IncX = Thing[4]
  3650. local IncY = Thing[5]
  3651. local IncZ = Thing[6]
  3652. if Thing[2] == "CylinderClang" then
  3653. if Thing[3] <= 1 then
  3654. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3655. Thing[7] = Thing[1].CFrame
  3656. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  3657. Thing[8] = Thing[7]
  3658. Thing[3] = Thing[3] + Thing[4]
  3659. else
  3660. Part.Parent = nil
  3661. table.remove(Effects, e)
  3662. end
  3663. end
  3664. if Thing[2] == "showDamage" then
  3665. if Thing[6] < Thing[5] then
  3666. Thing[6] = Thing[6] + 1
  3667. else
  3668. if Thing[6] < Thing[7] then
  3669. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3670. Thing[6] = Thing[6] + 1
  3671. else
  3672. if Thing[6] < Thing[8] then
  3673. Thing[6] = Thing[6] + 1
  3674. else
  3675. if Thing[6] < Thing[9] then
  3676. Thing[6] = Thing[6] + 1
  3677. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3678. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3679. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3680. else
  3681. Thing[1].Parent = nil
  3682. table.remove(Effects, e)
  3683. end
  3684. end
  3685. end
  3686. end
  3687. end
  3688. if Thing[2] == "CloneEf" then
  3689. if Thing[3] <= 500 then
  3690. Thing[3] = Thing[3] + 1
  3691. if 10 <= Thing[4] then
  3692. Thing[4] = 0
  3693. Clone()
  3694. end
  3695. Thing[4] = Thing[4] + 1
  3696. else
  3697. table.remove(Effects, e)
  3698. end
  3699. end
  3700. if Thing[2] == "ShootIce" then
  3701. local Look = Thing[1]
  3702. local hit, pos = rayCast(Thing[4], Look.lookVector, Thing[9], Character)
  3703. local mag = (Thing[4] - pos).magnitude
  3704. Thing[8].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(-1.57, 0, 0)
  3705. Thing[4] = Thing[4] + Look.lookVector * Thing[9]
  3706. Thing[3] = Thing[3] - 1
  3707. if hit ~= nil then
  3708. Thing[3] = 0
  3709. DecreaseStat(hit.Parent, "Movement", 0.02, 50, false)
  3710. ref = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3711. ref.Anchored = true
  3712. ref.CFrame = cf(pos)
  3713. game:GetService("Debris"):AddItem(ref, 1)
  3714. ref2 = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt(5, 5, 5))
  3715. ref2.Anchored = true
  3716. ref2.CFrame = cf(pos)
  3717. so("333475981", ref2, 1, 1.4)
  3718. game:GetService("Debris"):AddItem(ref2, 5)
  3719. fparti1 = freezeparti1:Clone()
  3720. fparti1.Parent = ref2
  3721. fparti1.Enabled = true
  3722. fparti2 = freezeparti2:Clone()
  3723. fparti2.Parent = ref2
  3724. fparti2.Enabled = true
  3725. table.insert(Effects, {ref2, "IceParti", 20, fparti1, fparti2})
  3726. freeze = true
  3727. MagniDamage(ref, 10, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(10, 15)), nil, nil, true)
  3728. freeze = false
  3729. for i = 1, 5 do
  3730. BreakEffect(BrickColor.new("Cyan"), ref.CFrame, math.random(20, 80) / 100, math.random(2, 10), math.random(20, 80) / 100)
  3731. end
  3732. for i = 1, 5 do
  3733. local freezepart = part(3, workspace, 0.5, math.random(10, 30) / 100, BrickColor.new("Bright blue"), "Ice Part", vt(math.random(30, 100) / 100, math.random(30, 100) / 100, math.random(30, 100) / 100))
  3734. freezepart.CanCollide = true
  3735. freezepart.CFrame = ref.CFrame * cf(math.random(-300, 300) / 100, math.random(0, 200) / 100, math.random(-300, 300) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3736. freezepart.Velocity = vt(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3737. game:GetService("Debris"):AddItem(freezepart, 5)
  3738. end
  3739. end
  3740. if Thing[3] <= 0 then
  3741. Thing[8].Transparency = 1
  3742. Thing[11].Enabled = false
  3743. Thing[12].Enabled = false
  3744. game:GetService("Debris"):AddItem(Thing[8], 5)
  3745. table.remove(Effects, e)
  3746. end
  3747. end
  3748. if Thing[2] == "Shoot" then
  3749. local Look = Thing[1]
  3750. Thing[1] = Thing[1] * euler(mr(-1), 0, 0)
  3751. if Thing[5] < 6 then
  3752. Thing[5] = Thing[5] + 0.05
  3753. Thing[6] = Thing[6] + 0.05
  3754. end
  3755. local hit, pos = rayCast(Thing[4], Look.lookVector, Thing[9] * Thing[10], Character)
  3756. local mag = (Thing[4] - pos).magnitude
  3757. Thing[8].CFrame = CFrame.new((Thing[4] + pos) / 2, pos)
  3758. Thing[4] = Thing[4] + Look.lookVector * Thing[9] * Thing[10]
  3759. Thing[3] = Thing[3] - 1
  3760. if hit ~= nil then
  3761. Thing[3] = 0
  3762. DecreaseStat(hit.Parent, "Movement", 0.02, 50, false)
  3763. Damagefunc(hit, Thing[5] * 1.4, Thing[6] * 1.4, Thing[7], "Normal", RootPart, 0.03, 2, (math.random(1, 3)), nil, nil, true)
  3764. ref = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3765. ref.Anchored = true
  3766. ref.CFrame = cf(pos)
  3767. game:GetService("Debris"):AddItem(ref, 1)
  3768. MagniDamage(ref, 3, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 3)), nil, nil, true)
  3769. so("333511851", ref, 0.8, 0.9)
  3770. for i = 1, math.random(2, 3) do
  3771. local sball2 = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  3772. sball2.CFrame = ref.CFrame
  3773. sball2.Anchored = false
  3774. game:GetService("Debris"):AddItem(sball2, 3)
  3775. smsh = mesh("SpecialMesh", sball2, "Sphere", "nil", vt(0, 0, 0), vt(math.random(10, 20) / 10, math.random(10, 20) / 10, math.random(10, 20) / 10))
  3776. sball2.Velocity = vt(math.random(-20, 20), math.random(20, 50), math.random(-20, 20))
  3777. end
  3778. end
  3779. if Thing[3] <= 0 then
  3780. Thing[8].Parent = nil
  3781. table.remove(Effects, e)
  3782. end
  3783. end
  3784. if Thing[2] == "Shoot2" then
  3785. local Look = Thing[1]
  3786. Thing[1] = Thing[1] * euler(mr(-1), 0, 0)
  3787. if Thing[5] < 10 then
  3788. Thing[5] = Thing[5] + 0.1
  3789. Thing[6] = Thing[6] + 0.1
  3790. end
  3791. local hit, pos = rayCast(Thing[4], Look.lookVector, Thing[9] * Thing[10], Character)
  3792. local mag = (Thing[4] - pos).magnitude
  3793. Thing[8].CFrame = CFrame.new((Thing[4] + pos) / 2, pos)
  3794. Thing[4] = Thing[4] + Look.lookVector * Thing[9] * Thing[10]
  3795. Thing[3] = Thing[3] - 1
  3796. if hit ~= nil then
  3797. Thing[3] = 0
  3798. DecreaseStat(hit.Parent, "Movement", 0.02, 70, false)
  3799. Damagefunc(hit, Thing[5] * 1.4, Thing[6] * 1.4, Thing[7], "Normal", RootPart, 0.03, 2, (math.random(1, 3)), nil, nil, true)
  3800. ref = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3801. ref.Anchored = true
  3802. ref.CFrame = cf(pos)
  3803. game:GetService("Debris"):AddItem(ref, 1)
  3804. MagniDamage(ref, 3, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 3)), nil, nil, true)
  3805. so("333511851", ref, 0.8, 0.9)
  3806. for i = 1, math.random(3, 4) do
  3807. local sball2 = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  3808. sball2.CFrame = ref.CFrame
  3809. sball2.Anchored = false
  3810. game:GetService("Debris"):AddItem(sball2, 3)
  3811. smsh = mesh("SpecialMesh", sball2, "Sphere", "nil", vt(0, 0, 0), vt(math.random(10, 20) / 10, math.random(10, 20) / 10, math.random(10, 20) / 10))
  3812. sball2.Velocity = vt(math.random(-20, 20), math.random(20, 50), math.random(-20, 20))
  3813. end
  3814. end
  3815. if Thing[3] <= 0 then
  3816. Thing[8].Parent = nil
  3817. table.remove(Effects, e)
  3818. end
  3819. end
  3820. if Thing[2] == "Shoot3" then
  3821. local Look = Thing[1]
  3822. Thing[1] = Thing[1] * euler(mr(-1), 0, 0)
  3823. local hit, pos = rayCast(Thing[4], Look.lookVector, Thing[9] * Thing[10], Character)
  3824. local mag = (Thing[4] - pos).magnitude
  3825. Thing[8].CFrame = CFrame.new((Thing[4] + pos) / 2, pos)
  3826. Thing[4] = Thing[4] + Look.lookVector * Thing[9] * Thing[10]
  3827. Thing[3] = Thing[3] - 1
  3828. if hit ~= nil then
  3829. Thing[3] = 0
  3830. DecreaseStat(hit.Parent, "Movement", 0.02, 50, false)
  3831. Damagefunc(hit, Thing[5] * 1.4, Thing[6] * 1.4, Thing[7], "Normal", RootPart, 0.03, 2, (math.random(1, 3)), nil, nil, true, "Movement", 0.1, 100)
  3832. ref = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3833. ref.Anchored = true
  3834. ref.CFrame = cf(pos)
  3835. game:GetService("Debris"):AddItem(ref, 1)
  3836. MagniDamage(ref, 3, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 3)), nil, nil, true, "Movement", 0.1, 100)
  3837. so("333511851", ref, 0.8, 0.9)
  3838. MagniDamage(ref, 14, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 3)), nil, nil, true, "Movement", 0.3, 100)
  3839. for i = 1, math.random(6, 8) do
  3840. local sballn = part(3, effects, 0, 0, BrickColor.new(NewCol3), "Snowball", vt())
  3841. sballn.Anchored = true
  3842. smshn = mesh("SpecialMesh", sballn, "Sphere", "nil", vt(0, 0, 0), vt(5, 5, 5))
  3843. target = findNearestTorso(ref.Position, 100000)
  3844. if target ~= nil then
  3845. table.insert(Effects, {cf(ref.Position, target.Position + Vector3.new(math.random(-400, 400) / 100, math.random(-400, 400) / 100, math.random(-400, 400) / 100)) * euler(mr(dist / 7.84), 0, 0), "Shoot", 100, ref.Position + vt(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100), 3, 4, 0, sballn, 5, 0.8})
  3846. end
  3847. end
  3848. end
  3849. if Thing[3] <= 0 then
  3850. Thing[8].Parent = nil
  3851. table.remove(Effects, e)
  3852. end
  3853. end
  3854. if Thing[2] == "IceParti" then
  3855. if 0 < Thing[3] then
  3856. Thing[3] = Thing[3] - 1
  3857. else
  3858. Thing[4].Enabled = false
  3859. Thing[5].Enabled = false
  3860. table.remove(Effects, e)
  3861. end
  3862. end
  3863. if Thing[2] == "LeakSnow" then
  3864. local hitfloorsno2, posfloorsno2 = rayCast(Thing[1].Position + vt(0, 1, 0), CFrame.new(Thing[1].Position, Thing[1].Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3865. if hitfloorsno2 ~= nil then
  3866. Thing[1].CFrame = cf(posfloorsno2)
  3867. end
  3868. if 10 < Thing[4] then
  3869. Thing[4] = Thing[4] - 1
  3870. if Thing[3].Scale.X < Thing[6] then
  3871. Thing[3].Scale = Thing[3].Scale + vt(0.8, 0, 0.8)
  3872. end
  3873. if 50 < Thing[5] then
  3874. size = Thing[3].Scale.X / 10
  3875. MagniDebuff(Thing[1], size, "Movement", 0.05, 100)
  3876. MagniDebuff(Thing[1], size, "Defense", 0.05, 50)
  3877. Thing[5] = 0
  3878. end
  3879. Thing[5] = Thing[5] + 1
  3880. else
  3881. if 0 < Thing[4] then
  3882. Thing[4] = Thing[4] - 1
  3883. Thing[1].Transparency = Thing[1].Transparency + 0.1
  3884. else
  3885. Thing[1].Parent = nil
  3886. table.remove(Effects, e)
  3887. end
  3888. end
  3889. end
  3890. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "Shoot" and Thing[2] ~= "Shoot2" and Thing[2] ~= "Shoot3" and Thing[2] ~= "ShootIce" and Thing[2] ~= "IceParti" and Thing[2] ~= "LeakSnow" then
  3891. if Thing[1].Transparency <= 1 then
  3892. if Thing[2] == "Block1" then
  3893. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3894. Mesh = Thing[7]
  3895. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3896. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3897. else
  3898. if Thing[2] == "Block2" then
  3899. Thing[1].CFrame = Thing[1].CFrame
  3900. Mesh = Thing[7]
  3901. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3902. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3903. else
  3904. if Thing[2] == "Cylinder" then
  3905. Mesh = Thing[7]
  3906. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3907. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3908. else
  3909. if Thing[2] == "Shatter" then
  3910. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3911. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  3912. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  3913. Thing[6] = Thing[6] + Thing[5]
  3914. else
  3915. if Thing[2] == "Blood" then
  3916. Mesh = Thing[7]
  3917. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3918. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3919. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3920. else
  3921. if Thing[2] == "Elec" then
  3922. Mesh = Thing[7]
  3923. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3924. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3925. else
  3926. if Thing[2] == "Disappear" then
  3927. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3928. end
  3929. end
  3930. end
  3931. end
  3932. end
  3933. end
  3934. end
  3935. else
  3936. Part.Parent = nil
  3937. table.remove(Effects, e)
  3938. end
  3939. end
  3940. end
  3941. end
  3942. end
  3943. end
  3944. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3945. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3946. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3947. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3948. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3949. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3950. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3951. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3952. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3953. for _,c in pairs(Decrease:children()) do
  3954. if (c:findFirstChild("Duration")) ~= nil then
  3955. c.Duration.Value = c.Duration.Value - 1
  3956. if c.Duration.Value <= 0 then
  3957. c.Parent = nil
  3958. end
  3959. end
  3960. if c.Name == "DecreaseAtk" then
  3961. decreaseatk = decreaseatk + c.Value
  3962. else
  3963. if c.Name == "DecreaseDef" then
  3964. decreasedef = decreasedef + c.Value
  3965. else
  3966. if c.Name == "DecreaseMvmt" then
  3967. decreasemvmt = decreasemvmt + c.Value
  3968. end
  3969. end
  3970. end
  3971. end
  3972. Atk.Value = 1 - (decreaseatk)
  3973. if Atk.Value <= 0 then
  3974. Atk.Value = 0
  3975. end
  3976. Def.Value = 1 - (decreasedef)
  3977. if Def.Value <= 0 then
  3978. Def.Value = 0.01
  3979. end
  3980. Mvmt.Value = 1 - (decreasemvmt)
  3981. if Mvmt.Value <= 0 then
  3982. Mvmt.Value = 0
  3983. end
  3984. decreaseatk = 0
  3985. decreasedef = 0
  3986. decreasemvmt = 0
  3987. AtkVal = Atk.Value * 100
  3988. AtkVal = math.floor(AtkVal)
  3989. AtkVal = AtkVal / 100
  3990. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3991. DefVal = Def.Value * 100
  3992. DefVal = math.floor(DefVal)
  3993. DefVal = DefVal / 100
  3994. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3995. MvmtVal = Mvmt.Value * 100
  3996. MvmtVal = math.floor(MvmtVal)
  3997. MvmtVal = MvmtVal / 100
  3998. if Rooted.Value == true then
  3999. MvmtVal = 0
  4000. end
  4001. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4002. if StunT.Value <= Stun.Value then
  4003. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4004. else
  4005. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / 100, 0)), nil, 1, 0.4, true)
  4006. end
  4007. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4008. if mana.Value <= 0 and attack == false and mode == "Winter" then
  4009. coroutine.resume(coroutine.create(function()
  4010. WinterShooter()
  4011. end
  4012. ))
  4013. end
  4014. if mana.Value < 0 then
  4015. mana.Value = 0
  4016. end
  4017. if 100 <= mana.Value then
  4018. mana.Value = 100
  4019. else
  4020. if mananum <= manainc then
  4021. mananum = mananum + 1
  4022. else
  4023. mananum = 0
  4024. mana.Value = mana.Value + 1
  4025. end
  4026. end
  4027. for i = 1, #cooldowns do
  4028. if cooldownmax <= cooldowns[i] then
  4029. cooldowns[i] = cooldownmax
  4030. else
  4031. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4032. end
  4033. end
  4034. end
  4035. end
  4036. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement