istealscripts

Mechanic Gauntlet

Mar 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 173.91 KB | None | 0 0
  1. wait()
  2. Player = game:GetService("Players").LocalPlayer
  3. cheatsheetplr = game.Players.LocalPlayer
  4. i = Instance.new("NumberValue", cheatsheetplr )
  5. i.Name = "FPSCH"
  6. Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
  7. script.Parent = Bin
  8. Character = Player.Character
  9. PlayerGui = Player.PlayerGui
  10. Backpack = Player.Backpack
  11. Torso = Character.Torso
  12. Head = Character.Head
  13. Humanoid = Character.Humanoid
  14. LeftArm = Character["Left Arm"]
  15. LeftLeg = Character["Left Leg"]
  16. RightArm = Character["Right Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LS = Torso["Left Shoulder"]
  19. LH = Torso["Left Hip"]
  20. RS = Torso["Right Shoulder"]
  21. RH = Torso["Right Hip"]
  22. Neck = Torso.Neck
  23. it = Instance.new
  24. vt = Vector3.new
  25. cf = CFrame.new
  26. euler = CFrame.fromEulerAnglesXYZ
  27. angles = CFrame.Angles
  28. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  29. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  30. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  32. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  33. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34. RootPart = Character.HumanoidRootPart
  35. RootJoint = RootPart.RootJoint
  36. RootCF = euler(-1.57, 0, 3.14)
  37. attack = false
  38. attackdebounce = false
  39. MMouse = Player:GetMouse()
  40. combo = 0
  41. local idle = 0
  42. local Anim = "Idle"
  43. local Effects = {}
  44. local Weapon = {}
  45. local Welds = {}
  46. local decreaseatk = 0
  47. local decreasedef = 0
  48. local decreasemvmt = 0
  49. local RailgunTarget, CannonTarget, BladesTarget = nil, nil, nil
  50. local railgunattack = false
  51. local cannonattack = false
  52. local tribladesattack = false
  53. local givingarmor = false
  54. local givingrailgun = false
  55. local givingplasma = false
  56. local givingblades = false
  57. local Target = nil
  58. local move1 = "(Z)\nRailgun Armor"
  59. local move2 = "(X)\nPlasma Cannon Armor"
  60. local move3 = "(C)\nTri-Blades Armor"
  61. local move4 = "(V)\nIon Cannon Strike"
  62. local cooldowns = {}
  63. local cooldown1 = 100
  64. table.insert(cooldowns, cooldown1)
  65. local cooldown2 = 100
  66. table.insert(cooldowns, cooldown2)
  67. local cooldown3 = 100
  68. table.insert(cooldowns, cooldown3)
  69. local cooldown4 = 100
  70. table.insert(cooldowns, cooldown4)
  71. local cooldownsadd = {}
  72. local cooldownadd1 = 0.3
  73. table.insert(cooldownsadd, cooldownadd1)
  74. local cooldownadd2 = 0.4
  75. table.insert(cooldownsadd, cooldownadd2)
  76. local cooldownadd3 = 0.25
  77. table.insert(cooldownsadd, cooldownadd3)
  78. local cooldownadd4 = 0.0475
  79. table.insert(cooldownsadd, cooldownadd4)
  80. local cooldownmax = 100
  81. local manualguardend = false
  82. player = nil
  83. RSH = nil
  84. RW = Instance.new("Motor")
  85. LW = Instance.new("Motor")
  86. RW.Name = "Right Shoulder"
  87. LW.Name = "Left Shoulder"
  88. LH = Torso["Left Hip"]
  89. RH = Torso["Right Hip"]
  90. TorsoColor = Torso.BrickColor
  91. TorsoRed = TorsoColor.Color.r
  92. TorsoGreen = TorsoColor.Color.g
  93. TorsoBlue = TorsoColor.Color.b
  94. NewCol = Color3.new(0.3, TorsoGreen, 0.3)
  95. NewCol2 = Color3.new(TorsoRed, TorsoGreen, TorsoBlue)
  96. ArtificialHB = Instance.new("BindableEvent", script)
  97. ArtificialHB.Name = "Heartbeat"
  98.  
  99. script:WaitForChild("Heartbeat")
  100.  
  101. frame = 1 / 40
  102. tf = 0
  103. allowframeloss = true
  104. tossremainder = false
  105. lastframe = tick()
  106. script.Heartbeat:Fire()
  107.  
  108. game:GetService("RunService").Heartbeat:connect(function(s, p)
  109. tf = tf + s
  110. if tf >= frame then
  111. if allowframeloss then
  112. script.Heartbeat:Fire()
  113. lastframe = tick()
  114. else
  115. for i = 1, math.floor(tf / frame) do
  116. script.Heartbeat:Fire()
  117. end
  118. lastframe = tick()
  119. end
  120. if tossremainder then
  121. tf = 0
  122. else
  123. tf = tf - frame * math.floor(tf / frame)
  124. end
  125. end
  126. end)
  127.  
  128. function swait(num)
  129. if num == 0 or num == nil then
  130. ArtificialHB.Event:wait()
  131. else
  132. for i = 0, num do
  133. ArtificialHB.Event:wait()
  134. end
  135. end
  136. end
  137. if Player:findFirstChild("Color1") ~= nil then
  138. NewCol = Player.Color1.Value
  139. end
  140. if Player:findFirstChild("Color2") ~= nil then
  141. NewCol2 = Player.Color2.Value
  142. end
  143. local mdec = Instance.new("NumberValue", Decrease)
  144. mdec.Name = "DecreaseDef"
  145. mdec.Value = 0.4
  146. local mdec2 = Instance.new("NumberValue", Decrease)
  147. mdec2.Name = "DecreaseMvmt"
  148. mdec2.Value = 0.1
  149. local Animate = Character.Animate
  150. local animation = Instance.new("Animation")
  151. animation.AnimationId = "http://www.roblox.com/Asset?ID=180435571"
  152. local animTrack = Humanoid:LoadAnimation(animation)
  153. local canjump = true
  154. removeControl = function()
  155. canjump = false
  156. end
  157. resumeControl = function()
  158. canjump = true
  159. end
  160. Player.Character.Humanoid.Changed:connect(function()
  161. if canjump == false then
  162. Player.Character.Humanoid.Jump = false
  163. end
  164. end)
  165. createpassgui = function(parent)
  166. print("makegui111")
  167. local g = Instance.new("ScreenGui", parent)
  168. local f = Instance.new("Frame", g)
  169. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  170. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  171. f.Style = "DropShadow"
  172. local t = Instance.new("TextBox", f)
  173. t.BackgroundColor3 = Color3.new(0, 0, 0)
  174. t.BackgroundTransparency = 0.5
  175. t.BorderSizePixel = 0
  176. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  177. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  178. t.Font = "SourceSansLight"
  179. t.Text = "Enter Access Code."
  180. t.TextScaled = true
  181. t.TextColor3 = Color3.new(1, 1, 1)
  182. t.TextStrokeTransparency = 0
  183. local t2 = Instance.new("TextButton", f)
  184. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  185. t2.BackgroundTransparency = 0.5
  186. t2.BorderSizePixel = 0
  187. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  188. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  189. t2.TextScaled = true
  190. t2.Font = "SourceSansLight"
  191. t2.Text = "Submit"
  192. t2.TextColor3 = Color3.new(1, 1, 1)
  193. t2.TextStrokeTransparency = 0
  194. print("done1")
  195. return t2
  196. end
  197.  
  198. if Character:findFirstChild("Gear Gauntlet", true) ~= nil then
  199. Character:findFirstChild("Gear Gauntlet", true).Parent = nil
  200. end
  201. if Character:findFirstChild("Railgun", true) ~= nil then
  202. Character:findFirstChild("Railgun", true).Parent = nil
  203. end
  204. if Character:findFirstChild("Plasma Cannon", true) ~= nil then
  205. Character:findFirstChild("Plasma Cannon", true).Parent = nil
  206. end
  207. if Character:findFirstChild("Tri-Blades", true) ~= nil then
  208. Character:findFirstChild("Tri-Blades", true).Parent = nil
  209. end
  210. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  211. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  212. end
  213. if Character:findFirstChild("Stats", true) ~= nil then
  214. Character:findFirstChild("Stats", true).Parent = nil
  215. end
  216. local Stats = Instance.new("BoolValue")
  217. Stats.Name = "Stats"
  218. Stats.Parent = Character
  219. local Atk = Instance.new("NumberValue")
  220. Atk.Name = "Damage"
  221. Atk.Parent = Stats
  222. Atk.Value = 1
  223. local Def = Instance.new("NumberValue")
  224. Def.Name = "Defense"
  225. Def.Parent = Stats
  226. Def.Value = 1
  227. local Mvmt = Instance.new("NumberValue")
  228. Mvmt.Name = "Movement"
  229. Mvmt.Parent = Stats
  230. Mvmt.Value = 1
  231. local Block = Instance.new("BoolValue")
  232. Block.Name = "Block"
  233. Block.Parent = Stats
  234. Block.Value = false
  235. local Stun = Instance.new("NumberValue")
  236. Stun.Name = "Stun"
  237. Stun.Parent = Stats
  238. Stun.Value = 0
  239. local StunT = Instance.new("NumberValue")
  240. StunT.Name = "StunThreshold"
  241. StunT.Parent = Stats
  242. StunT.Value = 100
  243. local Rooted = Instance.new("BoolValue")
  244. Rooted.Name = "Rooted"
  245. Rooted.Parent = Stats
  246. Rooted.Value = false
  247. local Decrease = Instance.new("BoolValue")
  248. Decrease.Name = "Decrease"
  249. Decrease.Parent = Stats
  250. Decrease.Value = false
  251. local Stunned = Instance.new("BoolValue")
  252. Stunned.Name = "Stunned"
  253. Stunned.Parent = Stats
  254. Stunned.Value = false
  255. local Stagger = Instance.new("BoolValue")
  256. Stagger.Name = "Stagger"
  257. Stagger.Parent = Stats
  258. Stagger.Value = false
  259. local StaggerHit = Instance.new("BoolValue")
  260. StaggerHit.Name = "StaggerHit"
  261. StaggerHit.Parent = Stats
  262. StaggerHit.Value = false
  263. local RecentEnemy = Instance.new("ObjectValue")
  264. RecentEnemy.Name = "RecentEnemy"
  265. RecentEnemy.Parent = Stats
  266. RecentEnemy.Value = nil
  267. local mana = Instance.new("NumberValue")
  268. mana.Name = "Mana"
  269. mana.Parent = Stats
  270. mana.Value = 30
  271. NoOutline = function(Part)
  272. Part.TopSurface = 10
  273. Part.BottomSurface = 10
  274. Part.RightSurface = 10
  275. Part.LeftSurface = 10
  276. Part.BackSurface = 10
  277. Part.FrontSurface = 10
  278. end
  279. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  280. local fp = it("Part")
  281. fp.formFactor = formfactor
  282. fp.Parent = parent
  283. fp.Reflectance = reflectance
  284. fp.Transparency = transparency
  285. fp.CanCollide = false
  286. fp.Locked = true
  287. fp.BrickColor = brickcolor
  288. fp.Name = name
  289. fp.Size = size
  290. fp.Position = Torso.Position
  291. NoOutline(fp)
  292. fp.Material = "SmoothPlastic"
  293. fp:BreakJoints()
  294. return fp
  295. end
  296. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  297. local mesh = it(Mesh)
  298. mesh.Parent = part
  299. if Mesh == "SpecialMesh" then
  300. mesh.MeshType = meshtype
  301. if meshid ~= "nil" then
  302. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  303. end
  304. end
  305. mesh.Offset = offset
  306. mesh.Scale = scale
  307. return mesh
  308. end
  309. weld = function(parent, part0, part1, c0)
  310. local weld = it("Motor")
  311. weld.Parent = parent
  312. weld.Part0 = part0
  313. weld.Part1 = part1
  314. weld.C0 = c0
  315. return weld
  316. end
  317. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  318. local gui = it(GuiType)
  319. gui.Parent = parent
  320. gui.Text = text
  321. gui.BackgroundTransparency = backtrans
  322. gui.BackgroundColor3 = backcol
  323. gui.SizeConstraint = "RelativeXY"
  324. gui.TextXAlignment = "Center"
  325. gui.TextYAlignment = "Center"
  326. gui.Position = pos
  327. gui.Size = size
  328. gui.Font = "SourceSans"
  329. gui.FontSize = "Size14"
  330. gui.TextWrapped = false
  331. gui.TextStrokeTransparency = 0
  332. gui.TextColor = BrickColor.new("White")
  333. return gui
  334. end
  335. local Color1 = Torso.BrickColor
  336. local fengui = it("GuiMain")
  337. fengui.Parent = Player.PlayerGui
  338. fengui.Name = "WeaponGUI"
  339. local fenframe = it("Frame")
  340. fenframe.Parent = fengui
  341. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  342. fenframe.BackgroundTransparency = 1
  343. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  344. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  345. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  346. local fenframe2 = it("Frame")
  347. fenframe2.Parent = fengui
  348. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  349. fenframe2.BackgroundTransparency = 1
  350. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  351. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  352. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  353. local fenframe3 = it("Frame")
  354. fenframe3.Parent = fengui
  355. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  356. fenframe3.BackgroundTransparency = 1
  357. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  358. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  359. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  360. fenframe3.Name = "MoveFrame"
  361. local fenframe4 = it("Frame")
  362. fenframe4.Parent = fengui
  363. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  364. fenframe4.BackgroundTransparency = 1
  365. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  366. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  367. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  368. local pressedf = false
  369. local fenframe5 = it("Frame")
  370. fenframe5.Parent = fengui
  371. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  372. fenframe5.BackgroundTransparency = 1
  373. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  374. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  375. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  376. fenframe5.ZIndex = 2
  377. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to equip your weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  378. tellbar.Font = "Arial"
  379. tellbar.TextScaled = true
  380. tellbar.TextTransparency = 1
  381. tellbar.TextStrokeTransparency = 1
  382. tellbar.ZIndex = 2
  383. local fnumb = 0
  384. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  385. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("Dark green").Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  386. 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))
  387. 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))
  388. 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))
  389. 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))
  390. 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))
  391. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  392. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  393. 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))
  394. 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))
  395. 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))
  396. 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))
  397. fenbarmove1.ZIndex = 2
  398. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  399. 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))
  400. fenbarmove2.ZIndex = 2
  401. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  402. 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))
  403. fenbarmove3.ZIndex = 2
  404. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  405. 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))
  406. fenbarmove4.ZIndex = 2
  407. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new("Really red").Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  408. local modelzorz = Instance.new("Model")
  409. modelzorz.Parent = Character
  410. modelzorz.Name = "Gear Gauntlet"
  411. RightArm.Transparency = 1
  412. local handle = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Handle", vt())
  413. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part01", vt())
  414. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part02", vt())
  415. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part03", vt())
  416. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part04", vt())
  417. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part05", vt())
  418. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part06", vt())
  419. local prt7 = part(3, modelzorz, 0, 0, Torso.BrickColor, "Part07", vt())
  420. local prt8 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part08", vt())
  421. local prt9 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part09", vt())
  422. local prt10 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part10", vt())
  423. local prt11 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part11", vt())
  424. local prt12 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Part12", vt())
  425. local prt13 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part13", vt())
  426. local prt14 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part14", vt())
  427. local prt15 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part15", vt())
  428. local prt16 = part(3, modelzorz, 0.4, 0, BrickColor.new(NewCol), "Part16", vt())
  429. hmsh = mesh("BlockMesh", handle, "", "", vt(0, 0, 0), vt(5.1, 10.1, 5.1))
  430. msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(6, 3, 6))
  431. msh2 = mesh("BlockMesh", prt2, "", "", vt(0, 0, 0), vt(1, 3.5, 5.25))
  432. msh3 = mesh("BlockMesh", prt3, "", "", vt(0, 0, 0), vt(5.25, 3.5, 1))
  433. msh4 = mesh("BlockMesh", prt4, "", "", vt(0, 0, 0), vt(8, 8.1, 1))
  434. msh5 = mesh("BlockMesh", prt5, "", "", vt(0, 0, 0), vt(8, 8.1, 1))
  435. msh6 = mesh("BlockMesh", prt6, "", "", vt(0, 0, 0), vt(3, 0.5, 3))
  436. msh7 = mesh("SpecialMesh", prt7, "Sphere", "nil", vt(0, 0, 0), vt(2.5, 2.5, 2.5))
  437. msh8 = mesh("CylinderMesh", prt8, "", "", vt(0, 0, 0), vt(3, 0.5, 0.3))
  438. msh9 = mesh("CylinderMesh", prt9, "", "", vt(0, 0, 0), vt(1.5, 0.5, 1.5))
  439. msh10 = mesh("CylinderMesh", prt10, "", "", vt(0, 0, 0), vt(1, 0.5, 1))
  440. msh11 = mesh("BlockMesh", prt11, "", "", vt(0, 0, 0), vt(2, 2, 6))
  441. msh12 = mesh("SpecialMesh", prt12, "Wedge", "nil", vt(0, 0, 0), vt(2, 1, 4))
  442. msh13 = mesh("CylinderMesh", prt13, "", "", vt(0, 0, 0), vt(3, 0.5, 0.3))
  443. msh14 = mesh("CylinderMesh", prt14, "", "", vt(0, 0, 0), vt(1.5, 0.5, 1.5))
  444. msh15 = mesh("CylinderMesh", prt15, "", "", vt(0, 0, 0), vt(1, 0.5, 1))
  445. msh16 = mesh("SpecialMesh", prt16, "FileMesh", "9756362", vt(0, 0, 0), vt(0.2, 1, 0.6))
  446. local hwld = weld(handle, handle, RightArm, euler(0, 0, 0) * cf(0, 0, 0))
  447. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0.6, 0))
  448. local wld2 = weld(prt1, prt2, prt1, euler(0, 0, 0) * cf(-0.2, 0.1, 0))
  449. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, 0.1, 0))
  450. local wld4 = weld(prt1, prt4, prt1, euler(0, 0.785, 0) * cf(0, -0.81, 0))
  451. local wld5 = weld(prt1, prt5, prt1, euler(0, -0.785, 0) * cf(0, -0.81, 0))
  452. local wld6 = weld(prt1, prt6, prt1, euler(0, 0, 0) * cf(0, -1.6, 0))
  453. local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0, 0))
  454. local wld8 = weld(prt1, prt8, prt1, euler(1.57, 0, -1.57) * cf(0, 0, -0.55))
  455. local wld9 = weld(prt1, prt9, prt8, euler(0, 0, 0) * cf(0, 0.05, 0))
  456. local wld10 = weld(prt1, prt10, prt9, euler(0, 0, 0) * cf(0, 0.01, 0))
  457. local wld11 = weld(prt1, prt11, handle, euler(0, 0, 0) * cf(-0.4, -0.5, 0))
  458. local wld12 = weld(prt1, prt12, prt11, euler(-0.5, 1.57, 1.57) * cf(-0.3, 0.2, 0))
  459. local wld13 = weld(prt1, prt13, prt1, euler(1.57, 0, -1.57) * cf(0, 0, 0.55))
  460. local wld14 = weld(prt1, prt14, prt13, euler(0, 0, 0) * cf(0, -0.05, 0))
  461. local wld15 = weld(prt1, prt15, prt14, euler(0, 0, 0) * cf(0, -0.01, 0))
  462. local wld16 = weld(prt1, prt16, prt1, euler(0, 0, 0) * cf(-0.6, 0, 0))
  463. numb2 = 0
  464. for i = 1, 4 do
  465. numb = 0.3
  466. for i = 1, 3 do
  467. local prtclaw = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Partclaw", vt())
  468. mshclaw = mesh("SpecialMesh", prtclaw, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 0.5))
  469. local wldclaw = weld(prt1, prtclaw, prt1, euler(1.57, -1.57, -1.57) * cf(-0.6, 0.3, numb) * euler(0, numb2, 0))
  470. numb = numb - 0.3
  471. end
  472. numb2 = numb2 + 1.57
  473. end
  474. numb = 0
  475. for i = 1, 5 do
  476. local prtgear = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Partgear", vt())
  477. mshgear = mesh("BlockMesh", prtgear, "", "", vt(0, 0, 0), vt(2, 0.45, 0.35))
  478. local wldgear = weld(prt1, prtgear, prt9, euler(0, numb, 0) * cf(0, 0, 0))
  479. numb = numb + 0.628
  480. end
  481. numb = 0
  482. for i = 1, 5 do
  483. local prtgear = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Partgear", vt())
  484. mshgear = mesh("BlockMesh", prtgear, "", "", vt(0, 0, 0), vt(2, 0.45, 0.35))
  485. local wldgear = weld(prt1, prtgear, prt14, euler(0, numb, 0) * cf(0, 0, 0))
  486. numb = numb + 0.628
  487. end
  488. num = 0.3
  489. num2 = 0.5
  490. for i = 1, 3 do
  491. local prtclaw1 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Partclaw1", vt())
  492. clawmsh1 = mesh("SpecialMesh", prtclaw1, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 2))
  493. local clawwld1 = weld(prt1, prtclaw1, prt11, euler(0, -1.57 + num2, 1.57) * cf(-0.2, -0.2, num))
  494. num = num - 0.3
  495. num2 = num2 - 0.5
  496. end
  497. num1 = 0.5
  498. for i = 1, 2 do
  499. num = 1.57
  500. num2 = 0.08
  501. for i = 1, 2 do
  502. local prt17 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium stone grey"), "Part17", vt())
  503. msh17 = mesh("SpecialMesh", prt17, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 4, 0.8))
  504. local wld17 = weld(prt1, prt17, handle, euler(3.14, num, 0) * cf(num2, -0.3, num1))
  505. num = num - 3.14
  506. num2 = num2 - 0.16
  507. end
  508. num1 = num1 - 1
  509. end
  510. for _,c in pairs(modelzorz:children()) do
  511. table.insert(Weapon, c)
  512. end
  513. for _,c in pairs(prt1:children()) do
  514. if c.className == "Motor" then
  515. table.insert(Welds, c)
  516. end
  517. end
  518. local Color1 = BrickColor.new("Medium stone grey")
  519. local Color2 = BrickColor.new(NewCol)
  520. local Color4 = BrickColor.new("Really black")
  521. local model1 = (Instance.new("Model"))
  522. model1.Parent = nil
  523. model1.Name = "Railgun"
  524. Railgun = {}
  525. RailgunWelds = {}
  526. local model2 = (Instance.new("Model"))
  527. model2.Parent = nil
  528. model2.Name = "Plasma Cannon"
  529. Plasma = {}
  530. PlasmaWelds = {}
  531. local model3 = (Instance.new("Model"))
  532. model3.Parent = nil
  533. model3.Name = "Tri-Blades"
  534. Blades = {}
  535. BladesWelds = {}
  536. rprt1 = part(3, model1, 0, 0, Color1, "Part1", vt())
  537. rprt2 = part(3, model1, 0, 0, Color2, "Part2", vt())
  538. rprt3 = part(3, model1, 0, 0, Color2, "Part3", vt())
  539. rprt4 = part(3, model1, 0, 0, Color2, "Part4", vt())
  540. rprt5 = part(3, model1, 0, 0, Color2, "Part5", vt())
  541. rprt6 = part(3, model1, 0, 0, Color2, "Part6", vt())
  542. rprt7 = part(3, model1, 0, 0, Color1, "Part7", vt())
  543. rprt8 = part(3, model1, 0, 0, Color4, "Part8", vt())
  544. rprt9 = part(3, model1, 0, 0, Color1, "Part9", vt())
  545. rprt10 = part(3, model1, 0, 0, Color1, "Part10", vt())
  546. rprt11 = part(3, model1, 0, 0, Color1, "Part11", vt())
  547. rprt12 = part(3, model1, 0, 0, Color1, "Part12", vt())
  548. rprt13 = part(3, model1, 0, 0, Color1, "Part13", vt())
  549. rprt14 = part(3, model1, 0, 0, Color1, "Part14", vt())
  550. rprt15 = part(3, model1, 0, 0, Color1, "Part15", vt())
  551. rprt16 = part(3, model1, 0, 0, Color1, "Part16", vt())
  552. rprt17 = part(3, model1, 0, 0, Color1, "Part17", vt())
  553. rprt18 = part(3, model1, 0, 0, Color2, "Part18", vt())
  554. rprt19 = part(3, model1, 0, 0, Color2, "Part19", vt())
  555. rprt20 = part(3, model1, 0.2, 0, Color1, "Part20", vt())
  556. rprt21 = part(3, model1, 0.2, 0, Color1, "Part21", vt())
  557. rprt22 = part(3, model1, 0.5, 0, Color1, "Part22", vt())
  558. rprt23 = part(3, model1, 0.5, 0, Color1, "Part23", vt())
  559. rprt24 = part(3, model1, 0, 0, Color2, "Part24", vt())
  560. rprt25 = part(3, model1, 0, 0, Color2, "Part25", vt())
  561. rprt26 = part(3, model1, 0.2, 0, Color1, "Part26", vt())
  562. rprt27 = part(3, model1, 0.2, 0, Color1, "Part27", vt())
  563. rprt28 = part(3, model1, 0.5, 0, Color1, "Part28", vt())
  564. rprt29 = part(3, model1, 0.5, 0, Color1, "Part29", vt())
  565. rprt30 = part(3, model1, 0, 0, Color2, "Part30", vt())
  566. rprt31 = part(3, model1, 0, 0, Color2, "Part31", vt())
  567. rprt32 = part(3, model1, 0.2, 0, Color1, "Part32", vt())
  568. rprt33 = part(3, model1, 0.2, 0, Color1, "Part33", vt())
  569. rprt34 = part(3, model1, 0.5, 0, Color1, "Part34", vt())
  570. rprt35 = part(3, model1, 0.5, 0, Color1, "Part35", vt())
  571. for _,c in pairs(model1:children()) do
  572. table.insert(Railgun, c)
  573. end
  574. pprt1 = part(3, model2, 0, 0, Color1, "aPart1", vt())
  575. pprt2 = part(3, model2, 0, 0, Color2, "aPart2", vt())
  576. pprt3 = part(3, model2, 0, 0, Color2, "aPart3", vt())
  577. pprt4 = part(3, model2, 0, 0, Color2, "aPart4", vt())
  578. pprt5 = part(3, model2, 0, 0, Color2, "aPart5", vt())
  579. pprt6 = part(3, model2, 0, 0, Color2, "aPart6", vt())
  580. pprt7 = part(3, model2, 0, 0, Color2, "aPart7", vt())
  581. pprt8 = part(3, model2, 0, 0, Color1, "aPart8", vt())
  582. pprt9 = part(3, model2, 0, 0, Color1, "aPart9", vt())
  583. pprt10 = part(3, model2, 0, 0, Color4, "aPart10", vt())
  584. pprt11 = part(3, model2, 0, 0, Color4, "aPart11", vt())
  585. pprt12 = part(3, model2, 0, 0, Color1, "aPart12", vt())
  586. pprt13 = part(3, model2, 0, 0, Color1, "aPart13", vt())
  587. pprt14 = part(3, model2, 0, 0, Color1, "aPart14", vt())
  588. pprt15 = part(3, model2, 0, 0, Color1, "aPart15", vt())
  589. pprt16 = part(3, model2, 0, 0, Color1, "aPart16", vt())
  590. pprt17 = part(3, model2, 0, 0, Color1, "aPart17", vt())
  591. pprt18 = part(3, model2, 0, 0, Color1, "aPart18", vt())
  592. pprt19 = part(3, model2, 0, 0, Color2, "aPart19", vt())
  593. pprt20 = part(3, model2, 0, 0, Color2, "aPart20", vt())
  594. pprt21 = part(3, model2, 0.2, 0, Color1, "aPart21", vt())
  595. pprt22 = part(3, model2, 0.2, 0, Color1, "aPart22", vt())
  596. pprt23 = part(3, model2, 0.5, 0, Color1, "aPart23", vt())
  597. pprt24 = part(3, model2, 0.5, 0, Color1, "aPart24", vt())
  598. pprt25 = part(3, model2, 0, 0, Color2, "aPart25", vt())
  599. pprt26 = part(3, model2, 0, 0, Color2, "aPart26", vt())
  600. pprt27 = part(3, model2, 0.2, 0, Color1, "aPart27", vt())
  601. pprt28 = part(3, model2, 0.2, 0, Color1, "aPart28", vt())
  602. pprt29 = part(3, model2, 0.5, 0, Color1, "aPart29", vt())
  603. pprt30 = part(3, model2, 0.5, 0, Color1, "aPart30", vt())
  604. pprt31 = part(3, model2, 0, 0, Color2, "aPart31", vt())
  605. pprt32 = part(3, model2, 0, 0, Color2, "aPart32", vt())
  606. pprt33 = part(3, model2, 0.2, 0, Color1, "aPart33", vt())
  607. pprt34 = part(3, model2, 0.2, 0, Color1, "aPart34", vt())
  608. pprt35 = part(3, model2, 0.5, 0, Color1, "aPart35", vt())
  609. pprt36 = part(3, model2, 0.5, 0, Color1, "aPart36", vt())
  610. pprt37 = part(3, model2, 0, 0, Color2, "aPart37", vt())
  611. pprt38 = part(3, model1, 0, 0, Color1, "aPart38", vt())
  612. pprt39 = part(3, model1, 0, 0, Color1, "aPart39", vt())
  613. for _,c in pairs(model2:children()) do
  614. table.insert(Plasma, c)
  615. end
  616. bref = part(3, model3, 0, 1, Color4, "bRef", vt())
  617. bprt1 = part(3, model3, 0, 1, Color1, "bPart1", vt())
  618. bprt2 = part(3, model3, 0, 0, Color1, "bPart2", vt())
  619. bprt3 = part(3, model3, 0, 0, Color2, "bPart3", vt())
  620. bprt4 = part(3, model3, 0.8, 0, Color1, "bPart4", vt())
  621. bprt5 = part(3, model3, 0.8, 0, Color1, "bPart5", vt())
  622. bprt6 = part(3, model3, 0.8, 0, Color1, "bPart6", vt())
  623. bprt7 = part(3, model3, 0, 1, Color1, "bPart7", vt())
  624. bprt8 = part(3, model3, 0, 0, Color1, "bPart8", vt())
  625. bprt9 = part(3, model3, 0, 0, Color2, "bPart9", vt())
  626. bprt10 = part(3, model3, 0.8, 0, Color1, "bPart10", vt())
  627. bprt11 = part(3, model3, 0.8, 0, Color1, "bPart11", vt())
  628. bprt12 = part(3, model3, 0.8, 0, Color1, "bPart12", vt())
  629. bprt13 = part(3, model3, 0, 1, Color1, "bPart13", vt())
  630. bprt14 = part(3, model3, 0, 0, Color1, "bPart14", vt())
  631. bprt15 = part(3, model3, 0, 0, Color2, "bPart15", vt())
  632. bprt16 = part(3, model3, 0.8, 0, Color1, "bPart16", vt())
  633. bprt17 = part(3, model3, 0.8, 0, Color1, "bPart17", vt())
  634. bprt18 = part(3, model3, 0.8, 0, Color1, "bPart18", vt())
  635. for _,c in pairs(model3:children()) do
  636. table.insert(Blades, c)
  637. end
  638. msh1 = mesh("BlockMesh", rprt1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  639. msh2 = mesh("BlockMesh", rprt2, "", "", vt(0, 0, 0), vt(1.3, 2.5, 10))
  640. msh3 = mesh("BlockMesh", rprt3, "", "", vt(0, 0, 0), vt(1.49, 2.5, 5))
  641. msh4 = mesh("BlockMesh", rprt4, "", "", vt(0, 0, 0), vt(1.51, 2.5, 3))
  642. msh5 = mesh("CylinderMesh", rprt5, "", "", vt(0, 0, 0), vt(2.5, 1, 2.5))
  643. msh6 = mesh("CylinderMesh", rprt6, "", "", vt(0, 0, 0), vt(1.5, 16, 1.5))
  644. msh7 = mesh("CylinderMesh", rprt7, "", "", vt(0, 0, 0), vt(1.6, 1, 1.6))
  645. msh8 = mesh("CylinderMesh", rprt8, "", "", vt(0, 0, 0), vt(1.4, 1.01, 1.4))
  646. msh9 = mesh("BlockMesh", rprt9, "", "", vt(0, 0, 0), vt(1.4, 14, 2))
  647. msh10 = mesh("SpecialMesh", rprt10, "Wedge", "nil", vt(0, 0, 0), vt(1.3, 4, 3))
  648. msh11 = mesh("SpecialMesh", rprt11, "Wedge", "nil", vt(0, 0, 0), vt(1.3, 2, 3))
  649. msh12 = mesh("SpecialMesh", rprt12, "Wedge", "nil", vt(0, 0, 0), vt(1.7, 3, 3.5))
  650. msh13 = mesh("BlockMesh", rprt13, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  651. msh14 = mesh("BlockMesh", rprt14, "", "", vt(0, 0, 0), vt(1.6, 4.5, 2))
  652. msh15 = mesh("BlockMesh", rprt15, "", "", vt(0, 0, 0), vt(1.6, 3.6, 2))
  653. msh16 = mesh("SpecialMesh", rprt16, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 3.5))
  654. msh17 = mesh("SpecialMesh", rprt17, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 4))
  655. msh19 = mesh("SpecialMesh", rprt19, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  656. msh20 = mesh("SpecialMesh", rprt20, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  657. msh21 = mesh("SpecialMesh", rprt21, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  658. msh22 = mesh("SpecialMesh", rprt22, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  659. msh23 = mesh("SpecialMesh", rprt23, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  660. msh25 = mesh("SpecialMesh", rprt25, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  661. msh26 = mesh("SpecialMesh", rprt26, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  662. msh27 = mesh("SpecialMesh", rprt27, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  663. msh28 = mesh("SpecialMesh", rprt28, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  664. msh29 = mesh("SpecialMesh", rprt29, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  665. msh31 = mesh("SpecialMesh", rprt31, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  666. msh32 = mesh("SpecialMesh", rprt32, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  667. msh33 = mesh("SpecialMesh", rprt33, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  668. msh34 = mesh("SpecialMesh", rprt34, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  669. msh35 = mesh("SpecialMesh", rprt35, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  670. msh1 = mesh("BlockMesh", pprt1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  671. msh2 = mesh("BlockMesh", pprt2, "", "", vt(0, 0, 0), vt(2, 1.3, 5))
  672. msh3 = mesh("SpecialMesh", pprt3, "Wedge", "nil", vt(0, 0, 0), vt(2, 2, 1))
  673. msh4 = mesh("BlockMesh", pprt4, "", "", vt(0, 0, 0), vt(2, 2, 6))
  674. msh5 = mesh("BlockMesh", pprt5, "", "", vt(0, 0, 0), vt(2, 2, 2))
  675. msh6 = mesh("CylinderMesh", pprt6, "", "", vt(0, 0, 0), vt(2, 5, 2))
  676. msh7 = mesh("CylinderMesh", pprt7, "", "", vt(0, 0, 0), vt(2, 5, 2))
  677. msh8 = mesh("CylinderMesh", pprt8, "", "", vt(0, 0, 0), vt(2.1, 1, 2.1))
  678. msh9 = mesh("CylinderMesh", pprt9, "", "", vt(0, 0, 0), vt(2.1, 1, 2.1))
  679. msh10 = mesh("CylinderMesh", pprt10, "", "", vt(0, 0, 0), vt(1.9, 1.01, 1.9))
  680. msh11 = mesh("CylinderMesh", pprt11, "", "", vt(0, 0, 0), vt(1.9, 1.01, 1.9))
  681. msh12 = mesh("CylinderMesh", pprt12, "", "", vt(0, 0, 0), vt(2.2, 5.5, 2.2))
  682. msh13 = mesh("SpecialMesh", pprt13, "Wedge", "nil", vt(0, 0, 0), vt(1.7, 3, 3.5))
  683. msh14 = mesh("BlockMesh", pprt14, "", "", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  684. msh15 = mesh("BlockMesh", pprt15, "", "", vt(0, 0, 0), vt(1.6, 4.5, 2))
  685. msh16 = mesh("BlockMesh", pprt16, "", "", vt(0, 0, 0), vt(1.6, 3.6, 2))
  686. msh17 = mesh("SpecialMesh", pprt17, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 3.5))
  687. msh18 = mesh("SpecialMesh", pprt18, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 4))
  688. msh20 = mesh("SpecialMesh", pprt20, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  689. msh21 = mesh("SpecialMesh", pprt21, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  690. msh22 = mesh("SpecialMesh", pprt22, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  691. msh23 = mesh("SpecialMesh", pprt23, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  692. msh24 = mesh("SpecialMesh", pprt24, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  693. msh26 = mesh("SpecialMesh", pprt26, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  694. msh27 = mesh("SpecialMesh", pprt27, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  695. msh28 = mesh("SpecialMesh", pprt28, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  696. msh29 = mesh("SpecialMesh", pprt29, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  697. msh30 = mesh("SpecialMesh", pprt30, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  698. msh32 = mesh("SpecialMesh", pprt32, "Sphere", "nil", vt(0, 0, 0), vt(1.5, 1.5, 1.5))
  699. msh33 = mesh("SpecialMesh", pprt33, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  700. msh34 = mesh("SpecialMesh", pprt34, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 8, 0.5))
  701. msh35 = mesh("SpecialMesh", pprt35, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  702. msh36 = mesh("SpecialMesh", pprt36, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 7, 0.7))
  703. msh37 = mesh("BlockMesh", pprt37, "", "", vt(0, 0, 0), vt(1.51, 2.5, 3))
  704. msh38 = mesh("SpecialMesh", pprt38, "Wedge", "nil", vt(0, 0, 0), vt(1.3, 4, 3))
  705. msh39 = mesh("SpecialMesh", pprt39, "Wedge", "nil", vt(0, 0, 0), vt(1.3, 2, 3))
  706. msh2 = mesh("CylinderMesh", bprt2, "", "", vt(0, 0, 0), vt(3, 1, 3))
  707. msh3 = mesh("CylinderMesh", bprt3, "", "", vt(0, 0, 0), vt(2.5, 1.01, 2.5))
  708. msh4 = mesh("BlockMesh", bprt4, "", "", vt(0, 0, 0), vt(7, 0.5, 1.5))
  709. msh5 = mesh("SpecialMesh", bprt5, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 10))
  710. msh6 = mesh("SpecialMesh", bprt6, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 3, 4))
  711. msh8 = mesh("CylinderMesh", bprt8, "", "", vt(0, 0, 0), vt(3, 1, 3))
  712. msh9 = mesh("CylinderMesh", bprt9, "", "", vt(0, 0, 0), vt(2.5, 1.01, 2.5))
  713. msh10 = mesh("BlockMesh", bprt10, "", "", vt(0, 0, 0), vt(7, 0.5, 1.5))
  714. msh11 = mesh("SpecialMesh", bprt11, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 10))
  715. msh12 = mesh("SpecialMesh", bprt12, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 3, 4))
  716. msh14 = mesh("CylinderMesh", bprt14, "", "", vt(0, 0, 0), vt(3, 1, 3))
  717. msh15 = mesh("CylinderMesh", bprt15, "", "", vt(0, 0, 0), vt(2.5, 1.01, 2.5))
  718. msh16 = mesh("BlockMesh", bprt16, "", "", vt(0, 0, 0), vt(7, 0.5, 1.5))
  719. msh17 = mesh("SpecialMesh", bprt17, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 10))
  720. msh18 = mesh("SpecialMesh", bprt18, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 3, 4))
  721. rwld1 = weld(rprt1, rprt1, RootPart, euler(-0.2, 0, 0) * cf(3, -1, -0.2))
  722. rwld2 = weld(rprt1, rprt2, rprt1, euler(0, 0, 0) * cf(0, 0, 0))
  723. rwld3 = weld(rprt1, rprt3, rprt2, euler(-0.3, 0, 0) * cf(0, 0.05, -1))
  724. rwld4 = weld(rprt1, rprt4, rprt2, euler(-0.5, 0, 0) * cf(0, 0.1, -0.3))
  725. rwld5 = weld(rprt1, rprt5, rprt4, euler(2.07, 0, 0) * cf(0, -0.2, 0))
  726. rwld6 = weld(rprt1, rprt6, rprt2, euler(1.57, 0, 0) * cf(0, -0.11, 1.1))
  727. rwld7 = weld(rprt1, rprt7, rprt6, euler(0, 0, 0) * cf(0, -1.6, 0))
  728. rwld8 = weld(rprt1, rprt8, rprt7, euler(0, 0, 0) * cf(0, 0, 0))
  729. rwld9 = weld(rprt1, rprt9, rprt6, euler(0, 0, 0) * cf(0, -0.3, 0.2))
  730. rwld10 = weld(rprt1, rprt10, rprt9, euler(0, 0, 0) * cf(0, 1.2, 0.4))
  731. rwld11 = weld(rprt1, rprt11, rprt10, euler(0, 0, 3.14) * cf(0, 0.6, 0))
  732. rwld12 = weld(rprt1, rprt12, rprt5, euler(3.14, 0, 0) * cf(0, -0.2, -0.55))
  733. rwld13 = weld(rprt1, rprt13, rprt12, euler(0.785, 0, 0) * cf(0, 0.2, -0.4))
  734. rwld14 = weld(rprt1, rprt14, rprt12, euler(0, 0, 0) * cf(0, -0.4, -0.2))
  735. rwld15 = weld(rprt1, rprt15, rprt14, euler(-0.8, 0, 0) * cf(0, -0.55, -0.2))
  736. rwld16 = weld(rprt1, rprt16, rprt14, euler(0, 0, 3.14) * cf(0, -0.15, 0.5))
  737. rwld17 = weld(rprt1, rprt17, rprt16, euler(0, 0, 3.14) * cf(0, 0.5, -0.3))
  738. rwld18 = weld(rprt1, rprt18, rprt2, euler(0, 0, 0) * cf(0.2, 0, 0))
  739. rwld19 = weld(rprt1, rprt19, rprt18, euler(0, 0, 0.5) * cf(0, 0, 0))
  740. rwld20 = weld(rprt1, rprt20, rprt19, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  741. rwld21 = weld(rprt1, rprt21, rprt19, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  742. rwld22 = weld(rprt1, rprt22, rprt20, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  743. rwld23 = weld(rprt1, rprt23, rprt21, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  744. rwld24 = weld(rprt1, rprt24, rprt2, euler(0, 0, 0) * cf(0.2, -0.1, -0.3))
  745. rwld25 = weld(rprt1, rprt25, rprt24, euler(0.3, 0, 0.6) * cf(0, 0, 0))
  746. rwld26 = weld(rprt1, rprt26, rprt25, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  747. rwld27 = weld(rprt1, rprt27, rprt25, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  748. rwld28 = weld(rprt1, rprt28, rprt26, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  749. rwld29 = weld(rprt1, rprt29, rprt27, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  750. rwld30 = weld(rprt1, rprt30, rprt2, euler(0, 0, 0) * cf(0.2, -0.2, -0.6))
  751. rwld31 = weld(rprt1, rprt31, rprt30, euler(0.6, 0, 0.7) * cf(0, 0, 0))
  752. rwld32 = weld(rprt1, rprt32, rprt31, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  753. rwld33 = weld(rprt1, rprt33, rprt31, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  754. rwld34 = weld(rprt1, rprt34, rprt32, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  755. rwld35 = weld(rprt1, rprt35, rprt33, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  756. for _,c in pairs(rprt1:children()) do
  757. if c.className == "Motor" then
  758. table.insert(RailgunWelds, c)
  759. end
  760. end
  761. pwld1 = weld(pprt1, pprt1, RootPart, euler(-0.2, 0, 0) * cf(-3, -1, -0.2))
  762. pwld2 = weld(pprt1, pprt2, pprt1, euler(0, 0, 0) * cf(0, 0, 0))
  763. pwld3 = weld(pprt1, pprt3, pprt2, euler(0, 3.14, 0) * cf(0, -0.3, -0.4))
  764. pwld4 = weld(pprt1, pprt4, pprt2, euler(0, 0, 0) * cf(0, -0.3, 0.3))
  765. pwld5 = weld(pprt1, pprt5, pprt4, euler(0, 0, 0) * cf(0, -0.3, 0.2))
  766. pwld6 = weld(pprt1, pprt6, pprt4, euler(1.57, 0, 0) * cf(0, -0.02, 0.7))
  767. pwld7 = weld(pprt1, pprt7, pprt4, euler(1.57, 0, 0) * cf(0, 0.02, 0.7))
  768. pwld8 = weld(pprt1, pprt8, pprt6, euler(0, 0, 0) * cf(0, -0.5, 0))
  769. pwld9 = weld(pprt1, pprt9, pprt7, euler(0, 0, 0) * cf(0, -0.5, 0))
  770. pwld10 = weld(pprt1, pprt10, pprt8, euler(0, 0, 0) * cf(0, 0, 0))
  771. pwld11 = weld(pprt1, pprt11, pprt9, euler(0, 0, 0) * cf(0, 0, 0))
  772. pwld12 = weld(pprt1, pprt12, pprt4, euler(1.57, 0, 0) * cf(0, 0.2, 0.75))
  773. pwld13 = weld(pprt1, pprt13, pprt5, euler(-1.57, 0, 0) * cf(0, -0.3, 0))
  774. pwld14 = weld(pprt1, pprt14, pprt13, euler(0.785, 0, 0) * cf(0, 0.2, -0.4))
  775. pwld15 = weld(pprt1, pprt15, pprt13, euler(0, 0, 0) * cf(0, -0.4, -0.2))
  776. pwld16 = weld(pprt1, pprt16, pprt15, euler(-0.8, 0, 0) * cf(0, -0.55, -0.2))
  777. pwld17 = weld(pprt1, pprt17, pprt15, euler(0, 0, 3.14) * cf(0, -0.15, 0.5))
  778. pwld18 = weld(pprt1, pprt18, pprt17, euler(0, 0, 3.14) * cf(0, 0.5, -0.3))
  779. pwld19 = weld(pprt1, pprt19, pprt2, euler(0, 0, 0) * cf(-0.2, -0.2, 0.7))
  780. pwld20 = weld(pprt1, pprt20, pprt19, euler(0, 0, -0.5) * cf(0, 0, 0))
  781. pwld21 = weld(pprt1, pprt21, pprt20, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  782. pwld22 = weld(pprt1, pprt22, pprt20, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  783. pwld23 = weld(pprt1, pprt23, pprt21, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  784. pwld24 = weld(pprt1, pprt24, pprt22, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  785. pwld25 = weld(pprt1, pprt25, pprt2, euler(0, 0, 0) * cf(-0.2, -0.3, 0.4))
  786. pwld26 = weld(pprt1, pprt26, pprt25, euler(0.3, 0, -0.6) * cf(0, 0, 0))
  787. pwld27 = weld(pprt1, pprt27, pprt26, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  788. pwld28 = weld(pprt1, pprt28, pprt26, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  789. pwld29 = weld(pprt1, pprt29, pprt27, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  790. pwld30 = weld(pprt1, pprt30, pprt28, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  791. pwld31 = weld(pprt1, pprt31, pprt2, euler(0, 0, 0) * cf(-0.2, -0.4, 0.1))
  792. pwld32 = weld(pprt1, pprt32, pprt31, euler(0.6, 0, -0.7) * cf(0, 0, 0))
  793. pwld33 = weld(pprt1, pprt33, pprt32, euler(3.14, 3.14, 0) * cf(0, 0.8, 0.05))
  794. pwld34 = weld(pprt1, pprt34, pprt32, euler(3.14, 0, 0) * cf(0, 0.8, -0.05))
  795. pwld35 = weld(pprt1, pprt35, pprt33, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  796. pwld36 = weld(pprt1, pprt36, pprt34, euler(0, 0, 0) * cf(0, -0.5, 0.02))
  797. pwld37 = weld(pprt1, pprt37, pprt2, euler(-0.5, 0, 0) * cf(0, -0.05, -0.1))
  798. pwld38 = weld(pprt1, pprt38, pprt37, euler(-1.57, 3.14, 0) * cf(0, 0.2, 0.15))
  799. pwld39 = weld(pprt1, pprt339, pprt39, euler(0, 0, 3.14) * cf(0, 0.6, 0))
  800. for _,c in pairs(pprt1:children()) do
  801. if c.className == "Motor" then
  802. table.insert(PlasmaWelds, c)
  803. end
  804. end
  805. brefwld = weld(bprt1, bref, RootPart, euler(0, 0, 0) * cf(0, -2, 0))
  806. bwld1 = weld(bprt1, bprt1, bref, euler(0, 0, 0) * cf(2, -0.6, -2))
  807. bwld2 = weld(bprt1, bprt2, bprt1, euler(3.14, -2, 1.17) * cf(0, 0, 0))
  808. bwld3 = weld(bprt1, bprt3, bprt2, euler(0, 0, 0) * cf(0, 0, 0))
  809. bwld4 = weld(bprt1, bprt4, bprt2, euler(0, 0, 0) * cf(-0.8, 0, 0))
  810. bwld5 = weld(bprt1, bprt5, bprt2, euler(-1.57, 0, 1.57) * cf(-0.8, 0, -0.35))
  811. bwld6 = weld(bprt1, bprt6, bprt4, euler(-1.57, 0, 1.57) * cf(-1.1, 0, -0.15))
  812. bwld7 = weld(bprt1, bprt7, bref, euler(0, 0, 0) * cf(0, -0.6, -2))
  813. bwld8 = weld(bprt1, bprt8, bprt7, euler(3.14, -2, 1.57) * cf(0, 0, 0))
  814. bwld9 = weld(bprt1, bprt9, bprt8, euler(0, 0, 0) * cf(0, 0, 0))
  815. bwld10 = weld(bprt1, bprt10, bprt8, euler(0, 0, 0) * cf(-0.8, 0, 0))
  816. bwld11 = weld(bprt1, bprt11, bprt8, euler(-1.57, 0, 1.57) * cf(-0.8, 0, -0.35))
  817. bwld12 = weld(bprt1, bprt12, bprt10, euler(-1.57, 0, 1.57) * cf(-1.1, 0, -0.15))
  818. bwld13 = weld(bprt1, bprt13, bref, euler(0, 0, 0) * cf(-2, -0.6, -2))
  819. bwld14 = weld(bprt1, bprt14, bprt13, euler(3.14, -2, 1.97) * cf(0, 0, 0))
  820. bwld15 = weld(bprt1, bprt15, bprt14, euler(0, 0, 0) * cf(0, 0, 0))
  821. bwld16 = weld(bprt1, bprt16, bprt14, euler(0, 0, 0) * cf(-0.8, 0, 0))
  822. bwld17 = weld(bprt1, bprt17, bprt14, euler(-1.57, 0, 1.57) * cf(-0.8, 0, -0.35))
  823. bwld18 = weld(bprt1, bprt18, bprt16, euler(-1.57, 0, 1.57) * cf(-1.1, 0, -0.15))
  824. for _,c in pairs(bprt1:children()) do
  825. if c.className == "Motor" then
  826. table.insert(BladesWelds, c)
  827. end
  828. end
  829. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  830. hitbox.Anchored = false
  831. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  832. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  833. hitbox2.Anchored = true
  834. local hitboxCF = cf(0, 0, 0)
  835. local hitboxb1 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitboxb", vt(1, 1, 1))
  836. hitboxb1.Anchored = false
  837. local hitboxb2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitboxb", vt(1, 1, 1))
  838. hitboxb2.Anchored = false
  839. local hitboxb3 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitboxb", vt(1, 1, 1))
  840. hitboxb3.Anchored = false
  841. hboxpos = Instance.new("BodyPosition", nil)
  842. hboxpos.P = 2000
  843. hboxpos.D = 100
  844. hboxpos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  845. hitboxweld = function()
  846. hbwld.Parent = modelzorz
  847. hbwld.Part0 = hitbox
  848. hbwld.Part1 = handle
  849. end
  850. Bin = script.Parent
  851. if Bin.Name == "Mechanic" then
  852. Bin.Name = "Gear Gauntlet"
  853. end
  854. local bodvel = Instance.new("BodyVelocity")
  855. local bg = Instance.new("BodyGyro")
  856. so = function(id, par, vol, pit)
  857. local sou = Instance.new("Sound", par or workspace)
  858. sou.Volume = vol
  859. sou.Pitch = pit or 1
  860. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  861. coroutine.resume(coroutine.create(function(Sound)
  862. fwait()
  863. Sound:play()
  864. end), sou)
  865. game:GetService("Debris"):AddItem(sou, 6)
  866. end
  867. function clerp(a,b,t)
  868. local qa = {QuaternionFromCFrame(a)}
  869. local qb = {QuaternionFromCFrame(b)}
  870. local ax, ay, az = a.x, a.y, a.z
  871. local bx, by, bz = b.x, b.y, b.z
  872. local _t = 1-t
  873. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  874. end
  875.  
  876. function QuaternionFromCFrame(cf)
  877. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  878. local trace = m00 + m11 + m22
  879. if trace > 0 then
  880. local s = math.sqrt(1 + trace)
  881. local recip = 0.5/s
  882. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  883. else
  884. local i = 0
  885. if m11 > m00 then
  886. i = 1
  887. end
  888. if m22 > (i == 0 and m00 or m11) then
  889. i = 2
  890. end
  891. if i == 0 then
  892. local s = math.sqrt(m00-m11-m22+1)
  893. local recip = 0.5/s
  894. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  895. elseif i == 1 then
  896. local s = math.sqrt(m11-m22-m00+1)
  897. local recip = 0.5/s
  898. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  899. elseif i == 2 then
  900. local s = math.sqrt(m22-m00-m11+1)
  901. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  902. end
  903. end
  904. end
  905.  
  906. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  907. local xs, ys, zs = x + x, y + y, z + z
  908. local wx, wy, wz = w*xs, w*ys, w*zs
  909. local xx = x*xs
  910. local xy = x*ys
  911. local xz = x*zs
  912. local yy = y*ys
  913. local yz = y*zs
  914. local zz = z*zs
  915. 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))
  916. end
  917.  
  918. function QuaternionSlerp(a, b, t)
  919. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  920. local startInterp, finishInterp;
  921. if cosTheta >= 0.0001 then
  922. if (1 - cosTheta) > 0.0001 then
  923. local theta = math.acos(cosTheta)
  924. local invSinTheta = 1/math.sin(theta)
  925. startInterp = math.sin((1-t)*theta)*invSinTheta
  926. finishInterp = math.sin(t*theta)*invSinTheta
  927. else
  928. startInterp = 1-t
  929. finishInterp = t
  930. end
  931. else
  932. if (1+cosTheta) > 0.0001 then
  933. local theta = math.acos(-cosTheta)
  934. local invSinTheta = 1/math.sin(theta)
  935. startInterp = math.sin((t-1)*theta)*invSinTheta
  936. finishInterp = math.sin(t*theta)*invSinTheta
  937. else
  938. startInterp = t-1
  939. finishInterp = t
  940. end
  941. end
  942. 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
  943. end
  944. hideanim = function()
  945. equipped = false
  946. for i = 0, 1, 0.1 do
  947. fwait()
  948. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  949. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  950. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  951. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  952. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  953. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  954. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  955. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  956. end
  957. mdec2.Parent = nil
  958. mdec.Parent = Decrease
  959. end
  960. mdec.Parent = Decrease
  961. equipanim = function()
  962. equipped = true
  963. mdec.Parent = nil
  964. mdec2.Parent = Decrease
  965. end
  966. StaggerAnim = function()
  967. attack = true
  968. removeControl()
  969. for i = 1, math.random(2, 4) do
  970. 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)
  971. end
  972. for i = 0, 1, 0.35 do
  973. fwait()
  974. if Rooted.Value == false then
  975. Torso.Velocity = RootPart.CFrame.lookVector * -40
  976. end
  977. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  978. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  979. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  980. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  981. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  982. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  983. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  984. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  985. end
  986. for i = 0, 1, 0.2 do
  987. fwait()
  988. if Rooted.Value == false then
  989. Torso.Velocity = RootPart.CFrame.lookVector * -40
  990. end
  991. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  992. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  993. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  994. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  995. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  996. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  997. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  998. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  999. end
  1000. for i = 0, 1, 0.1 do
  1001. fwait()
  1002. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1003. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1004. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.8) * euler(0, -0.4, 0), 0.3)
  1005. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1006. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1007. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1008. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1009. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1010. end
  1011. for i = 1, 40 do
  1012. fwait()
  1013. if StunT.Value <= Stun.Value then
  1014. break
  1015. end
  1016. end
  1017. do
  1018. resumeControl()
  1019. combo = 0
  1020. attack = false
  1021. end
  1022. end
  1023. StaggerHitt = function()
  1024. attack = true
  1025. for i = 1, math.random(2, 4) do
  1026. 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)
  1027. end
  1028. for i = 0, 1, 0.1 do
  1029. fwait()
  1030. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1031. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  1032. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9), 0.3)
  1033. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1034. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.6), 0.3)
  1035. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1036. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1037. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1038. end
  1039. attack = false
  1040. end
  1041. StunAnim = function()
  1042. attack = true
  1043. removeControl()
  1044. Stunned.Value = true
  1045. showDamage(Character, "Stunned", "Interrupt")
  1046. local dec = Instance.new("NumberValue", Decrease)
  1047. dec.Name = "DecreaseMvmt"
  1048. dec.Value = 10
  1049. for i = 0, 1, 0.3 do
  1050. fwait()
  1051. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1053. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1054. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1055. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1056. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1057. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1058. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1059. end
  1060. for i = 0, 1, 0.3 do
  1061. fwait()
  1062. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1064. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1065. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1066. 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)
  1067. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1068. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1069. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1070. end
  1071. for i = 0, 1, 0.3 do
  1072. fwait()
  1073. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1074. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1075. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1076. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1077. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1078. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1079. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1080. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1081. end
  1082. local gairost = Instance.new("BodyGyro")
  1083. gairost.Parent = RootPart
  1084. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1085. gairost.P = 20000
  1086. gairost.cframe = cf(0, 0, 0)
  1087. for i = 0, 1, 0.1 do
  1088. fwait()
  1089. if hitfloor ~= nil then
  1090. Torso.Velocity = vt(0, 0, 0)
  1091. end
  1092. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1093. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1094. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1095. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1096. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1097. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1098. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1099. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1100. end
  1101. for i = 1, 70 do
  1102. fwait()
  1103. gairost.cframe = RootPart.CFrame
  1104. if hitfloor ~= nil then
  1105. Torso.Velocity = vt(0, 0, 0)
  1106. end
  1107. end
  1108. for i = 0, 1, 0.2 do
  1109. fwait()
  1110. Stun.Value = 0
  1111. gairost.cframe = RootPart.CFrame
  1112. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1113. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1114. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1115. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1116. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1117. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1118. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1119. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1120. end
  1121. resumeControl()
  1122. gairost.Parent = nil
  1123. dec.Parent = nil
  1124. Stun.Value = 0
  1125. combo = 0
  1126. Stunned.Value = false
  1127. attack = false
  1128. for i = 1, 10 do
  1129. fwait()
  1130. Stun.Value = 0
  1131. end
  1132. end
  1133. attackone = function()
  1134. attack = true
  1135. for i = 0, 1, 0.12 do
  1136. fwait()
  1137. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1) * euler(0, 0, 0), 0.3)
  1138. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.3)
  1139. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.4, 0, -1), 0.3)
  1140. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1141. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -1) * euler(0, 0, 0), 0.3)
  1142. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1143. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 1, -0.1), 0.4)
  1144. LH.C0 = clerp(LH.C0, cf(-0.8, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1145. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1146. do
  1147. if StaggerHit.Value == true then
  1148. break
  1149. end
  1150. -- DECOMPILER ERROR at PC189: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1151.  
  1152. -- DECOMPILER ERROR at PC189: LeaveBlock: unexpected jumping out IF_STMT
  1153.  
  1154. end
  1155. end
  1156. end
  1157. so("199145095", handle, 1, 1.1)
  1158. hbwld.Parent = nil
  1159. hboxpos.Parent = hitbox
  1160. hitbox.Parent = modelzorz
  1161. hitbox.Size = vt(2, 3, 2)
  1162. hitboxCF = handle.CFrame
  1163. hitbox.CFrame = hitboxCF
  1164. for i = 0, 1, 0.35 do
  1165. fwait()
  1166. hitboxCF = handle.CFrame
  1167. hitbox.CFrame = hitboxCF
  1168. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1169. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.57) * euler(0, 0, 0), 0.4)
  1170. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.4)
  1171. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.8, 0, 1.2), 0.4)
  1172. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1173. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.1), 0.4)
  1174. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1175. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.3)
  1176. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.3)
  1177. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1178. do
  1179. if StaggerHit.Value == true then
  1180. break
  1181. end
  1182. -- DECOMPILER ERROR at PC426: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1183.  
  1184. -- DECOMPILER ERROR at PC426: LeaveBlock: unexpected jumping out IF_STMT
  1185.  
  1186. end
  1187. end
  1188. end
  1189. for i = 0, 1, 0.1 do
  1190. fwait()
  1191. hitboxCF = handle.CFrame
  1192. hitbox.CFrame = hitboxCF
  1193. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1194. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.57) * euler(0, 0, 0), 0.4)
  1195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.4)
  1196. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0) * euler(-0.5, 0, 0.5), 0.4)
  1197. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1198. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.1), 0.4)
  1199. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1200. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.3)
  1201. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.3)
  1202. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1203. do
  1204. if StaggerHit.Value == true then
  1205. break
  1206. end
  1207. -- DECOMPILER ERROR at PC642: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1208.  
  1209. -- DECOMPILER ERROR at PC642: LeaveBlock: unexpected jumping out IF_STMT
  1210.  
  1211. end
  1212. end
  1213. end
  1214. hitbox.Parent = modelzorz
  1215. hitbox.Size = vt()
  1216. hitboxweld()
  1217. hboxpos.Parent = nil
  1218. attack = false
  1219. end
  1220. attacktwo = function()
  1221. attack = true
  1222. for i = 0, 1, 0.2 do
  1223. fwait()
  1224. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.3), 0.4)
  1225. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.3), 0.4)
  1226. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1.3), 0.4)
  1227. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1228. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0, -2.5, -1.57), 0.4)
  1229. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1230. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 1.3, -0.1), 0.4)
  1231. LH.C0 = clerp(LH.C0, cf(-0.8, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 1.3, 0.1), 0.4)
  1232. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1233. do
  1234. if StaggerHit.Value == true then
  1235. break
  1236. end
  1237. -- DECOMPILER ERROR at PC171: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1238.  
  1239. -- DECOMPILER ERROR at PC171: LeaveBlock: unexpected jumping out IF_STMT
  1240.  
  1241. end
  1242. end
  1243. end
  1244. so("199145146", handle, 1, 1.3)
  1245. hbwld.Parent = nil
  1246. hboxpos.Parent = hitbox
  1247. hitbox.Parent = modelzorz
  1248. hitbox.Size = vt(2, 3, 2)
  1249. hitboxCF = handle.CFrame
  1250. hitbox.CFrame = hitboxCF
  1251. for i = 0, 1, 0.3 do
  1252. fwait()
  1253. hitboxCF = handle.CFrame
  1254. hitbox.CFrame = hitboxCF
  1255. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1256. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.5) * euler(0.1, 0, 0), 0.4)
  1257. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.6), 0.4)
  1258. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 1, 1.3) * euler(0, -1.57, 0), 0.4)
  1259. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1260. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.2), 0.4)
  1261. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1262. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.3)
  1263. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.3)
  1264. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1265. do
  1266. if StaggerHit.Value == true then
  1267. break
  1268. end
  1269. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1270.  
  1271. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_STMT
  1272.  
  1273. end
  1274. end
  1275. end
  1276. for i = 0, 1, 0.15 do
  1277. fwait()
  1278. hitboxCF = handle.CFrame
  1279. hitbox.CFrame = hitboxCF
  1280. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1281. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.5) * euler(0.2, 0, 0), 0.3)
  1282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.6), 0.3)
  1283. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 1, 1.3) * euler(0, -1.57, 0), 0.3)
  1284. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1285. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.2), 0.3)
  1286. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1287. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.3)
  1288. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.3)
  1289. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1290. do
  1291. if StaggerHit.Value == true then
  1292. break
  1293. end
  1294. -- DECOMPILER ERROR at PC618: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1295.  
  1296. -- DECOMPILER ERROR at PC618: LeaveBlock: unexpected jumping out IF_STMT
  1297.  
  1298. end
  1299. end
  1300. end
  1301. hitbox.Parent = modelzorz
  1302. hitbox.Size = vt()
  1303. hitboxweld()
  1304. hboxpos.Parent = nil
  1305. attack = false
  1306. end
  1307. attackthree = function()
  1308. attack = true
  1309. for i = 0, 1, 0.2 do
  1310. fwait()
  1311. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(0.2, 0, 0), 0.3)
  1312. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.2), 0.3)
  1313. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0, 2.5, 1.5) * euler(0, -1.57, 0), 0.3)
  1314. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1315. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.2), 0.3)
  1316. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1317. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.2, 0), 0.3)
  1318. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.2, 0), 0.3)
  1319. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1320. do
  1321. if StaggerHit.Value == true then
  1322. break
  1323. end
  1324. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1325.  
  1326. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out IF_STMT
  1327.  
  1328. end
  1329. end
  1330. end
  1331. so("199145204", handle, 1, 1.2)
  1332. hbwld.Parent = nil
  1333. hboxpos.Parent = hitbox
  1334. hitbox.Parent = modelzorz
  1335. hitbox.Size = vt(2, 3, 2)
  1336. hitboxCF = handle.CFrame
  1337. hitbox.CFrame = hitboxCF
  1338. for i = 0, 1, 0.1 do
  1339. fwait()
  1340. hitboxCF = handle.CFrame
  1341. hitbox.CFrame = hitboxCF
  1342. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1343. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0, 0, 0), 0.4)
  1344. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.2), 0.4)
  1345. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.2) * euler(0, -1.57, 0), 0.4)
  1346. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1347. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1.4), 0.4)
  1348. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1349. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.4)
  1350. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.4)
  1351. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1352. do
  1353. if StaggerHit.Value == true then
  1354. break
  1355. end
  1356. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1357.  
  1358. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_STMT
  1359.  
  1360. end
  1361. end
  1362. end
  1363. hitbox.Parent = modelzorz
  1364. hitbox.Size = vt()
  1365. hitboxweld()
  1366. hboxpos.Parent = nil
  1367. attack = false
  1368. end
  1369. attackfour = function()
  1370. attack = true
  1371. for i = 0, 1, 0.15 do
  1372. fwait()
  1373. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1374. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1375. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -1.2), 0.4)
  1376. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1377. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.1), 0.4)
  1378. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1379. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 1, -0.1), 0.4)
  1380. LH.C0 = clerp(LH.C0, cf(-0.8, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1381. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1382. do
  1383. if StaggerHit.Value == true then
  1384. break
  1385. end
  1386. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1387.  
  1388. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out IF_STMT
  1389.  
  1390. end
  1391. end
  1392. end
  1393. so("200632211", handle, 1, 0.8)
  1394. hbwld.Parent = nil
  1395. hboxpos.Parent = hitbox
  1396. hitbox.Parent = modelzorz
  1397. hitbox.Size = vt(2, 3, 2)
  1398. hitboxCF = handle.CFrame
  1399. hitbox.CFrame = hitboxCF
  1400. for i = 0, 1, 0.1 do
  1401. fwait()
  1402. hitboxCF = handle.CFrame
  1403. hitbox.CFrame = hitboxCF
  1404. MagniDamage(hitbox, 3, 6, 7, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(4, 8)), nil, true)
  1405. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57) * euler(0, 0, 0), 0.3)
  1406. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.3)
  1407. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, 1.57, 0), 0.3)
  1408. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1409. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1), 0.3)
  1410. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1411. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.2)
  1412. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.2)
  1413. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1414. do
  1415. if StaggerHit.Value == true then
  1416. break
  1417. end
  1418. -- DECOMPILER ERROR at PC426: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1419.  
  1420. -- DECOMPILER ERROR at PC426: LeaveBlock: unexpected jumping out IF_STMT
  1421.  
  1422. end
  1423. end
  1424. end
  1425. hitbox.Parent = modelzorz
  1426. hitbox.Size = vt()
  1427. hitboxweld()
  1428. hboxpos.Parent = nil
  1429. attack = false
  1430. end
  1431. ShootRailGun = function()
  1432. if railgunattack == true then
  1433. return
  1434. end
  1435. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1436. ref.Anchored = true
  1437. ref.CFrame = cf(rprt8.Position)
  1438. game:GetService("Debris"):AddItem(ref, 1)
  1439. so("169380505", ref, 0.5, 1)
  1440. local MouseLook = cf((rprt8.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  1441. local hit, pos = rayCast(rprt8.Position, MouseLook.lookVector, 999, RailgunTarget.Parent)
  1442. local mag = (rprt8.Position - pos).magnitude
  1443. MagicCylinder(Color2, CFrame.new((rprt8.Position + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 1.2, 0, 1.2, 0.1)
  1444. if hit ~= nil then
  1445. ref = part(3, workspace, 0, 1, Color2, "Reference", vt())
  1446. ref.Anchored = true
  1447. ref.CFrame = cf(pos)
  1448. game:GetService("Debris"):AddItem(ref, 1)
  1449. so("153092334", ref, 0.5, 1.5)
  1450. so("169380505", ref, 0.5, 1.5)
  1451. MagicCircle(Color2, cf(pos), 10, 10, 10, 1, 1, 1, 0.07)
  1452. Damagefunc(hit, 6, 8, 0, "Normal", RootPart, 0, 2, math.random(1, 5), false, false, true, "Movement", 0.05, 100)
  1453. end
  1454. coroutine.resume(coroutine.create(function()
  1455. railgunattack = true
  1456. for i = 0, 1, 0.2 do
  1457. fwait()
  1458. rwld2.C1 = clerp(rwld2.C1, cf(0, 0, -1), 0.5)
  1459. end
  1460. for i = 0, 1, 0.1 do
  1461. fwait()
  1462. rwld2.C1 = clerp(rwld2.C1, cf(0, 0, 0), 0.4)
  1463. end
  1464. railgunattack = false
  1465. end))
  1466. end
  1467. ShootCannon = function()
  1468. if cannonattack == true then
  1469. return
  1470. end
  1471. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1472. ref.Anchored = true
  1473. ref.CFrame = cf(pprt8.Position)
  1474. game:GetService("Debris"):AddItem(ref, 1)
  1475. so("169380505", ref, 0.5, 1)
  1476. table.insert(Effects, {pprt8.Position, "Shoot", 30, MMouse.Hit.p})
  1477. coroutine.resume(coroutine.create(function()
  1478. cannonattack = true
  1479. for i = 0, 1, 0.05 do
  1480. fwait()
  1481. pwld2.C1 = clerp(pwld2.C1, cf(0, 0, -1.5), 0.5)
  1482. end
  1483. for i = 0, 1, 0.05 do
  1484. fwait()
  1485. pwld2.C1 = clerp(pwld2.C1, cf(0, 0, 0), 0.3)
  1486. end
  1487. cannonattack = false
  1488. end))
  1489. end
  1490. bladesattackone = function()
  1491. while tribladesattack == true do
  1492. fwait()
  1493. end
  1494. tribladesattack = true
  1495. for i = 0, 1, 0.2 do
  1496. fwait()
  1497. brefwld.C0 = clerp(brefwld.C0, euler(0, 0, 0) * cf(0, -2.5, 2), 0.4)
  1498. bwld1.C0 = clerp(bwld1.C0, euler(0, 0, 0) * cf(3, -0.6, -2), 0.4)
  1499. bwld7.C0 = clerp(bwld7.C0, euler(0, 0, 0) * cf(0, -0.6, -2), 0.4)
  1500. bwld13.C0 = clerp(bwld13.C0, euler(0, 0, 0) * cf(-3, -0.6, -2), 0.4)
  1501. bwld2.C0 = clerp(bwld2.C0, euler(3.14, -1.5, 1) * cf(0, 0, 0), 0.4)
  1502. bwld8.C0 = clerp(bwld8.C0, euler(3.14, -1.5, 1.57) * cf(0, 0, 0), 0.4)
  1503. bwld14.C0 = clerp(bwld14.C0, euler(3.14, -1.5, 2) * cf(0, 0, 0), 0.4)
  1504. end
  1505. so("161006195", bprt1, 0.6, math.random(100, 200) / 100)
  1506. so("161006195", bprt7, 0.6, math.random(100, 200) / 100)
  1507. so("161006195", bprt13, 0.6, math.random(100, 200) / 100)
  1508. hitboxb1.Parent = Character
  1509. hitboxb1.Size = vt(1, 2, 1)
  1510. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1511. hitboxb1.Transparency = 1
  1512. hitboxb2.Parent = Character
  1513. hitboxb2.Size = vt(1, 2, 1)
  1514. hitboxb2.CFrame = bprt10.CFrame * euler(0, 0, 1.57)
  1515. hitboxb3.Parent = Character
  1516. hitboxb3.Size = vt(1, 2, 1)
  1517. hitboxb3.CFrame = bprt16.CFrame * euler(0, 0, 1.57)
  1518. for i = 0, 1, 0.3 do
  1519. fwait()
  1520. brefwld.C0 = clerp(brefwld.C0, euler(1.57, 0, 0) * cf(0, 1.5, 3), i)
  1521. bwld2.C0 = clerp(bwld2.C0, euler(3.14, -1.5, 1.57) * cf(0, 0, 0), i)
  1522. bwld8.C0 = clerp(bwld8.C0, euler(3.14, -1.5, 1.57) * cf(0, 0, 0), i)
  1523. bwld14.C0 = clerp(bwld14.C0, euler(3.14, -1.5, 1.57) * cf(0, 0, 0), i)
  1524. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1525. hitboxb2.CFrame = bprt10.CFrame
  1526. hitboxb3.CFrame = bprt16.CFrame
  1527. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1528. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1529. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1530. end
  1531. for i = 0, 1, 0.2 do
  1532. fwait()
  1533. brefwld.C0 = clerp(brefwld.C0, euler(1.7, 0, 0) * cf(0, 2, 3), 0.4)
  1534. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1535. hitboxb2.CFrame = bprt10.CFrame
  1536. hitboxb3.CFrame = bprt16.CFrame
  1537. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1538. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1539. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1540. end
  1541. hitboxb1.Parent = nil
  1542. hitboxb2.Parent = nil
  1543. hitboxb3.Parent = nil
  1544. tribladesattack = false
  1545. end
  1546. bladesattacktwo = function()
  1547. while tribladesattack == true do
  1548. fwait()
  1549. end
  1550. tribladesattack = true
  1551. for i = 0, 1, 0.2 do
  1552. fwait()
  1553. brefwld.C0 = clerp(brefwld.C0, euler(0, -1, 0) * cf(6, 1, 3), 0.4)
  1554. bwld1.C0 = clerp(bwld1.C0, euler(0, -0.5, 0) * cf(2, -0.6, -2), 0.4)
  1555. bwld7.C0 = clerp(bwld7.C0, euler(0, 0, 0) * cf(0, -0.6, -2), 0.4)
  1556. bwld13.C0 = clerp(bwld13.C0, euler(0, 0.5, 0) * cf(-2, -0.6, -2), 0.4)
  1557. bwld2.C0 = clerp(bwld2.C0, euler(4.71, -1.57, 1.57) * cf(0, 0, 0), 0.4)
  1558. bwld8.C0 = clerp(bwld8.C0, euler(4.71, -1.57, 1.57) * cf(0, 0, 0), 0.4)
  1559. bwld14.C0 = clerp(bwld14.C0, euler(4.71, -1.57, 1.57) * cf(0, 0, 0), 0.4)
  1560. end
  1561. so("161006195", bprt1, 0.6, math.random(80, 150) / 100)
  1562. so("161006195", bprt7, 0.6, math.random(80, 150) / 100)
  1563. so("161006195", bprt13, 0.6, math.random(80, 150) / 100)
  1564. hitboxb1.Parent = Character
  1565. hitboxb1.Size = vt(1, 2, 1)
  1566. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1567. hitboxb1.Transparency = 1
  1568. hitboxb2.Parent = Character
  1569. hitboxb2.Size = vt(1, 2, 1)
  1570. hitboxb2.CFrame = bprt10.CFrame * euler(0, 0, 1.57)
  1571. hitboxb3.Parent = Character
  1572. hitboxb3.Size = vt(1, 2, 1)
  1573. hitboxb3.CFrame = bprt16.CFrame * euler(0, 0, 1.57)
  1574. for i = 0, 1, 0.4 do
  1575. fwait()
  1576. brefwld.C0 = clerp(brefwld.C0, euler(0, 1, 0) * cf(-6, 1, 3), i)
  1577. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1578. hitboxb2.CFrame = bprt10.CFrame
  1579. hitboxb3.CFrame = bprt16.CFrame
  1580. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1581. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1582. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1583. end
  1584. for i = 0, 1, 0.2 do
  1585. fwait()
  1586. brefwld.C0 = clerp(brefwld.C0, euler(0, 1.7, 0) * cf(-6, 1, -1), 0.4)
  1587. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1588. hitboxb2.CFrame = bprt10.CFrame
  1589. hitboxb3.CFrame = bprt16.CFrame
  1590. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1591. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1592. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1593. end
  1594. hitboxb1.Parent = nil
  1595. hitboxb2.Parent = nil
  1596. hitboxb3.Parent = nil
  1597. tribladesattack = false
  1598. end
  1599. bladesattackthree = function()
  1600. while tribladesattack == true do
  1601. fwait()
  1602. end
  1603. tribladesattack = true
  1604. for i = 0, 1, 0.3 do
  1605. fwait()
  1606. bwld1.C0 = clerp(bwld1.C0, cf(0, -4, -2) * euler(0, 0, 2.09), 0.4)
  1607. bwld7.C0 = clerp(bwld7.C0, cf(0, -4, -2) * euler(0, 0, 4.18), 0.4)
  1608. bwld13.C0 = clerp(bwld13.C0, cf(0, -4, -2) * euler(0, 0, 6.27), 0.4)
  1609. bwld2.C0 = clerp(bwld2.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1610. bwld8.C0 = clerp(bwld8.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1611. bwld14.C0 = clerp(bwld14.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1612. brefwld.C0 = clerp(brefwld.C0, euler(0, 0, 0) * cf(0, 0, -2), 0.4)
  1613. end
  1614. so("161006195", bprt1, 0.6, math.random(100, 200) / 100)
  1615. so("161006195", bprt7, 0.6, math.random(100, 200) / 100)
  1616. so("161006195", bprt13, 0.6, math.random(100, 200) / 100)
  1617. hitboxb1.Parent = Character
  1618. hitboxb1.Size = vt(1, 2, 1)
  1619. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1620. hitboxb1.Transparency = 1
  1621. hitboxb2.Parent = Character
  1622. hitboxb2.Size = vt(1, 2, 1)
  1623. hitboxb2.CFrame = bprt10.CFrame * euler(0, 0, 1.57)
  1624. hitboxb3.Parent = Character
  1625. hitboxb3.Size = vt(1, 2, 1)
  1626. hitboxb3.CFrame = bprt16.CFrame * euler(0, 0, 1.57)
  1627. n = math.random(-50, 50)
  1628. for i = 0, 1, 0.4 do
  1629. fwait()
  1630. bwld1.C0 = clerp(bwld1.C0, cf(0, -1.2, -2) * euler(0, 0, 2.09), 0.4)
  1631. bwld7.C0 = clerp(bwld7.C0, cf(0, -1.2, -2) * euler(0, 0, 4.18), 0.4)
  1632. bwld13.C0 = clerp(bwld13.C0, cf(0, -1.2, -2) * euler(0, 0, 6.27), 0.4)
  1633. bwld2.C0 = clerp(bwld2.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1634. bwld8.C0 = clerp(bwld8.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1635. bwld14.C0 = clerp(bwld14.C0, euler(3.14, -1.3, 1.57) * cf(0, 0, 0), 0.4)
  1636. brefwld.C0 = clerp(brefwld.C0, euler(0, 0, n) * cf(0, 0, 6), 0.4)
  1637. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1638. hitboxb2.CFrame = bprt10.CFrame
  1639. hitboxb3.CFrame = bprt16.CFrame
  1640. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1641. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1642. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1643. end
  1644. n = math.random(-50, 50)
  1645. for i = 0, 1, 0.3 do
  1646. fwait()
  1647. bwld1.C0 = clerp(bwld1.C0, cf(0, -1, -2) * euler(0, 0, 2.09), 0.4)
  1648. bwld7.C0 = clerp(bwld7.C0, cf(0, -1, -2) * euler(0, 0, 4.18), 0.4)
  1649. bwld13.C0 = clerp(bwld13.C0, cf(0, -1, -2) * euler(0, 0, 6.27), 0.4)
  1650. brefwld.C0 = clerp(brefwld.C0, euler(0, 0, n) * cf(0, 0, 7), 0.4)
  1651. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1652. hitboxb2.CFrame = bprt10.CFrame
  1653. hitboxb3.CFrame = bprt16.CFrame
  1654. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1655. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1656. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1657. end
  1658. hitboxb1.Parent = nil
  1659. hitboxb2.Parent = nil
  1660. hitboxb3.Parent = nil
  1661. tribladesattack = false
  1662. end
  1663. bladesattackfour = function()
  1664. while tribladesattack == true do
  1665. fwait()
  1666. end
  1667. tribladesattack = true
  1668. for i = 0, 1, 0.2 do
  1669. fwait()
  1670. bwld1.C0 = clerp(bwld1.C0, cf(0, -1, 0) * euler(0, 0, 2.09), 0.4)
  1671. bwld7.C0 = clerp(bwld7.C0, cf(0, -1, 0) * euler(0, 0, 4.18), 0.4)
  1672. bwld13.C0 = clerp(bwld13.C0, cf(0, -1, 0) * euler(0, 0, 6.27), 0.4)
  1673. bwld2.C0 = clerp(bwld2.C0, euler(1.57, 0, -1.57) * cf(0, 0, 0), 0.4)
  1674. bwld8.C0 = clerp(bwld8.C0, euler(1.57, 0, -1.57) * cf(0, 0, 0), 0.4)
  1675. bwld14.C0 = clerp(bwld14.C0, euler(1.57, 0, -1.57) * cf(0, 0, 0), 0.4)
  1676. brefwld.C0 = clerp(brefwld.C0, euler(-1.57, 0, 0) * cf(-5, -0.5, 0), 0.4)
  1677. end
  1678. so("161006195", bprt1, 0.6, math.random(40, 80) / 100)
  1679. so("161006195", bprt7, 0.6, math.random(40, 80) / 100)
  1680. so("161006195", bprt13, 0.6, math.random(40, 80) / 100)
  1681. hitboxb1.Parent = Character
  1682. hitboxb1.Size = vt(1, 2, 1)
  1683. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1684. hitboxb1.Transparency = 1
  1685. hitboxb2.Parent = Character
  1686. hitboxb2.Size = vt(1, 2, 1)
  1687. hitboxb2.CFrame = bprt10.CFrame * euler(0, 0, 1.57)
  1688. hitboxb3.Parent = Character
  1689. hitboxb3.Size = vt(1, 2, 1)
  1690. hitboxb3.CFrame = bprt16.CFrame * euler(0, 0, 1.57)
  1691. for i = 0, 1, 0.6 do
  1692. fwait()
  1693. bwld1.C0 = clerp(bwld1.C0, cf(0, -1, 0) * euler(0, 0, 5.19), 0.5)
  1694. bwld7.C0 = clerp(bwld7.C0, cf(0, -1, 0) * euler(0, 0, 7.28), 0.5)
  1695. bwld13.C0 = clerp(bwld13.C0, cf(0, -1, 0) * euler(0, 0, 9.37), 0.5)
  1696. brefwld.C0 = clerp(brefwld.C0, euler(-1.57, 0, 0) * cf(0, -0.5, 8), 0.5)
  1697. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1698. hitboxb2.CFrame = bprt10.CFrame
  1699. hitboxb3.CFrame = bprt16.CFrame
  1700. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1701. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1702. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1703. end
  1704. for i = 0, 1, 0.4 do
  1705. fwait()
  1706. bwld1.C0 = clerp(bwld1.C0, cf(0, -1, 0) * euler(0, 0, 7.09), 0.5)
  1707. bwld7.C0 = clerp(bwld7.C0, cf(0, -1, 0) * euler(0, 0, 9.18), 0.5)
  1708. bwld13.C0 = clerp(bwld13.C0, cf(0, -1, 0) * euler(0, 0, 11.27), 0.5)
  1709. brefwld.C0 = clerp(brefwld.C0, euler(-1.57, 0, 0) * cf(0, -0.5, 20), 0.5)
  1710. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1711. hitboxb2.CFrame = bprt10.CFrame
  1712. hitboxb3.CFrame = bprt16.CFrame
  1713. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1714. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1715. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1716. end
  1717. for i = 0, 1, 0.4 do
  1718. fwait()
  1719. brefwld.C0 = clerp(brefwld.C0, euler(-1.57, 0, 0) * cf(0, -2, 0), 0.5)
  1720. bwld1.C0 = clerp(bwld1.C0, cf(0, -1, 0) * euler(0, 0, 2.09), 0.4)
  1721. bwld7.C0 = clerp(bwld7.C0, cf(0, -1, 0) * euler(0, 0, 4.18), 0.4)
  1722. bwld13.C0 = clerp(bwld13.C0, cf(0, -1, 0) * euler(0, 0, 6.27), 0.4)
  1723. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1724. hitboxb2.CFrame = bprt10.CFrame
  1725. hitboxb3.CFrame = bprt16.CFrame
  1726. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1727. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1728. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1729. end
  1730. hitboxb1.Parent = nil
  1731. hitboxb2.Parent = nil
  1732. hitboxb3.Parent = nil
  1733. tribladesattack = false
  1734. end
  1735. BladesDamage = function(pitch)
  1736. so("161006195", bprt1, 0.6, pitch)
  1737. so("161006195", bprt7, 0.6, pitch)
  1738. so("161006195", bprt13, 0.6, pitch)
  1739. hitboxb1.Parent = Character
  1740. hitboxb1.Size = vt(1, 2, 1)
  1741. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1742. hitboxb1.Transparency = 1
  1743. hitboxb2.Parent = Character
  1744. hitboxb2.Size = vt(1, 2, 1)
  1745. hitboxb2.CFrame = bprt10.CFrame * euler(0, 0, 1.57)
  1746. hitboxb3.Parent = Character
  1747. hitboxb3.Size = vt(1, 2, 1)
  1748. hitboxb3.CFrame = bprt16.CFrame * euler(0, 0, 1.57)
  1749. coroutine.resume(coroutine.create(function(Con1, Con2, Con3)
  1750. while attack == true do
  1751. fwait()
  1752. hitboxb1.CFrame = bprt4.CFrame * euler(0, 0, 1.57)
  1753. hitboxb2.CFrame = bprt10.CFrame
  1754. hitboxb3.CFrame = bprt16.CFrame
  1755. MagniDamage(hitboxb1, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1756. MagniDamage(hitboxb2, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1757. MagniDamage(hitboxb3, 2, 5, 7, math.random(1, 5), "Normal", BladesTarget, 0.4, 1, math.random(1, 3), false, true, true, nil, nil, nil, "Slash")
  1758. end
  1759. hitboxb1.Parent = nil
  1760. hitboxb2.Parent = nil
  1761. hitboxb3.Parent = nil
  1762. end), con1, con2, con3)
  1763. end
  1764. StatConvert = function()
  1765. attack = true
  1766. for i = 0, 1, 0.1 do
  1767. fwait()
  1768. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1769. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1770. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.5) * euler(1.5, 0, -1.5) * euler(0, 0, 0), 0.3)
  1771. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1772. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.5) * euler(1.5, 0, 1.5) * euler(0, 0, 0), 0.3)
  1773. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1774. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1775. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1776. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1777. do
  1778. if StaggerHit.Value == true then
  1779. break
  1780. end
  1781. -- DECOMPILER ERROR at PC189: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1782.  
  1783. -- DECOMPILER ERROR at PC189: LeaveBlock: unexpected jumping out IF_STMT
  1784.  
  1785. end
  1786. end
  1787. end
  1788. for _,i in pairs(Decrease:children()) do
  1789. if i.Name == "DecreaseDef" then
  1790. i.Name = "DecreaseAtk"
  1791. i.Value = i.Value * 0.5
  1792. else
  1793. if i.Name == "DecreaseAtk" then
  1794. i.Name = "DecreaseDef"
  1795. i.Value = i.Value * 2
  1796. end
  1797. end
  1798. end
  1799. attack = false
  1800. for i = 1, 30 do
  1801. fwait()
  1802. for i = 1, 2 do
  1803. ElecEffect(cf(RootPart.Position), 2, 3, 1)
  1804. end
  1805. end
  1806. end
  1807. do1 = function()
  1808. if givingarmor == true then
  1809. givingarmor = false
  1810. cooldowns[1] = 0
  1811. RailgunTarget = RootPart
  1812. end
  1813. if attack == true then
  1814. return
  1815. end
  1816. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1817. return
  1818. end
  1819. if cooldownmax <= cooldowns[1] and mana.Value >= 30 then
  1820. givingrailgun = true
  1821. attack = true
  1822. mana.Value = mana.Value - 30
  1823. MagicSpecial(BrickColor.new(NewCol), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.1)
  1824. local dec = Instance.new("NumberValue", Decrease)
  1825. dec.Name = "DecreaseMvmt"
  1826. dec.Value = 0.4
  1827. for i = 0, 1, 0.2 do
  1828. fwait()
  1829. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.5)
  1830. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.5)
  1831. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.7, 0, 0) * euler(0, 0, -0.5), 0.5)
  1832. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1833. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.3, 0, 0) * euler(0, 0, 0.8), 0.5)
  1834. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1835. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  1836. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1, 0.4), 0.5)
  1837. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1838. do
  1839. if StaggerHit.Value == true then
  1840. break
  1841. end
  1842. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1843.  
  1844. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_STMT
  1845.  
  1846. end
  1847. end
  1848. end
  1849. givingarmor = true
  1850. while givingarmor == true do
  1851. if givingarmor == true then
  1852. fwait()
  1853. ElecEffect(RightArm.CFrame, 1, 2, 1)
  1854. end
  1855. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  1856. break
  1857. end
  1858. end
  1859. givingrailgun = false
  1860. DecreaseStat(Character, "Defense", -0.1, 400)
  1861. DecreaseStat(Character, "Movement", 0.1, 400)
  1862. cooldowns[1] = 0
  1863. givingarmor = false
  1864. dec.Parent = nil
  1865. if RailgunTarget ~= nil then
  1866. for i = 0, 1, 0.2 do
  1867. fwait()
  1868. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  1869. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  1870. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  1871. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1872. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  1873. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1874. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  1875. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  1876. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1877. do
  1878. if StaggerHit.Value == true then
  1879. break
  1880. end
  1881. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1882.  
  1883. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  1884.  
  1885. end
  1886. end
  1887. end
  1888. DecreaseStat(RailgunTarget.Parent, "Defense", -0.2, 280)
  1889. rwld1.Part1 = RailgunTarget
  1890. model1.Parent = RailgunTarget.Parent
  1891. MagicSpecial(BrickColor.new(NewCol), rprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.5, 0.5, 0.5, 0.05)
  1892. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1893. ref.Anchored = true
  1894. ref.CFrame = cf(rprt1.Position)
  1895. game:GetService("Debris"):AddItem(ref, 1)
  1896. so("203691326", ref, 1, 1)
  1897. for i = 1, 5 do
  1898. ElecEffect(cf(rprt1.Position), 3, 3, 3)
  1899. end
  1900. for i = 1, #Railgun do
  1901. Railgun[i].Parent = model1
  1902. RailgunWelds[i].Parent = Railgun[1]
  1903. end
  1904. elecnum = 0
  1905. attack = false
  1906. for i = 1, 50 do
  1907. fwait()
  1908. ElecEffect(cf(rprt1.Position), 2, 2, 2)
  1909. end
  1910. else
  1911. do
  1912. attack = false
  1913. end
  1914. end
  1915. end
  1916. end
  1917. do2 = function()
  1918. if givingarmor == true then
  1919. givingarmor = false
  1920. cooldowns[2] = 0
  1921. CannonTarget = RootPart
  1922. end
  1923. if attack == true then
  1924. return
  1925. end
  1926. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1927. return
  1928. end
  1929. if cooldownmax <= cooldowns[2] and mana.Value >= 30 then
  1930. attack = true
  1931. mana.Value = mana.Value - 30
  1932. givingplasma = true
  1933. MagicSpecial(BrickColor.new(NewCol), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.1)
  1934. local dec = Instance.new("NumberValue", Decrease)
  1935. dec.Name = "DecreaseMvmt"
  1936. dec.Value = 0.4
  1937. for i = 0, 1, 0.2 do
  1938. fwait()
  1939. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.5)
  1940. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.5)
  1941. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.7, 0, 0) * euler(0, 0, -0.5), 0.5)
  1942. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1943. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.3, 0, 0) * euler(0, 0, 0.8), 0.5)
  1944. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1945. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  1946. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1, 0.4), 0.5)
  1947. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1948. do
  1949. if StaggerHit.Value == true then
  1950. break
  1951. end
  1952. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1953.  
  1954. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_STMT
  1955.  
  1956. end
  1957. end
  1958. end
  1959. givingarmor = true
  1960. while givingarmor == true do
  1961. if givingarmor == true then
  1962. fwait()
  1963. ElecEffect(RightArm.CFrame, 1, 2, 1)
  1964. end
  1965. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  1966. break
  1967. end
  1968. end
  1969. givingplasma = false
  1970. DecreaseStat(Character, "Defense", -0.1, 400)
  1971. DecreaseStat(Character, "Movement", 0.1, 400)
  1972. cooldowns[2] = 0
  1973. givingarmor = false
  1974. dec.Parent = nil
  1975. if CannonTarget ~= nil then
  1976. for i = 0, 1, 0.2 do
  1977. fwait()
  1978. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  1979. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  1980. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  1981. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1982. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  1983. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1984. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  1985. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  1986. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1987. do
  1988. if StaggerHit.Value == true then
  1989. break
  1990. end
  1991. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1992.  
  1993. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  1994.  
  1995. end
  1996. end
  1997. end
  1998. DecreaseStat(CannonTarget.Parent, "Defense", -0.2, 300)
  1999. pwld1.Part1 = CannonTarget
  2000. model2.Parent = CannonTarget.Parent
  2001. MagicSpecial(BrickColor.new(NewCol), pprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.5, 0.5, 0.5, 0.05)
  2002. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2003. ref.Anchored = true
  2004. ref.CFrame = cf(pprt1.Position)
  2005. game:GetService("Debris"):AddItem(ref, 1)
  2006. so("203691326", ref, 1, 1)
  2007. for i = 1, 5 do
  2008. ElecEffect(cf(pprt1.Position), 3, 3, 3)
  2009. end
  2010. for i = 1, #Plasma do
  2011. Plasma[i].Parent = model2
  2012. PlasmaWelds[i].Parent = Plasma[1]
  2013. end
  2014. elecnum = 0
  2015. attack = false
  2016. for i = 1, 50 do
  2017. fwait()
  2018. ElecEffect(cf(pprt1.Position), 2, 2, 2)
  2019. end
  2020. else
  2021. do
  2022. attack = false
  2023. end
  2024. end
  2025. end
  2026. end
  2027. do3 = function()
  2028. if givingarmor == true then
  2029. givingarmor = false
  2030. cooldowns[3] = 0
  2031. BladesTarget = RootPart
  2032. end
  2033. if attack == true then
  2034. return
  2035. end
  2036. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2037. return
  2038. end
  2039. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2040. attack = true
  2041. mana.Value = mana.Value - 30
  2042. givingblades = true
  2043. MagicSpecial(BrickColor.new(NewCol), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.1)
  2044. local dec = Instance.new("NumberValue", Decrease)
  2045. dec.Name = "DecreaseMvmt"
  2046. dec.Value = 0.4
  2047. for i = 0, 1, 0.2 do
  2048. fwait()
  2049. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.5)
  2050. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.5)
  2051. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.7, 0, 0) * euler(0, 0, -0.5), 0.5)
  2052. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2053. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.3, 0, 0) * euler(0, 0, 0.8), 0.5)
  2054. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2055. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  2056. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1, 0.4), 0.5)
  2057. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2058. do
  2059. if StaggerHit.Value == true then
  2060. break
  2061. end
  2062. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2063.  
  2064. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_STMT
  2065.  
  2066. end
  2067. end
  2068. end
  2069. givingarmor = true
  2070. while givingarmor == true do
  2071. if givingarmor == true then
  2072. fwait()
  2073. ElecEffect(RightArm.CFrame, 1, 2, 1)
  2074. end
  2075. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  2076. break
  2077. end
  2078. end
  2079. givingblades = false
  2080. DecreaseStat(Character, "Defense", -0.1, 400)
  2081. DecreaseStat(Character, "Movement", 0.1, 400)
  2082. cooldowns[3] = 0
  2083. givingarmor = false
  2084. dec.Parent = nil
  2085. if BladesTarget ~= nil then
  2086. for i = 0, 1, 0.2 do
  2087. fwait()
  2088. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2094. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2095. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2096. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2097. do
  2098. if StaggerHit.Value == true then
  2099. break
  2100. end
  2101. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2102.  
  2103. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  2104.  
  2105. end
  2106. end
  2107. end
  2108. DecreaseStat(BladesTarget.Parent, "Damage", -0.2, 300)
  2109. brefwld.Part1 = BladesTarget
  2110. model3.Parent = BladesTarget.Parent
  2111. MagicSpecial(BrickColor.new(NewCol), bprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  2112. MagicSpecial(BrickColor.new(NewCol), bprt7.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  2113. MagicSpecial(BrickColor.new(NewCol), bprt13.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  2114. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2115. ref.Anchored = true
  2116. ref.CFrame = cf(bprt1.Position)
  2117. game:GetService("Debris"):AddItem(ref, 1)
  2118. so("203691326", ref, 1, 1)
  2119. for i = 1, 5 do
  2120. ElecEffect(cf(bref.Position), 3, 3, 3)
  2121. end
  2122. for i = 1, #Blades do
  2123. Blades[i].Parent = model3
  2124. BladesWelds[i].Parent = Blades[1]
  2125. end
  2126. attack = false
  2127. for i = 1, 50 do
  2128. fwait()
  2129. ElecEffect(cf(bref.Position), 2, 2, 2)
  2130. end
  2131. else
  2132. do
  2133. attack = false
  2134. end
  2135. end
  2136. end
  2137. end
  2138. ignoretab2 = {}
  2139. NewPart = function(size, cframe, color, meshtype, meshscale)
  2140. local par = Instance.new("Part")
  2141. par.TopSurface = 0
  2142. par.BottomSurface = 0
  2143. par.Size = size
  2144. par.CFrame = cframe
  2145. par.BrickColor = color
  2146. par.Anchored = true
  2147. par.CanCollide = false
  2148. do
  2149. if meshtype then
  2150. local m = Instance.new(meshtype, par)
  2151. m.Scale = meshscale
  2152. end
  2153. table.insert(ignoretab2, par)
  2154. return par
  2155. end
  2156. end
  2157. vPlayer = game.Players.LocalPlayer
  2158. GetTeamFromColor = function(color)
  2159. for _,v in pairs(game:GetService("Teams"):children()) do
  2160. if color == v.TeamColor then
  2161. return v.Name
  2162. end
  2163. end
  2164. end
  2165. drawline = function(pos, pos2)
  2166. local par, loc, normal = nil, nil, nil
  2167. for i = 1, 100 do
  2168. par = workspace:FindPartOnRayWithIgnoreList(Ray.new(pos, -(pos - pos2)), ignoretab2)
  2169. if par then
  2170. -- DECOMPILER ERROR at PC45: Unhandled construct in 'MakeBoolean' P3
  2171.  
  2172. -- DECOMPILER ERROR at PC45: Unhandled construct in 'MakeBoolean' P3
  2173.  
  2174. if (par.CanCollide == false and par.Parent:FindFirstChild("Humanoid") == nil) or par:IsDescendantOf(vPlayer) then
  2175. table.insert(ignoretab2, par)
  2176. else
  2177. local ok = true
  2178. do
  2179. do
  2180. do
  2181. if par.Parent:FindFirstChild("Humanoid") then
  2182. local vp = game.Players:GetPlayerFromCharacter(par.Parent)
  2183. -- DECOMPILER ERROR at PC81: Unhandled construct in 'MakeBoolean' P1
  2184.  
  2185. if vp ~= nil and vp.Neutral ~= true and vPlayer.Neutral ~= true and GetTeamFromColor(vp.TeamColor) == GetTeamFromColor(vPlayer.TeamColor) then
  2186. table.insert(ignoretab2, par)
  2187. ok = false
  2188. end
  2189. end
  2190. if vPlayer.Neutral ~= true and par.Parent:FindFirstChild("Alignment") ~= nil and vPlayer.TeamColor.Color == par.Parent.Alignment.Value then
  2191. table.insert(ignoretab2, par)
  2192. ok = false
  2193. end
  2194. if ok then
  2195. return par, loc, normal
  2196. end
  2197. do return par, loc, normal end
  2198. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out DO_STMT
  2199.  
  2200. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out DO_STMT
  2201.  
  2202. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2203.  
  2204. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out IF_STMT
  2205.  
  2206. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2207.  
  2208. -- DECOMPILER ERROR at PC119: LeaveBlock: unexpected jumping out IF_STMT
  2209.  
  2210. end
  2211. end
  2212. end
  2213. end
  2214. end
  2215. end
  2216. print("oops")
  2217. return nil, Vector3.new(0, 0, 0), Vector3.new(0, 0, 0)
  2218. end
  2219. lasersounds = {412755503, 412755564, 412755598, 412755669, 412756057, 412756123, 412756170, 412756199}
  2220. GetNubs = function()
  2221. Nubs = {}
  2222. for _,v in pairs(workspace:children()) do
  2223. if v:FindFirstChild("Humanoid") ~= nil and v:FindFirstChild("Torso") ~= nil and v.Name ~= game.Players.LocalPlayer.Name and v.Name ~= vPlayer.Name .. "Subunit" and (v.Torso.Position - vPlayer.Character.HumanoidRootPart.Position).magnitude <= 600 and v.Humanoid.Health > 0 then
  2224. local vp = game.Players:GetPlayerFromCharacter(v)
  2225. if vp == nil then
  2226. table.insert(Nubs, v)
  2227. else
  2228. if vp.Neutral == true and vPlayer.Neutral == true then
  2229. table.insert(Nubs, v)
  2230. else
  2231. if GetTeamFromColor(vp.TeamColor) ~= GetTeamFromColor(vPlayer.TeamColor) then
  2232. table.insert(Nubs, v)
  2233. end
  2234. end
  2235. end
  2236. end
  2237. end
  2238. end
  2239. Nubs = {}
  2240. GetNubsInRadius = function(pos, radius)
  2241. local radius = radius
  2242. local filtered = {}
  2243. for _,v in pairs(Nubs) do
  2244. if v:FindFirstChild("Torso") ~= nil and v:FindFirstChild("Humanoid") ~= nil then
  2245. local cpos = pos
  2246. do
  2247. do
  2248. if v.Humanoid:GetState() == Enum.HumanoidStateType.Jumping or v.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  2249. local ydiff = (v.Torso.Position.y - vPlayer.Character.Torso.Position.y) / 1
  2250. if ydiff > 5 then
  2251. ydiff = 5
  2252. end
  2253. cpos = pos + Vector3.new(0, ydiff, 0)
  2254. end
  2255. if v.Name == "Siegmund" then
  2256. cpos = cpos - Vector3.new(0, 5, 0)
  2257. end
  2258. if v.Torso.Position - (cpos).magnitude <= radius then
  2259. table.insert(filtered, v)
  2260. end
  2261. -- DECOMPILER ERROR at PC74: LeaveBlock: unexpected jumping out DO_STMT
  2262.  
  2263. -- DECOMPILER ERROR at PC74: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2264.  
  2265. -- DECOMPILER ERROR at PC74: LeaveBlock: unexpected jumping out IF_STMT
  2266.  
  2267. end
  2268. end
  2269. end
  2270. end
  2271. return filtered
  2272. end
  2273.  
  2274. fwait = function(t)
  2275. if t == nil then
  2276. t = 0.033333333333333
  2277. else
  2278. if t == 0 then
  2279. t = 0.033333333333333
  2280. end
  2281. end
  2282. local s = 0
  2283. repeat
  2284. s = s + 0.033333333333333
  2285. ArtificialHB.Event:wait()
  2286. until t <= s
  2287. return s, workspace.DistributedGameTime
  2288. end
  2289. do4 = function()
  2290. if attack == true then
  2291. return
  2292. end
  2293. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2294. return
  2295. end
  2296. if cooldownmax <= cooldowns[4] and mana.Value >= 40 then
  2297. attack = true
  2298. cooldowns[4] = 0
  2299. mana.Value = mana.Value - 40
  2300. GetNubs()
  2301. table.insert(Nubs, vPlayer.Character)
  2302. local ppos = vPlayer:GetMouse().Hit.p
  2303. do
  2304. local h, p, k = drawline(ppos + Vector3.new(0, 450, 0), ppos - Vector3.new(0, 450, 0))
  2305. local r, g, b = nil, nil, nil
  2306. local Col1 = BrickColor.new(NewCol)
  2307. r = Col1.Color.r + 0.3
  2308. g = Col1.Color.g + 0.3
  2309. b = Col1.Color.b + 0.3
  2310. if r > 1 then
  2311. r = 1
  2312. end
  2313. if g > 1 then
  2314. g = 1
  2315. end
  2316. if b > 1 then
  2317. b = 1
  2318. end
  2319. local Col1C = (Color3.new(r, g, b))
  2320. local pro, blolb, r, psl, par, loc, nor = nil, nil, nil, nil, nil, nil, nil
  2321. local x = {}
  2322. local joj, kd = false, false
  2323. for i = 1, 10 do
  2324. x[i] = i
  2325. end
  2326. local m = Instance.new("Model", workspace)
  2327. m.Name = "IONCANNON_EFFECTS"
  2328. game:GetService("Debris"):AddItem(m, 20)
  2329. local kt = tick()
  2330. local soloc = Instance.new("Part", workspace)
  2331. soloc.Transparency = 1
  2332. soloc.CanCollide = false
  2333. soloc.Anchored = true
  2334. soloc.Name = "Effect"
  2335. soloc.Size = Vector3.new(0.2, 0.2, 0.2)
  2336. soloc.CFrame = CFrame.new(ppos + Vector3.new(0, 450, 0), ppos - Vector3.new(0, 450, 0)) --(p)
  2337. game:GetService("Debris"):AddItem(soloc, 25)
  2338. local so = Instance.new("Sound", vPlayer.Character.Head)
  2339. so.Volume = 0.35
  2340. so.Pitch = 1
  2341. so.SoundId = "http://www.roblox.com/asset/?id=412756347"
  2342. coroutine.resume(coroutine.create(function(so)
  2343. wait()
  2344. so:Play()
  2345. end), so)
  2346. for i = 0, 1, 0.1 do
  2347. fwait()
  2348. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5)
  2349. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
  2350. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.7, 0, 0) * euler(0, 0, 0), 0.4)
  2351. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2352. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0, 0, 0) * euler(0, 0, 0), 0.4)
  2353. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2354. end
  2355. fwait(0.5)
  2356. local so = Instance.new("Sound", vPlayer.Character.Head)
  2357. so.Volume = 0.4
  2358. so.Pitch = 1.1
  2359. so.SoundId = "http://www.roblox.com/asset/?id=412756417"
  2360. coroutine.resume(coroutine.create(function(so)
  2361. wait()
  2362. so:Play()
  2363. end), so)
  2364. attack = false
  2365. local so = Instance.new("Sound", soloc)
  2366. so.Volume = 0.8
  2367. so.Pitch = 1.2
  2368. so.SoundId = "http://www.roblox.com/asset/?id=412756315"
  2369. coroutine.resume(coroutine.create(function(so)
  2370. wait()
  2371. so:Play()
  2372. end), so)
  2373. local kuck = false
  2374. local lasparts = {}
  2375. coroutine.resume(coroutine.create(function()
  2376. local ksl, mdist, mpl = 0, 0, 0
  2377. repeat
  2378. fwait(0.12)
  2379. ksl = ksl + 1
  2380. if ksl == 50 then
  2381. GetNubs()
  2382. table.insert(Nubs, vPlayer.Character)
  2383. ksl = 0
  2384. end
  2385. mdist = (lasparts[1].Position - p).magnitude
  2386. print(mdist)
  2387. for _,v in pairs(Nubs) do
  2388. if v and v.Parent and v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 then
  2389. mpl = Vector3.new(v.Torso.Position.x, 0, v.Torso.Position.z) - Vector3.new(p.x, 0, p.z).magnitude
  2390. if mdist - 4.5 < mpl and mpl < mdist + 4.5 then
  2391. print("!!!!", time())
  2392. for __,vv in pairs(lasparts) do
  2393. if vv.Position - v.Torso.Position.magnitude <= 10 and vv.Position.y - 4 <= v.Torso.Position.y then
  2394. if v ~= vPlayer.Character then
  2395. Damagefunc(v.Torso, 1, 1, 0, "Normal", RootPart, 0, 1, 1, nil, false)
  2396. DecreaseStat(v.Parent, "Movement", 0.06, 200)
  2397. break
  2398. end
  2399. vPlayer.Character.Humanoid:TakeDamage(1 / vPlayer.Character.Stats.Defense.Value)
  2400. DecreaseStat(vPlayer.Character, "Movement", 0.06, 200)
  2401. showDamage(vPlayer.Character, math.floor(1 / vPlayer.Character.Stats.Defense.Value), "Damage")
  2402. break
  2403. end
  2404. end
  2405. end
  2406. end
  2407. end
  2408. until kuck == true
  2409. end))
  2410. for i = 1, 10 do
  2411. r = math.random(1, #x)
  2412. if #x > 1 then
  2413. blolb = x[r]
  2414. else
  2415. blolb = x[1]
  2416. end
  2417. psl = ppos + Vector3.new(0, 450, 0), ppos - Vector3.new(0, 450, 0) + Vector3.new(math.cos(math.rad(36 * blolb)) * 35, 0, math.sin(math.rad(36 * blolb)) * 35) --p + Vector3.new(math.cos(math.rad(36 * blolb)) * 35, 0, math.sin(math.rad(36 * blolb)) * 35)
  2418. par = drawline(psl + Vector3.new(0, 480, 0), psl - Vector3.new(0, 480, 0))
  2419. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos) * CFrame.Angles(math.random(-30, 30) / 50, math.random(-30, 30) / 50, math.random(-30, 30) / 50), Col1, "SpecialMesh", Vector3.new(2, 2, 2))
  2420. pc.Parent = workspace
  2421. pc.Anchored = true
  2422. pc.CanCollide = false
  2423. pc.Mesh.MeshType = "Sphere"
  2424. pc.Transparency = 1
  2425. pc.Material = "Neon"
  2426. game:GetService("Debris"):AddItem(pc, 15)
  2427. coroutine.resume(coroutine.create(function(p, V, x)
  2428. for i = 1, 12 do
  2429. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1.6, 1.6, 1.6) / (1 + i / 6.5)
  2430. p.Transparency = 0.25 + i / 16
  2431. p.CFrame = p.CFrame * V
  2432. fwait()
  2433. end
  2434. p:Remove()
  2435. end), pc, CFrame.Angles(math.rad(math.random(-6, 6)), math.rad(math.random(-16, 16)), math.rad(math.random(-6, 6))))
  2436. table.insert(ignoretab2, pc)
  2437. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 1.25, 0)) * CFrame.Angles(0, math.random(-180, 180) * math.rad(1), 0), Col1, "SpecialMesh", Vector3.new(4, 4, 4))
  2438. pc.Mesh.MeshType = "FileMesh"
  2439. pc.Anchored = true
  2440. pc.CanCollide = false
  2441. pc.Parent = workspace
  2442. pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2443. pc.Name = "Shockwave"
  2444. pc.Material = "Neon"
  2445. game:GetService("Debris"):AddItem(pc, 5)
  2446. coroutine.resume(coroutine.create(function(p)
  2447. for i = 1, 12 do
  2448. p.Transparency = 0.25 + i / 16
  2449. p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(5 + i / 20), 0) + Vector3.new(0, -0.11666666666667, 0)
  2450. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(i / 10, -0.25, i / 10)
  2451. fwait()
  2452. end
  2453. p:Remove()
  2454. end), pc)
  2455. local so = Instance.new("Sound", pc)
  2456. so.Volume = 1
  2457. so.Pitch = 1
  2458. so.SoundId = "http://www.roblox.com/asset/?id=" .. lasersounds[math.random(1, 8)]
  2459. coroutine.resume(coroutine.create(function(so)
  2460. wait()
  2461. so:Play()
  2462. end), so)
  2463. for kek = 1, 3 do
  2464. pro = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos), Col1, "CylinderMesh", Vector3.new(1.7 - kek * 0.1, 1600, 1.7 - kek * 0.1) - Vector3.new(0.25, 0, 0.25) * 1.95 ^ (kek - 1))
  2465. pro.Anchored = true
  2466. pro.Mesh.Offset = Vector3.new(0, 799, 0)
  2467. pro.Material = "Neon"
  2468. pro.Name = "Las" .. i .. kek
  2469. pro.Parent = m
  2470. pro.Transparency = 1 - 0.2 * 1.7 ^ (kek - 1)
  2471. game:GetService("Debris"):AddItem(pro, 10)
  2472. if kek == 1 then
  2473. table.insert(lasparts, pro)
  2474. coroutine.resume(coroutine.create(function(k, l)
  2475. repeat
  2476. fwait()
  2477. until joj == true
  2478. local j, c, h, psl, pc = nil, nil, nil, nil, nil
  2479. local klr, i, lj = 0, 0, 0
  2480. repeat
  2481. if lj < 0.008 then
  2482. lj = lj + 0.001
  2483. else
  2484. lj = 0.008
  2485. end
  2486. klr = klr + i * lj
  2487. if klr > 34.75 then
  2488. klr = 34.75
  2489. end
  2490. psl = ppos
  2491. j = drawline(psl + Vector3.new(0, 480, 0), psl - Vector3.new(0, 480, 0))
  2492. k.CFrame = CFrame.new(ppos)
  2493. i = i + 1
  2494. m["Las" .. l .. "2"].CFrame = k.CFrame
  2495. m["Las" .. l .. "3"].CFrame = k.CFrame
  2496. fwait()
  2497. until klr >= 34.75
  2498. psl = ppos
  2499. -- DECOMPILER ERROR at PC144: Overwrote pending register: R4 in 'AssignReg'
  2500.  
  2501. -- DECOMPILER ERROR at PC145: Overwrote pending register: R3 in 'AssignReg'
  2502.  
  2503. j = drawline(psl + Vector3.new(0, 480, 0), psl - Vector3.new(0, 480, 0))
  2504. k.CFrame = CFrame.new(ppos)
  2505. kd = true
  2506. end), pro, i)
  2507. local sizeseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.8), NumberSequenceKeypoint.new(1, 0)})
  2508. local transseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.66), NumberSequenceKeypoint.new(1, 1)})
  2509. local sus1 = Instance.new("ParticleEmitter", pro)
  2510. sus1.Color = ColorSequence.new(Col1.Color, Col1C)
  2511. sus1.Transparency = transseq
  2512. sus1.Size = sizeseq
  2513. sus1.LightEmission = 0.33
  2514. sus1.Rotation = NumberRange.new(-180, 180)
  2515. sus1.Lifetime = NumberRange.new(0.8, 0.8)
  2516. sus1.RotSpeed = NumberRange.new(-10, 10)
  2517. sus1.Texture = "http://www.roblox.com/asset/?id=242911609"
  2518. sus1.Speed = NumberRange.new(5, 8)
  2519. sus1.VelocitySpread = 3
  2520. sus1.Rate = 125
  2521. sus1.ZOffset = 0
  2522. sus1.Name = "ParticleEmitter1"
  2523. local sizeseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6), NumberSequenceKeypoint.new(1, 0)})
  2524. local transseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
  2525. local sus1 = Instance.new("ParticleEmitter", pro)
  2526. sus1.Color = ColorSequence.new(Col1C, Col1C)
  2527. sus1.Transparency = transseq
  2528. sus1.Size = sizeseq
  2529. sus1.LightEmission = 0.33
  2530. sus1.Rotation = NumberRange.new(-180, 180)
  2531. sus1.Lifetime = NumberRange.new(0.4, 0.8)
  2532. sus1.RotSpeed = NumberRange.new(-10, 10)
  2533. sus1.Texture = "http://www.roblox.com/asset/?id=242292318"
  2534. sus1.Speed = NumberRange.new(10, 12)
  2535. sus1.VelocitySpread = 60
  2536. sus1.Rate = 50
  2537. sus1.ZOffset = 0
  2538. sus1.Name = "ParticleEmitter2"
  2539. end
  2540. end
  2541. table.remove(x, r)
  2542. fwait(0.15)
  2543. end
  2544. fwait()
  2545. joj = true
  2546. fwait(2)
  2547. local so = Instance.new("Sound", soloc)
  2548. so.Volume = 0.9
  2549. so.Pitch = 1
  2550. so.SoundId = "http://www.roblox.com/asset/?id=412756262"
  2551. coroutine.resume(coroutine.create(function(so)
  2552. wait()
  2553. so:Play()
  2554. end), so)
  2555. repeat
  2556. fwait(0.06)
  2557. pro = NewPart(Vector3.new(0.2, 0.2, 0.2), CFrame.new(ppos) * CFrame.Angles(0, math.rad(math.random(-180, 180)), 0) * CFrame.new(math.random(3, 50), 0, 0), Col1, "SpecialMesh", Vector3.new(2, 25, 2))
  2558. pro.Mesh.MeshType = "Sphere"
  2559. pro.Anchored = true
  2560. pro.Material = "Neon"
  2561. pro.Name = "LasEffect"
  2562. pro.Parent = m
  2563. pro.Transparency = 1
  2564. game:GetService("Debris"):AddItem(pro, 10)
  2565. table.insert(ignoretab2, pro)
  2566. coroutine.resume(coroutine.create(function(p, k)
  2567. for i = 1, 50 do
  2568. if i <= 5 then
  2569. p.Transparency = p.Transparency - 0.1
  2570. else
  2571. if i >= 45 then
  2572. p.Transparency = p.Transparency + 0.1
  2573. end
  2574. end
  2575. p.CFrame = p.CFrame + Vector3.new(0, k, 0)
  2576. fwait()
  2577. end
  2578. p:Destroy()
  2579. end), pro, math.random(15, 30) / 10)
  2580. until kd == true
  2581. for kek = 1, 4 do
  2582. pro = NewPart(Vector3.new(3, 1, 3), CFrame.new(ppos), Col1, "CylinderMesh", Vector3.new(0.7, 1600, 0.7) - Vector3.new(0.175, 0, 0.175) * (kek - 1))
  2583. pro.Anchored = true
  2584. pro.Mesh.Offset = Vector3.new(0, 799, 0)
  2585. pro.Material = "Neon"
  2586. pro.Name = "LasBig"
  2587. pro.Parent = m
  2588. pro.Transparency = 1 - 0.2 * 1.7 ^ (kek - 1)
  2589. game:GetService("Debris"):AddItem(pro, 10)
  2590. local sizeseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.8), NumberSequenceKeypoint.new(1, 0)})
  2591. local transseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.66), NumberSequenceKeypoint.new(1, 1)})
  2592. local sus1 = Instance.new("ParticleEmitter", pro)
  2593. sus1.Color = ColorSequence.new(Col1.Color, Col1C)
  2594. sus1.Transparency = transseq
  2595. sus1.Size = sizeseq
  2596. sus1.LightEmission = 0.33
  2597. sus1.Rotation = NumberRange.new(-180, 180)
  2598. sus1.Lifetime = NumberRange.new(0.8, 0.8)
  2599. sus1.RotSpeed = NumberRange.new(-10, 10)
  2600. sus1.Texture = "http://www.roblox.com/asset/?id=242911609"
  2601. sus1.Speed = NumberRange.new(5, 8)
  2602. sus1.VelocitySpread = 3
  2603. sus1.Rate = 125
  2604. sus1.ZOffset = 5
  2605. sus1.Name = "ParticleEmitter1"
  2606. local sizeseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6), NumberSequenceKeypoint.new(1, 0)})
  2607. local transseq = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
  2608. local sus1 = Instance.new("ParticleEmitter", pro)
  2609. sus1.Color = ColorSequence.new(Col1C, Col1C)
  2610. sus1.Transparency = transseq
  2611. sus1.Size = sizeseq
  2612. sus1.LightEmission = 0.33
  2613. sus1.Rotation = NumberRange.new(-180, 180)
  2614. sus1.Lifetime = NumberRange.new(0.4, 0.8)
  2615. sus1.RotSpeed = NumberRange.new(-10, 10)
  2616. sus1.Texture = "http://www.roblox.com/asset/?id=242292318"
  2617. sus1.Speed = NumberRange.new(10, 12)
  2618. sus1.VelocitySpread = 60
  2619. sus1.Rate = 50
  2620. sus1.ZOffset = 5
  2621. sus1.Name = "ParticleEmitter2"
  2622. coroutine.resume(coroutine.create(function(k)
  2623. for i = 1, 70 do
  2624. if k.Parent == nil then
  2625. break
  2626. end
  2627. fwait()
  2628. k.Mesh.Scale = k.Mesh.Scale * 1.028
  2629. k.ParticleEmitter1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2 + i * 0.1), NumberSequenceKeypoint.new(1, 0)})
  2630. k.ParticleEmitter1.Speed = NumberRange.new(10 + i / 8, 12 + i / 8)
  2631. k.ParticleEmitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1 + i * 0.03), NumberSequenceKeypoint.new(1, 0)})
  2632. k.ParticleEmitter2.Speed = NumberRange.new(15 + i / 8, 18 + i / 8)
  2633. end
  2634. end), pro)
  2635. end
  2636. print(tick() - kt)
  2637. print("JOJ")
  2638. for i = 1, 22.5 do
  2639. fwait(0.066666666666667)
  2640. pro = NewPart(Vector3.new(0.2, 0.2, 0.2), CFrame.new(ppos) * CFrame.Angles(0, math.rad(math.random(-180, 180)), 0) * CFrame.new(math.random(3, 50), 0, 0), Col1, "SpecialMesh", Vector3.new(2, 25, 2))
  2641. pro.Mesh.MeshType = "Sphere"
  2642. pro.Anchored = true
  2643. pro.Material = "Neon"
  2644. pro.Name = "LasEffect"
  2645. pro.Parent = m
  2646. pro.Transparency = 1
  2647. game:GetService("Debris"):AddItem(pro, 10)
  2648. table.insert(ignoretab2, pro)
  2649. coroutine.resume(coroutine.create(function(p, k)
  2650. for i = 1, 50 do
  2651. if i <= 5 then
  2652. p.Transparency = p.Transparency - 0.1
  2653. else
  2654. if i >= 45 then
  2655. p.Transparency = p.Transparency + 0.1
  2656. end
  2657. end
  2658. p.CFrame = p.CFrame + Vector3.new(0, k, 0)
  2659. fwait()
  2660. end
  2661. p:Destroy()
  2662. end), pro, math.random(15, 30) / 10)
  2663. end
  2664. local so = Instance.new("Sound", soloc)
  2665. so.Volume = 1
  2666. so.Pitch = 1
  2667. so.SoundId = "http://www.roblox.com/asset/?id=266243673"
  2668. so:Play()
  2669. local pros = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos), Col1, "CylinderMesh", Vector3.new(24, 1600, 24))
  2670. pros.Anchored = true
  2671. pros.Mesh.Offset = Vector3.new(0, 799, 0) * 4
  2672. pros.Material = "Neon"
  2673. pros.Name = "LasBerryBig"
  2674. pros.Parent = m
  2675. game:GetService("Debris"):AddItem(pros, 10)
  2676. coroutine.resume(coroutine.create(function(k)
  2677. for i = 1, 30 do
  2678. k.Mesh.Offset = k.Mesh.Offset - Vector3.new(0, 79.9, 0)
  2679. fwait()
  2680. end
  2681. kuck = true
  2682. for i = 1, 30 do
  2683. if k.Parent == nil then
  2684. break
  2685. end
  2686. k.Mesh.Offset = k.Mesh.Offset - Vector3.new(0, 799, 0) / 30
  2687. k.Mesh.Scale = k.Mesh.Scale - Vector3.new(22, 1600, 22) / 30
  2688. fwait()
  2689. end
  2690. do
  2691. k:Destroy()
  2692. end
  2693. end), pros)
  2694. for i = 1, 32.5 do
  2695. if kuck == true then
  2696. break
  2697. end
  2698. fwait()
  2699. pro = NewPart(Vector3.new(0.2, 0.2, 0.2), CFrame.new(ppos) * CFrame.Angles(0, math.rad(math.random(-180, 180)), 0) * CFrame.new(math.random(3, 50), 0, 0), Col1, "SpecialMesh", Vector3.new(2, 25, 2))
  2700. pro.Mesh.MeshType = "Sphere"
  2701. pro.Anchored = true
  2702. pro.Material = "Neon"
  2703. pro.Name = "LasEffect"
  2704. pro.Parent = m
  2705. pro.Transparency = 1
  2706. game:GetService("Debris"):AddItem(pro, 10)
  2707. table.insert(ignoretab2, pro)
  2708. coroutine.resume(coroutine.create(function(p, k)
  2709. for i = 1, 50 do
  2710. if i <= 5 then
  2711. p.Transparency = p.Transparency - 0.1
  2712. else
  2713. if i >= 45 then
  2714. p.Transparency = p.Transparency + 0.1
  2715. end
  2716. end
  2717. p.CFrame = p.CFrame + Vector3.new(0, k, 0)
  2718. fwait()
  2719. end
  2720. p:Destroy()
  2721. end), pro, math.random(15, 30) / 10)
  2722. if kuck == true then
  2723. break
  2724. end
  2725. fwait()
  2726. end
  2727. do
  2728. local so = Instance.new("Sound", soloc)
  2729. so.Volume = 1
  2730. so.Pitch = 1.2
  2731. so.SoundId = "http://www.roblox.com/asset/?id=266243712"
  2732. so:Play()
  2733. local so = Instance.new("Sound", soloc)
  2734. so.Volume = 1
  2735. so.Pitch = 1.2
  2736. so.SoundId = "http://www.roblox.com/asset/?id=385545047"
  2737. so:Play()
  2738. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 6.75, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), Col1, "SpecialMesh", Vector3.new(47.5, 15, 47.5))
  2739. pc.Mesh.MeshType = "FileMesh"
  2740. pc.Anchored = true
  2741. pc.CanCollide = false
  2742. pc.Parent = workspace
  2743. pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2744. pc.Name = "Shockwave"
  2745. game:GetService("Debris"):AddItem(pc, 5)
  2746. pc.Material = "Neon"
  2747. coroutine.resume(coroutine.create(function(p)
  2748. for i = 1, 30 do
  2749. p.Transparency = 0.25 + i / 40
  2750. p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(3 + i / 30), 0) - Vector3.new(0, 0.24166666666667, 0)
  2751. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(i / 11, -0.48333333333333, i / 11)
  2752. fwait()
  2753. end
  2754. p:Remove()
  2755. end), pc)
  2756. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 4.25, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), Col1, "SpecialMesh", Vector3.new(57.5, 10, 57.5))
  2757. pc.Mesh.MeshType = "FileMesh"
  2758. pc.Anchored = true
  2759. pc.CanCollide = false
  2760. pc.Parent = workspace
  2761. pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2762. pc.Name = "Shockwave"
  2763. game:GetService("Debris"):AddItem(pc, 5)
  2764. pc.Material = "Neon"
  2765. coroutine.resume(coroutine.create(function(p)
  2766. for i = 1, 30 do
  2767. p.Transparency = 0.25 + i / 40
  2768. p.CFrame = p.CFrame * CFrame.Angles(0, -math.rad(3 + i / 30), 0) - Vector3.new(0, 0.15833333333333, 0)
  2769. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(i / 9, -0.31666666666667, i / 9)
  2770. fwait()
  2771. end
  2772. p:Remove()
  2773. end), pc)
  2774. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 1.75, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), Col1, "SpecialMesh", Vector3.new(73.5, 5, 73.5))
  2775. pc.Mesh.MeshType = "FileMesh"
  2776. pc.Anchored = true
  2777. pc.CanCollide = false
  2778. pc.Parent = workspace
  2779. pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2780. pc.Name = "Shockwave"
  2781. game:GetService("Debris"):AddItem(pc, 5)
  2782. pc.Material = "Neon"
  2783. coroutine.resume(coroutine.create(function(p)
  2784. for i = 1, 30 do
  2785. p.Transparency = 0.25 + i / 40
  2786. p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(3 + i / 30), 0) - Vector3.new(0, 0.075, 0)
  2787. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(i / 7, -0.15, i / 7)
  2788. fwait()
  2789. end
  2790. p:Remove()
  2791. end), pc)
  2792. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 1.5, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), BrickColor.new("Institutional white"), "SpecialMesh", Vector3.new(30, 5, 30))
  2793. pc.Mesh.MeshType = "FileMesh"
  2794. pc.Anchored = true
  2795. pc.CanCollide = false
  2796. pc.Parent = workspace
  2797. pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2798. pc.Name = "Shockwave"
  2799. pc.Material = "Neon"
  2800. game:GetService("Debris"):AddItem(pc, 5)
  2801. coroutine.resume(coroutine.create(function(p)
  2802. for i = 1, 20 do
  2803. p.Transparency = 0.5 + i / 40
  2804. p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(5 + i / 10), 0)
  2805. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(i / 6 + 8, 0, i / 6 + 8)
  2806. fwait()
  2807. end
  2808. p:Remove()
  2809. end), pc)
  2810. for LEL = 1, 3 do
  2811. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 0, 0)), Col1, "SpecialMesh", Vector3.new(18, 18, 18) * LEL)
  2812. pc.Parent = workspace
  2813. pc.Mesh.MeshType = "Sphere"
  2814. pc.Anchored = true
  2815. pc.CanCollide = false
  2816. pc.Transparency = 1
  2817. game:GetService("Debris"):AddItem(pc, 15)
  2818. pc.Material = "Neon"
  2819. coroutine.resume(coroutine.create(function(p, V, x)
  2820. for i = 1, 20 do
  2821. p.Mesh.Scale = p.Mesh.Scale * 1.05 + Vector3.new(1.5, 1.5, 1.5)
  2822. p.Transparency = 0.25 + i / 26.666666666667
  2823. p.CFrame = p.CFrame * V
  2824. fwait()
  2825. end
  2826. p:Remove()
  2827. end), pc, CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0))
  2828. end
  2829. for LEL = 1, 3 do
  2830. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos) * CFrame.fromEulerAnglesXYZ(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)), Col1, "BlockMesh", Vector3.new(15, 15, 15) * LEL)
  2831. pc.Parent = workspace
  2832. pc.Anchored = true
  2833. pc.CanCollide = false
  2834. pc.Transparency = 1
  2835. game:GetService("Debris"):AddItem(pc, 15)
  2836. pc.Material = "Neon"
  2837. coroutine.resume(coroutine.create(function(p, V, x)
  2838. for i = 1, 12 do
  2839. p.Mesh.Scale = p.Mesh.Scale * 1.02 + Vector3.new(3.5, 3.5, 3.5)
  2840. p.Transparency = 0.1 + i / 13.333333333333
  2841. p.CFrame = p.CFrame * V
  2842. fwait()
  2843. end
  2844. p:Remove()
  2845. end), pc, CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0))
  2846. end
  2847. for LEL = 1, 6 do
  2848. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(math.random(-50, 50) / 3, 0, math.random(-50, 50) / 3)), Col1, "SpecialMesh", Vector3.new(7, 9, 7))
  2849. pc.Parent = workspace
  2850. pc.Mesh.MeshType = "Sphere"
  2851. pc.Anchored = true
  2852. pc.CanCollide = false
  2853. pc.Transparency = 1
  2854. game:GetService("Debris"):AddItem(pc, 15)
  2855. pc.Material = "Neon"
  2856. coroutine.resume(coroutine.create(function(p, V, x)
  2857. for i = 1, 40 do
  2858. p.Mesh.Scale = Vector3.new(25 - i / 2, 30 * i, 25 - i / 2)
  2859. p.Transparency = 0.25 + i / 53.333333333333
  2860. p.CFrame = p.CFrame * V
  2861. fwait()
  2862. end
  2863. p:Remove()
  2864. end), pc, CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0))
  2865. do
  2866. if LEL % 2 == 0 then
  2867. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos), Col1, "SpecialMesh", Vector3.new(10, 15, 10) + Vector3.new(2, 3, 2) * LEL)
  2868. pc.Parent = workspace
  2869. pc.Mesh.MeshType = "Sphere"
  2870. pc.Anchored = true
  2871. pc.CanCollide = false
  2872. pc.Transparency = 1
  2873. game:GetService("Debris"):AddItem(pc, 15)
  2874. pc.Material = "Neon"
  2875. coroutine.resume(coroutine.create(function(p, V, x)
  2876. for i = 1, 40 do
  2877. p.Mesh.Scale = p.Mesh.Scale * 1.04 + Vector3.new(3.5 - i * 0.27, i, 3.5 - i * 0.27)
  2878. p.Transparency = 0.33 + i / 59.701492537313
  2879. p.CFrame = p.CFrame * V
  2880. fwait()
  2881. end
  2882. p:Remove()
  2883. end), pc, CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0))
  2884. end
  2885. do
  2886. local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(ppos + Vector3.new(0, 0, 0)) * CFrame.fromEulerAnglesXYZ(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)), Col1, "BlockMesh", Vector3.new(20, 20, 20))
  2887. pc.Parent = workspace
  2888. pc.Anchored = true
  2889. pc.CanCollide = false
  2890. pc.Transparency = 1
  2891. game:GetService("Debris"):AddItem(pc, 15)
  2892. pc.Material = "Neon"
  2893. coroutine.resume(coroutine.create(function(p, V, x)
  2894. for i = 1, 60 do
  2895. p.Mesh.Scale = p.Mesh.Scale * 1.01 + Vector3.new(0.6, 0.6, 0.6)
  2896. p.Transparency = 0.4 + i / 100
  2897. p.CFrame = p.CFrame * V
  2898. fwait()
  2899. end
  2900. p:Remove()
  2901. end), pc, CFrame.fromEulerAnglesXYZ(math.rad(math.random(-50, 50) / 15), math.rad(math.random(-50, 50) / 15), math.rad(math.random(-50, 50) / 15)))
  2902. if LEL == 2 then
  2903. MagniDamage(soloc, 50, 38, 42, 45, "Normal", soloc, 0, 1, 80, false, false, true, nil, nil, nil, nil)
  2904. if vPlayer.Character.Torso.Position - ppos.magnitude <= 50 then
  2905. vPlayer.Character.Humanoid:TakeDamage(40 / vPlayer.Character.Stats.Defense.Value)
  2906. showDamage(vPlayer.Character, math.floor(40 / vPlayer.Character.Stats.Defense.Value), "Damage")
  2907. vPlayer.Character.Stats.Stun.Value = 100
  2908. end
  2909. end
  2910. fwait(0.066666666666667)
  2911. -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
  2912.  
  2913. end
  2914. end
  2915. end
  2916. fwait()
  2917. for _,v in pairs(m:children()) do
  2918. if v.Name ~= "LasBerryBig" then
  2919. v:Remove()
  2920. end
  2921. end
  2922. end
  2923. end
  2924. end
  2925. end
  2926. DecreaseStat = function(Model, Stat, Amount, Duration)
  2927. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2928. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2929. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2930. dur = Instance.new("NumberValue", d)
  2931. dur.Name = "Duration"
  2932. dur.Value = Duration
  2933. game:GetService("Debris"):AddItem(d, 20)
  2934. if Stat == "Damage" then
  2935. d.Name = "DecreaseAtk"
  2936. else
  2937. if Stat == "Defense" then
  2938. d.Name = "DecreaseDef"
  2939. else
  2940. if Stat == "Movement" then
  2941. d.Name = "DecreaseMvmt"
  2942. end
  2943. end
  2944. end
  2945. if Model:findFirstChild("Torso") ~= nil then
  2946. display = ""
  2947. if Stat == "Damage" then
  2948. if Amount > 0 then
  2949. display = "-Damage"
  2950. else
  2951. display = "+Damage"
  2952. end
  2953. else
  2954. if Stat == "Defense" then
  2955. if Amount > 0 then
  2956. display = "-Defense"
  2957. else
  2958. display = "+Defense"
  2959. end
  2960. else
  2961. if Stat == "Movement" then
  2962. if Amount > 0 then
  2963. display = "-Movement"
  2964. else
  2965. display = "+Movement"
  2966. end
  2967. end
  2968. end
  2969. end
  2970. showDamage(Model, display, "Debuff")
  2971. end
  2972. d.Value = Amount
  2973. end
  2974. end
  2975. GetDist = function(Part1, Part2, magni)
  2976. local targ = Part1.Position - Part2.Position
  2977. local mag = targ.magnitude
  2978. if mag <= magni then
  2979. return true
  2980. else
  2981. return false
  2982. end
  2983. end
  2984. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2985. for _,c in pairs(workspace:children()) do
  2986. local hum = c:findFirstChild("Humanoid")
  2987. if hum ~= nil then
  2988. local head = nil
  2989. for _,d in pairs(c:children()) do
  2990. if d.className == "Model" and ranged ~= true then
  2991. head = d:findFirstChild("Hitbox")
  2992. if d.Parent == Character then
  2993. break
  2994. end
  2995. if head ~= nil then
  2996. local targ = head.Position - Part.Position
  2997. local mag = targ.magnitude
  2998. if mag <= magni and c.Name ~= Player.Name then
  2999. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3000. ref.Anchored = true
  3001. ref.CFrame = cf(head.Position)
  3002. game:GetService("Debris"):AddItem(ref, 1)
  3003. hitnum = math.random(1, 5)
  3004. if hitnum == 1 then
  3005. so("199148971", ref, 1, 1)
  3006. else
  3007. if hitnum == 2 then
  3008. so("199149025", ref, 1, 1)
  3009. else
  3010. if hitnum == 3 then
  3011. so("199149072", ref, 1, 1)
  3012. else
  3013. if hitnum == 4 then
  3014. so("199149109", ref, 1, 1)
  3015. else
  3016. if hitnum == 5 then
  3017. so("199149119", ref, 1, 1)
  3018. end
  3019. end
  3020. end
  3021. end
  3022. end
  3023. StaggerHit.Value = true
  3024. end
  3025. end
  3026. end
  3027. do
  3028. if d.className == "Part" then
  3029. head = d
  3030. if head ~= nil then
  3031. local targ = head.Position - Part.Position
  3032. local mag = targ.magnitude
  3033. if mag <= magni and c.Name ~= Player.Name then
  3034. if stun == nil then
  3035. stun = math.random(5, 10)
  3036. end
  3037. local Rang = nil
  3038. if Ranged == false then
  3039. Rang = true
  3040. end
  3041. local stag = nil
  3042. if shbash == true then
  3043. stag = true
  3044. end
  3045. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  3046. end
  3047. end
  3048. end
  3049. do
  3050. -- DECOMPILER ERROR at PC184: LeaveBlock: unexpected jumping out DO_STMT
  3051.  
  3052. end
  3053. end
  3054. end
  3055. end
  3056. end
  3057. end
  3058. rayCast = function(Pos, Dir, Max, Ignore)
  3059. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3060. end
  3061. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  3062. LastPoint = Point
  3063. effect = function(Color, Ref, LP, P1, returnn)
  3064. if LP == nil or P1 == nil then
  3065. return
  3066. end
  3067. local effectsmsh = Instance.new("CylinderMesh")
  3068. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  3069. effectsmsh.Name = "Mesh"
  3070. local effectsg = Instance.new("Part")
  3071. NoOutline(effectsg)
  3072. effectsg.formFactor = 3
  3073. effectsg.CanCollide = false
  3074. effectsg.Name = "Eff"
  3075. effectsg.Locked = true
  3076. effectsg.Anchored = true
  3077. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  3078. effectsg.Parent = workspace
  3079. effectsmsh.Parent = effectsg
  3080. effectsg.BrickColor = BrickColor.new(Color)
  3081. effectsg.Reflectance = Ref
  3082. local point1 = P1
  3083. local mg = LP.p - point1.p.magnitude
  3084. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  3085. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  3086. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  3087. game:GetService("Debris"):AddItem(effectsg, 2)
  3088. if returnn then
  3089. return effectsg
  3090. end
  3091. if not returnn then
  3092. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  3093. end
  3094. end
  3095. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3096. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3097. prt.Anchored = true
  3098. prt.CFrame = cframe
  3099. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3100. game:GetService("Debris"):AddItem(prt, 10)
  3101. if Type == 1 or Type == nil then
  3102. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3103. else
  3104. if Type == 2 then
  3105. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3106. end
  3107. end
  3108. end
  3109. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3110. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3111. prt.Anchored = true
  3112. prt.CFrame = cframe
  3113. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3114. game:GetService("Debris"):AddItem(prt, 10)
  3115. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3116. end
  3117. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3118. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3119. prt.Anchored = true
  3120. prt.CFrame = cframe * cf(x2, y2, z2)
  3121. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  3122. game:GetService("Debris"):AddItem(prt, 10)
  3123. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3124. end
  3125. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3126. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3127. prt.Anchored = true
  3128. prt.CFrame = cframe
  3129. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3130. game:GetService("Debris"):AddItem(prt, 10)
  3131. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3132. end
  3133. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3134. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  3135. prt.Anchored = true
  3136. prt.CFrame = cframe
  3137. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3138. game:GetService("Debris"):AddItem(prt, 5)
  3139. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3140. end
  3141. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  3142. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  3143. prt.Anchored = true
  3144. prt.CFrame = cframe
  3145. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  3146. game:GetService("Debris"):AddItem(prt, 10)
  3147. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  3148. end
  3149. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3150. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3151. prt.Anchored = true
  3152. prt.CFrame = cframe
  3153. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3154. game:GetService("Debris"):AddItem(prt, 10)
  3155. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3156. end
  3157. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3158. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3159. prt.Anchored = true
  3160. prt.CFrame = cframe
  3161. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  3162. game:GetService("Debris"):AddItem(prt, 10)
  3163. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3164. end
  3165. ElecEffect = function(cff, x, y, z)
  3166. local prt = part(3, workspace, 0, 0, BrickColor.new("Dark stone grey"), "Part", vt(1, 1, 1))
  3167. prt.Anchored = true
  3168. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  3169. prt.CFrame = cf(prt.Position)
  3170. game:GetService("Debris"):AddItem(prt, 10)
  3171. xval = math.random() / 3
  3172. yval = math.random() / 3
  3173. zval = math.random() / 3
  3174. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  3175. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  3176. end
  3177. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3178. if hit.Parent == nil then
  3179. return
  3180. end
  3181. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3182. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3183. ref.Anchored = true
  3184. ref.CFrame = cf(hit.Position)
  3185. game:GetService("Debris"):AddItem(ref, 1)
  3186. hitnum = math.random(1, 5)
  3187. if hitnum == 1 then
  3188. so("199148971", ref, 1, 1)
  3189. else
  3190. if hitnum == 2 then
  3191. so("199149025", ref, 1, 1)
  3192. else
  3193. if hitnum == 3 then
  3194. so("199149072", ref, 1, 1)
  3195. else
  3196. if hitnum == 4 then
  3197. so("199149109", ref, 1, 1)
  3198. else
  3199. if hitnum == 5 then
  3200. so("199149119", ref, 1, 1)
  3201. end
  3202. end
  3203. end
  3204. end
  3205. end
  3206. StaggerHit.Value = true
  3207. end
  3208. h = hit.Parent:FindFirstChild("Humanoid")
  3209. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3210. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  3211. return
  3212. end
  3213. c = Instance.new("ObjectValue")
  3214. c.Name = "creator"
  3215. c.Value = game:service("Players").LocalPlayer
  3216. c.Parent = h
  3217. RecentEnemy.Value = hit.Parent
  3218. game:GetService("Debris"):AddItem(c, 0.5)
  3219. minim = minim * Atk.Value
  3220. maxim = maxim * Atk.Value
  3221. Damage = 0
  3222. if minim == maxim then
  3223. Damage = maxim
  3224. else
  3225. Damage = math.random(minim, maxim)
  3226. end
  3227. blocked = false
  3228. enblock = nil
  3229. local EStats = hit.Parent:findFirstChild("Stats")
  3230. if EStats ~= nil then
  3231. invis = EStats:findFirstChild("Invisibility")
  3232. isinvis = EStats:findFirstChild("IsInvisible")
  3233. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3234. invis.Value = 0
  3235. end
  3236. enblock = EStats:findFirstChild("Block")
  3237. if enblock ~= nil and enblock.Value == true then
  3238. blocked = true
  3239. end
  3240. if EStats:findFirstChild("Defense") ~= nil then
  3241. Damage = Damage / EStats.Defense.Value
  3242. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3243. hitnum = math.random(1, 5)
  3244. if hitnum == 1 then
  3245. so("199149321", hit, 1, 1)
  3246. else
  3247. if hitnum == 2 then
  3248. so("199149338", hit, 1, 1)
  3249. else
  3250. if hitnum == 3 then
  3251. so("199149367", hit, 1, 1)
  3252. else
  3253. if hitnum == 4 then
  3254. so("199149409", hit, 1, 1)
  3255. else
  3256. if hitnum == 5 then
  3257. so("199149452", hit, 1, 1)
  3258. end
  3259. end
  3260. end
  3261. end
  3262. end
  3263. else
  3264. if ranged == false or ranged == nil and blocked ~= true then
  3265. hitnum = math.random(1, 6)
  3266. if hitnum == 1 then
  3267. so("199149137", hit, 1, 1)
  3268. else
  3269. if hitnum == 2 then
  3270. so("199149186", hit, 1, 1)
  3271. else
  3272. if hitnum == 3 then
  3273. so("199149221", hit, 1, 1)
  3274. else
  3275. if hitnum == 4 then
  3276. so("199149235", hit, 1, 1)
  3277. else
  3278. if hitnum == 5 then
  3279. so("199149269", hit, 1, 1)
  3280. else
  3281. if hitnum == 6 then
  3282. so("199149297", hit, 1, 1)
  3283. end
  3284. end
  3285. end
  3286. end
  3287. end
  3288. end
  3289. end
  3290. end
  3291. if Damage <= 3 and staghit == true and ranged ~= true then
  3292. StaggerHit.Value = true
  3293. end
  3294. end
  3295. if EStats:findFirstChild("Stun") ~= nil then
  3296. if blocked == true then
  3297. incstun = incstun / 2
  3298. end
  3299. if EStats.Stun.Value < EStats.StunThreshold.Value then
  3300. EStats.Stun.Value = EStats.Stun.Value + incstun
  3301. end
  3302. end
  3303. if EStats:findFirstChild("Stagger") ~= nil and stagger == true then
  3304. EStats.Stagger.Value = true
  3305. end
  3306. end
  3307. if blocked == true then
  3308. showDamage(hit.Parent, "Block", "Damage")
  3309. if ranged ~= true then
  3310. enblock.Value = false
  3311. Stagger.Value = true
  3312. hitnum = math.random(1, 2)
  3313. if hitnum == 1 then
  3314. so("199148933", hit, 1, 1)
  3315. else
  3316. if hitnum == 2 then
  3317. so("199148947", hit, 1, 1)
  3318. end
  3319. end
  3320. end
  3321. else
  3322. Damage = math.floor(Damage)
  3323. coroutine.resume(coroutine.create(function(Hum, Dam)
  3324. hit.Parent.Humanoid:TakeDamage(Damage)
  3325. end
  3326. ), h, Damage)
  3327. showDamage(hit.Parent, Damage, "Damage")
  3328. if DecreaseState ~= nil then
  3329. if DecreaseState == "Temporal" then
  3330. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3331. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  3332. else
  3333. if DecreaseState == "Temporal2" then
  3334. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3335. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3336. else
  3337. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3338. end
  3339. end
  3340. end
  3341. if Type == "NormalDecreaseMvmt1" then
  3342. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3343. end
  3344. if Type == "Knockdown" then
  3345. hum = hit.Parent.Humanoid
  3346. hum.PlatformStand = true
  3347. coroutine.resume(coroutine.create(function(HHumanoid)
  3348. swait(1)
  3349. HHumanoid.PlatformStand = false
  3350. end
  3351. ), hum)
  3352. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3353. local bodvol = Instance.new("BodyVelocity")
  3354. bodvol.velocity = angle * knockback
  3355. bodvol.P = 5000
  3356. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3357. bodvol.Parent = hit
  3358. rl = Instance.new("BodyAngularVelocity")
  3359. rl.P = 3000
  3360. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3361. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3362. rl.Parent = hit
  3363. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3364. game:GetService("Debris"):AddItem(rl, 0.5)
  3365. else
  3366. do
  3367. if Type == "Knockdown2" then
  3368. hum = hit.Parent.Humanoid
  3369. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3370. local bodvol = Instance.new("BodyVelocity")
  3371. bodvol.velocity = angle * knockback
  3372. bodvol.P = 5000
  3373. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3374. bodvol.Parent = hit
  3375. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3376. else
  3377. do
  3378. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3379. vp = Instance.new("BodyVelocity")
  3380. vp.P = 500
  3381. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3382. if KnockbackType == 1 then
  3383. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3384. else
  3385. if KnockbackType == 2 then
  3386. vp.velocity = Property.CFrame.lookVector * knockback
  3387. end
  3388. end
  3389. game:GetService("Debris"):AddItem(vp, 0.5)
  3390. if knockback > 0 then
  3391. vp.Parent = hit.Parent.Torso
  3392. end
  3393. end
  3394. debounce = Instance.new("BoolValue")
  3395. debounce.Name = "DebounceHit"
  3396. debounce.Parent = hit.Parent
  3397. debounce.Value = true
  3398. game:GetService("Debris"):AddItem(debounce, Delay)
  3399. c = Instance.new("ObjectValue")
  3400. c.Name = "creator"
  3401. c.Value = Player
  3402. c.Parent = h
  3403. game:GetService("Debris"):AddItem(c, 0.5)
  3404. CRIT = false
  3405. end
  3406. end
  3407. end
  3408. end
  3409. end
  3410. end
  3411. end
  3412. showDamage = function(Char, Dealt, Type)
  3413. m = Instance.new("Model")
  3414. m.Name = "Effect"
  3415. c = Instance.new("Part")
  3416. c.Transparency = 1
  3417. c.Name = "Head"
  3418. c.TopSurface = 0
  3419. c.BottomSurface = 0
  3420. c.formFactor = "Plate"
  3421. c.Size = Vector3.new(1, 0.4, 1)
  3422. local b = Instance.new("BillboardGui", c)
  3423. b.Size = UDim2.new(5, 0, 5, 0)
  3424. b.AlwaysOnTop = true
  3425. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3426. if Type == "Damage" then
  3427. damgui.Font = "SourceSans"
  3428. if Dealt == "Block" then
  3429. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3430. else
  3431. if Dealt < 3 then
  3432. damgui.TextColor3 = BrickColor.new("White").Color
  3433. else
  3434. if Dealt >= 3 and Dealt < 20 then
  3435. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3436. else
  3437. damgui.TextColor3 = BrickColor.new("Really red").Color
  3438. damgui.Font = "SourceSansBold"
  3439. end
  3440. end
  3441. end
  3442. else
  3443. if Type == "Debuff" then
  3444. damgui.TextColor3 = BrickColor.new("White").Color
  3445. else
  3446. if Type == "Interrupt" then
  3447. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3448. end
  3449. end
  3450. end
  3451. damgui.TextScaled = true
  3452. ms = Instance.new("CylinderMesh")
  3453. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3454. ms.Parent = c
  3455. c.Reflectance = 0
  3456. Instance.new("BodyGyro").Parent = c
  3457. c.Parent = m
  3458. if Char:findFirstChild("Head") ~= nil then
  3459. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3460. else
  3461. if Char.Parent:findFirstChild("Head") ~= nil then
  3462. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3463. end
  3464. end
  3465. f = Instance.new("BodyPosition")
  3466. f.P = 2000
  3467. f.D = 100
  3468. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3469. if Type == "Damage" then
  3470. f.position = c.Position + Vector3.new(0, 3, 0)
  3471. else
  3472. if Type == "Debuff" or Type == "Interrupt" then
  3473. f.position = c.Position + Vector3.new(0, 5, 0)
  3474. end
  3475. end
  3476. f.Parent = c
  3477. game:GetService("Debris"):AddItem(m, 5)
  3478. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3479. c.CanCollide = false
  3480. m.Parent = workspace
  3481. c.CanCollide = false
  3482. end
  3483. combo = 0
  3484. ob1d = function(mouse)
  3485. if MMouse.Target ~= nil and MMouse.Target.Parent:findFirstChild("Humanoid") ~= nil and game.Players:GetPlayerFromCharacter(MMouse.Target.Parent) ~= nil and Player.Neutral == false and game.Players:GetPlayerFromCharacter(MMouse.Target.Parent).TeamColor == Player.TeamColor then
  3486. if givingrailgun == true then
  3487. RailgunTarget = MMouse.Target.Parent.HumanoidRootPart
  3488. givingarmor = false
  3489. end
  3490. if givingplasma == true then
  3491. CannonTarget = MMouse.Target.Parent.HumanoidRootPart
  3492. givingarmor = false
  3493. end
  3494. if givingblades == true then
  3495. BladesTarget = MMouse.Target.Parent.HumanoidRootPart
  3496. givingarmor = false
  3497. end
  3498. end
  3499. if attack == true or equipped == false then
  3500. return
  3501. end
  3502. hold = true
  3503. if BladesTarget ~= nil then
  3504. coroutine.resume(coroutine.create(function()
  3505. if combo == 0 then
  3506. bladesattackone()
  3507. else
  3508. if combo == 1 then
  3509. bladesattackthree()
  3510. else
  3511. if combo == 2 then
  3512. bladesattacktwo()
  3513. else
  3514. if combo == 3 then
  3515. bladesattackfour()
  3516. end
  3517. end
  3518. end
  3519. end
  3520. end))
  3521. end
  3522. if combo == 0 then
  3523. combo = 1
  3524. attackone()
  3525. else
  3526. if combo == 1 then
  3527. combo = 2
  3528. attacktwo()
  3529. else
  3530. if combo == 2 then
  3531. combo = 3
  3532. attackthree()
  3533. else
  3534. if combo == 3 then
  3535. combo = 0
  3536. attackfour()
  3537. end
  3538. end
  3539. end
  3540. end
  3541. if RailgunTarget ~= nil then
  3542. ShootRailGun()
  3543. end
  3544. if CannonTarget ~= nil then
  3545. ShootCannon()
  3546. end
  3547. coroutine.resume(coroutine.create(function()
  3548. for i = 1, 50 do
  3549. if attack == false then
  3550. fwait()
  3551. end
  3552. end
  3553. if attack == false then
  3554. combo = 0
  3555. end
  3556. end))
  3557. end
  3558. ob1u = function(mouse)
  3559. hold = false
  3560. end
  3561. buttonhold = false
  3562. fenbarmove1.MouseButton1Click:connect(do1)
  3563. fenbarmove2.MouseButton1Click:connect(do2)
  3564. fenbarmove3.MouseButton1Click:connect(do3)
  3565. fenbarmove4.MouseButton1Click:connect(do4)
  3566. eul = 0
  3567. equipped = false
  3568. key = function(key)
  3569. if key == "z" and givingarmor == true then
  3570. do1()
  3571. end
  3572. if key == "x" and givingarmor == true then
  3573. do2()
  3574. end
  3575. if key == "c" and givingarmor == true then
  3576. do3()
  3577. end
  3578. if attack == true then
  3579. return
  3580. end
  3581. if key == "f" then
  3582. pressedf = true
  3583. fnumb = 0
  3584. attack = true
  3585. if equipped == false then
  3586. equipped = true
  3587. RSH = ch.Torso["Right Shoulder"]
  3588. LSH = ch.Torso["Left Shoulder"]
  3589. RSH.Parent = nil
  3590. LSH.Parent = nil
  3591. RW.Name = "Right Shoulder"
  3592. RW.Part0 = ch.Torso
  3593. RW.C0 = cf(1.5, 0.5, 0)
  3594. RW.C1 = cf(0, 0.5, 0)
  3595. RW.Part1 = ch["Right Arm"]
  3596. RW.Parent = ch.Torso
  3597. LW.Name = "Left Shoulder"
  3598. LW.Part0 = ch.Torso
  3599. LW.C0 = cf(-1.5, 0.5, 0)
  3600. LW.C1 = cf(0, 0.5, 0)
  3601. LW.Part1 = ch["Left Arm"]
  3602. LW.Parent = ch.Torso
  3603. Animate.Parent = nil
  3604. animTrack:Play()
  3605. equipanim()
  3606. else
  3607. equipped = false
  3608. hideanim()
  3609. LH.C1 = LHC1
  3610. RH.C1 = RHC1
  3611. animTrack:Stop()
  3612. Animate.Parent = Character
  3613. fwait(0)
  3614. RW.Parent = nil
  3615. LW.Parent = nil
  3616. RSH.Parent = player.Character.Torso
  3617. LSH.Parent = player.Character.Torso
  3618. end
  3619. attack = false
  3620. end
  3621. if equipped == false then
  3622. return
  3623. end
  3624. if key == "e" then
  3625. StatConvert()
  3626. end
  3627. if key == "z" then
  3628. do1()
  3629. end
  3630. if key == "x" then
  3631. do2()
  3632. end
  3633. if key == "c" then
  3634. do3()
  3635. end
  3636. if key == "v" then
  3637. do4()
  3638. end
  3639. end
  3640. key2 = function(key)
  3641. end
  3642. s = function(mouse)
  3643. mouse.Button1Down:connect(function()
  3644. ob1d(mouse)
  3645. end)
  3646. mouse.Button1Up:connect(function()
  3647. ob1u(mouse)
  3648. end)
  3649. mouse.KeyDown:connect(key)
  3650. mouse.KeyUp:connect(key2)
  3651. player = Player
  3652. ch = Character
  3653. end
  3654. ds = function(mouse)
  3655. end
  3656. Bin.Selected:connect(s)
  3657. Bin.Deselected:connect(ds)
  3658. print("Mechanic loaded.")
  3659. local mananum = 0
  3660. local blocknum2 = 0
  3661. local donum = 0
  3662. local stunnum = 0
  3663. local staggeranim = false
  3664. local stunanim = false
  3665. local Point, LastPoint = nil, nil
  3666. local walk = 0
  3667. local walkforw = true
  3668. while 1 do
  3669. fwait()
  3670. if Humanoid.Health <= 0 then
  3671. attack = true
  3672. resumeControl()
  3673. modelzorz.Parent = workspace
  3674. game:GetService("Debris"):AddItem(modelzorz, 30)
  3675. for i = 1, #Weapon do
  3676. Weapon[i].Parent = modelzorz
  3677. Weapon[i].CanCollide = true
  3678. end
  3679. for i = 1, #Welds do
  3680. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3681. Welds[i].Parent = nil
  3682. else
  3683. Welds[i].Parent = prt1
  3684. end
  3685. end
  3686. end
  3687. do
  3688. if fnumb < 21 then
  3689. fnumb = fnumb + 1
  3690. if pressedf == false then
  3691. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3692. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3693. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3694. else
  3695. if fnumb == 20 then
  3696. fenframe5.Parent = nil
  3697. print("daigui")
  3698. end
  3699. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3700. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3701. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3702. end
  3703. end
  3704. if hbwld.Parent == nil then
  3705. hitbox2.Name = "Hitbox"
  3706. else
  3707. hitbox2.Name = "Hitbox2"
  3708. end
  3709. hitbox2.Parent = hitbox.Parent
  3710. hitbox2.Size = hitbox.Size
  3711. hitbox2.CFrame = hitboxCF
  3712. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3713. if cooldownmax <= cooldowns[1] and RailgunTarget ~= nil then
  3714. MagicSpecial(BrickColor.new(NewCol), rprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.5, 0.5, 0.5, 0.05)
  3715. for i = 1, 5 do
  3716. ElecEffect(cf(rprt1.Position), 3, 3, 3)
  3717. end
  3718. RailgunTarget = nil
  3719. model1.Parent = nil
  3720. end
  3721. if cooldownmax <= cooldowns[2] and CannonTarget ~= nil then
  3722. print("daicannon")
  3723. print(cooldowns[2])
  3724. print(CannonTarget)
  3725. MagicSpecial(BrickColor.new(NewCol), pprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.5, 0.5, 0.5, 0.05)
  3726. for i = 1, 5 do
  3727. ElecEffect(cf(pprt1.Position), 3, 3, 3)
  3728. end
  3729. CannonTarget = nil
  3730. model2.Parent = nil
  3731. end
  3732. if cooldownmax <= cooldowns[3] and BladesTarget ~= nil then
  3733. print("daiblades")
  3734. print(cooldowns[3])
  3735. print(BladesTarget)
  3736. MagicSpecial(BrickColor.new(NewCol), bprt1.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  3737. MagicSpecial(BrickColor.new(NewCol), bprt7.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  3738. MagicSpecial(BrickColor.new(NewCol), bprt13.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 0.3, 0.3, 0.3, 0.05)
  3739. for i = 1, 5 do
  3740. ElecEffect(cf(bref.Position), 3, 3, 3)
  3741. end
  3742. BladesTarget = nil
  3743. model3.Parent = nil
  3744. end
  3745. if MMouse ~= nil then
  3746. if model1.Parent ~= nil then
  3747. local mpos = rprt1.CFrame * euler(0, 0, 0)
  3748. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  3749. local x, y, z = rprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  3750. rwld1.Part1 = RailgunTarget
  3751. rwld1.C0 = euler(0, 0, 0) * cf(3, -1, -0.2)
  3752. rwld2.Part0 = rprt1
  3753. rwld2.Part1 = rprt2
  3754. rwld2.C0 = clerp(rwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.3)
  3755. end
  3756. do
  3757. if model2.Parent ~= nil then
  3758. local mpos = pprt1.CFrame * euler(0, 0, 0)
  3759. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  3760. local x, y, z = pprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  3761. pwld1.Part1 = CannonTarget
  3762. pwld1.C0 = euler(0, 0, 0) * cf(-3, -1, -0.2)
  3763. pwld2.Part0 = pprt1
  3764. pwld2.Part1 = pprt2
  3765. pwld2.C0 = clerp(pwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.3)
  3766. end
  3767. do
  3768. pwld1.C0 = clerp(pwld1.C0, euler(-0.2, 0, 0) * cf(-3, -1, -0.2), 0.5)
  3769. pwld2.C0 = clerp(pwld2.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  3770. rwld1.C0 = clerp(rwld1.C0, euler(-0.2, 0, 0) * cf(3, -1, -0.2), 0.5)
  3771. rwld2.C0 = clerp(rwld2.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  3772. if Stagger.Value == true and staggeranim == false then
  3773. coroutine.resume(coroutine.create(function()
  3774. staggeranim = true
  3775. while attack == true do
  3776. fwait()
  3777. end
  3778. StaggerAnim()
  3779. StaggerHit.Value = false
  3780. Stagger.Value = false
  3781. staggeranim = false
  3782. end))
  3783. end
  3784. if StaggerHit.Value == true and staggeranim == false then
  3785. coroutine.resume(coroutine.create(function()
  3786. staggeranim = true
  3787. while attack == true do
  3788. fwait()
  3789. end
  3790. StaggerHitt()
  3791. StaggerHit.Value = false
  3792. Stagger.Value = false
  3793. staggeranim = false
  3794. end))
  3795. end
  3796. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3797. Humanoid.WalkSpeed = 0
  3798. else
  3799. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3800. end
  3801. if StunT.Value <= Stun.Value and stunanim == false then
  3802. coroutine.resume(coroutine.create(function()
  3803. stunanim = true
  3804. while attack == true do
  3805. fwait()
  3806. end
  3807. StunAnim()
  3808. Stun.Value = 0
  3809. stunanim = false
  3810. end))
  3811. end
  3812. local stunnum2 = 30
  3813. if stunnum2 <= stunnum then
  3814. if 0 < Stun.Value then
  3815. Stun.Value = Stun.Value - 1
  3816. end
  3817. stunnum = 0
  3818. end
  3819. stunnum = stunnum + 1
  3820. if 0.5 <= donum then
  3821. handidle = true
  3822. else
  3823. if donum <= 0 then
  3824. handidle = false
  3825. end
  3826. end
  3827. if handidle == false then
  3828. donum = donum + 0.006
  3829. else
  3830. donum = donum - 0.006
  3831. end
  3832. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3833. local velderp = RootPart.Velocity.y
  3834. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3835. if equipped == true then
  3836. if attack == false then
  3837. idle = idle + 1
  3838. else
  3839. idle = 0
  3840. end
  3841. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3842. if walkforw == true then
  3843. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3844. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3845. else
  3846. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3847. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3848. end
  3849. else
  3850. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3851. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3852. end
  3853. if tribladesattack == false then
  3854. bwld1.C0 = clerp(bwld1.C0, euler(0, 0, 0) * cf(2, -0.6, -2), 0.4)
  3855. bwld7.C0 = clerp(bwld7.C0, euler(0, 0, 0) * cf(0, -0.6, -2), 0.4)
  3856. bwld13.C0 = clerp(bwld13.C0, euler(0, 0, 0) * cf(-2, -0.6, -2), 0.4)
  3857. bwld2.C0 = clerp(bwld2.C0, euler(3.14, -2, 1.17) * cf(0, 0, 0), 0.4)
  3858. bwld8.C0 = clerp(bwld8.C0, euler(3.14, -2, 1.57) * cf(0, 0, 0), 0.4)
  3859. bwld14.C0 = clerp(bwld14.C0, euler(3.14, -2, 1.97) * cf(0, 0, 0), 0.4)
  3860. brefwld.C0 = clerp(brefwld.C0, euler(0, 0, 0) * cf(0, -2, 0), 0.4)
  3861. end
  3862. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3863. Anim = "Jump"
  3864. if attack == false then
  3865. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3866. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3867. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.1, 0, 0), 0.2)
  3868. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5), 0.2)
  3869. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3870. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1.2), 0.2)
  3871. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3872. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3873. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3874. end
  3875. else
  3876. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3877. Anim = "Fall"
  3878. if attack == false then
  3879. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3880. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3882. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.2), 0.2)
  3883. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3884. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, -0.2) * euler(-0.3, 0, -0.2), 0.2)
  3885. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3886. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3887. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3888. end
  3889. else
  3890. if torvel < 1 and hitfloor ~= nil then
  3891. Anim = "Idle"
  3892. if attack == false then
  3893. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.15)
  3894. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.15)
  3895. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.3, 0, 0.2) * euler(0, -1.57, 0), 0.15)
  3896. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3897. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.4 + (donum) / 3), 0.15)
  3898. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3899. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, -0.1), 0.2)
  3900. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.2) * euler(0, -1.57, 0) * euler(0, 0.5, 0.05), 0.2)
  3901. end
  3902. else
  3903. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3904. Anim = "Walk"
  3905. walk = walk + 1
  3906. if 15 - 5 * Mvmt.Value <= walk then
  3907. walk = 0
  3908. if walkforw == true then
  3909. walkforw = false
  3910. else
  3911. if walkforw == false then
  3912. walkforw = true
  3913. end
  3914. end
  3915. end
  3916. if attack == false then
  3917. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  3918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  3919. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.2), 0.3)
  3920. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  3921. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  3922. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  3923. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3924. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3925. end
  3926. else
  3927. if 30 <= torvel and hitfloor ~= nil then
  3928. Anim = "Run"
  3929. if attack == false then
  3930. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.2), 0.4)
  3931. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.2), 0.4)
  3932. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0.2), 0.4)
  3933. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3934. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  3935. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3936. RH.C0 = clerp(RH.C0, RHC0 * cf(1, 1, 0.2) * euler(0, -0.2, -0.5), 0.4)
  3937. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.2, 0, -0.5), 0.4)
  3938. end
  3939. end
  3940. end
  3941. end
  3942. end
  3943. end
  3944. end
  3945. if 0 < #Effects then
  3946. for e = 1, #Effects do
  3947. if Effects[e] ~= nil then
  3948. local Thing = Effects[e]
  3949. if Thing ~= nil then
  3950. local Part = Thing[1]
  3951. local Mode = Thing[2]
  3952. local Delay = Thing[3]
  3953. local IncX = Thing[4]
  3954. local IncY = Thing[5]
  3955. local IncZ = Thing[6]
  3956. if Thing[2] == "CylinderClang" then
  3957. if Thing[3] <= 1 then
  3958. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3959. Thing[7] = Thing[1].CFrame
  3960. effect("New Yeller", 0, Thing[8], Thing[7])
  3961. Thing[8] = Thing[7]
  3962. Thing[3] = Thing[3] + Thing[4]
  3963. else
  3964. Part.Parent = nil
  3965. table.remove(Effects, e)
  3966. end
  3967. end
  3968. if Thing[2] == "showDamage" then
  3969. if Thing[6] < Thing[5] then
  3970. Thing[6] = Thing[6] + 1
  3971. else
  3972. if Thing[6] < Thing[7] then
  3973. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3974. Thing[6] = Thing[6] + 1
  3975. else
  3976. if Thing[6] < Thing[8] then
  3977. Thing[6] = Thing[6] + 1
  3978. else
  3979. if Thing[6] < Thing[9] then
  3980. Thing[6] = Thing[6] + 1
  3981. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3982. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3983. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3984. else
  3985. Thing[1].Parent = nil
  3986. table.remove(Effects, e)
  3987. end
  3988. end
  3989. end
  3990. end
  3991. end
  3992. if Thing[2] == "Shoot" then
  3993. if CannonTarget == nil then
  3994. table.remove(Effects, e)
  3995. else
  3996. local MainPos = Thing[1]
  3997. local MainPos2 = Thing[4]
  3998. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  3999. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, CannonTarget.Parent)
  4000. local mag = (Thing[1] - pos).magnitude
  4001. MagicCylinder2(Color2, CFrame.new((Thing[1] + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, 1.5, 0, 1.5, 0.1)
  4002. Thing[1] = Thing[1] + MouseLook.lookVector * 10
  4003. Thing[3] = Thing[3] - 1
  4004. if hit ~= nil then
  4005. Thing[3] = 0
  4006. Damagefunc(hit, 8, 10, 0, "Normal", RootPart, 0, 2, math.random(1, 5), false, false, true, "Damage", 0.1, 200)
  4007. ref = part(3, workspace, 0, 1, Color2, "Reference", vt())
  4008. ref.Anchored = true
  4009. ref.CFrame = cf(pos)
  4010. so("169445602", ref, 1, 0.8)
  4011. so("153092334", ref, 1, 0.8)
  4012. MagicBlock(Color2, cf(pos), 20, 20, 20, 5, 5, 5, 0.05)
  4013. game:GetService("Debris"):AddItem(ref, 1)
  4014. MagniDamage(ref, 10, 6, 9, 0, "Normal", ref, 0, 1, (math.random(1, 5)), nil, nil, true, "Damage", 0.05, 200)
  4015. end
  4016. if Thing[3] <= 0 then
  4017. table.remove(Effects, e)
  4018. end
  4019. end
  4020. end
  4021. do
  4022. do
  4023. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot" then
  4024. if Thing[1].Transparency <= 1 then
  4025. if Thing[2] == "Block1" then
  4026. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4027. Mesh = Thing[7]
  4028. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4029. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4030. else
  4031. if Thing[2] == "Ice" then
  4032. if Thing[6] <= Thing[5] then
  4033. Thing[6] = Thing[6] + 0.3
  4034. Thing[1].CFrame = Thing[1].CFrame * cf(0, 1, 0)
  4035. else
  4036. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4037. end
  4038. else
  4039. if Thing[2] == "Shatter" then
  4040. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4041. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  4042. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  4043. Thing[6] = Thing[6] + Thing[5]
  4044. else
  4045. if Thing[2] == "Block2" then
  4046. Thing[1].CFrame = Thing[1].CFrame
  4047. Mesh = Thing[7]
  4048. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4049. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4050. else
  4051. if Thing[2] == "Cylinder" then
  4052. Mesh = Thing[7]
  4053. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4054. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4055. else
  4056. if Thing[2] == "Blood" then
  4057. Mesh = Thing[7]
  4058. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  4059. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4060. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4061. else
  4062. if Thing[2] == "Elec" then
  4063. Mesh = Thing[10]
  4064. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4065. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4066. else
  4067. if Thing[2] == "Disappear" then
  4068. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4069. end
  4070. end
  4071. end
  4072. end
  4073. end
  4074. end
  4075. end
  4076. end
  4077. else
  4078. Part.Parent = nil
  4079. table.remove(Effects, e)
  4080. end
  4081. end
  4082. -- DECOMPILER ERROR at PC9980: LeaveBlock: unexpected jumping out DO_STMT
  4083.  
  4084. -- DECOMPILER ERROR at PC9980: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4085.  
  4086. -- DECOMPILER ERROR at PC9980: LeaveBlock: unexpected jumping out IF_STMT
  4087.  
  4088. -- DECOMPILER ERROR at PC9980: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4089.  
  4090. -- DECOMPILER ERROR at PC9980: LeaveBlock: unexpected jumping out IF_STMT
  4091.  
  4092. end
  4093. end
  4094. end
  4095. end
  4096. end
  4097. end
  4098. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4099. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4100. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4101. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4102. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4103. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4104. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4105. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4106. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4107. for _,c in pairs(Decrease:children()) do
  4108. if (c:findFirstChild("Duration")) ~= nil then
  4109. c.Duration.Value = c.Duration.Value - 1
  4110. if c.Duration.Value <= 0 then
  4111. c.Parent = nil
  4112. end
  4113. end
  4114. if c.Name == "DecreaseAtk" then
  4115. decreaseatk = decreaseatk + c.Value
  4116. else
  4117. if c.Name == "DecreaseDef" then
  4118. decreasedef = decreasedef + c.Value
  4119. else
  4120. if c.Name == "DecreaseMvmt" then
  4121. decreasemvmt = decreasemvmt + c.Value
  4122. end
  4123. end
  4124. end
  4125. end
  4126. Atk.Value = 1 - (decreaseatk)
  4127. if Atk.Value <= 0 then
  4128. Atk.Value = 0
  4129. end
  4130. Def.Value = 1 - (decreasedef)
  4131. if Def.Value <= 0 then
  4132. Def.Value = 0.01
  4133. end
  4134. Mvmt.Value = 1 - (decreasemvmt)
  4135. if Mvmt.Value <= 0 then
  4136. Mvmt.Value = 0
  4137. end
  4138. decreaseatk = 0
  4139. decreasedef = 0
  4140. decreasemvmt = 0
  4141. AtkVal = Atk.Value * 100
  4142. AtkVal = math.floor(AtkVal)
  4143. AtkVal = AtkVal / 100
  4144. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4145. DefVal = Def.Value * 100
  4146. DefVal = math.floor(DefVal)
  4147. DefVal = DefVal / 100
  4148. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4149. MvmtVal = Mvmt.Value * 100
  4150. MvmtVal = math.floor(MvmtVal)
  4151. MvmtVal = MvmtVal / 100
  4152. if Rooted.Value == true then
  4153. MvmtVal = 0
  4154. end
  4155. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4156. if StunT.Value <= Stun.Value then
  4157. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4158. else
  4159. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4160. end
  4161. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4162. if 100 <= mana.Value then
  4163. mana.Value = 100
  4164. else
  4165. if mananum <= 11 then
  4166. mananum = mananum + 1
  4167. else
  4168. if 8 <= mananum then
  4169. mananum = 0
  4170. mana.Value = mana.Value + 1
  4171. end
  4172. end
  4173. end
  4174. for i = 1, #cooldowns do
  4175. if cooldownmax <= cooldowns[i] then
  4176. cooldowns[i] = cooldownmax
  4177. else
  4178. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4179. end
  4180. end
  4181. -- DECOMPILER ERROR at PC10344: LeaveBlock: unexpected jumping out DO_STMT
  4182.  
  4183. -- DECOMPILER ERROR at PC10344: LeaveBlock: unexpected jumping out DO_STMT
  4184.  
  4185. -- DECOMPILER ERROR at PC10344: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4186.  
  4187. -- DECOMPILER ERROR at PC10344: LeaveBlock: unexpected jumping out IF_STMT
  4188.  
  4189. -- DECOMPILER ERROR at PC10344: LeaveBlock: unexpected jumping out DO_STMT
  4190.  
  4191. end
  4192. end
  4193. end
  4194. end
  4195. end
Add Comment
Please, Sign In to add comment