DontAskme

tunarus

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