Advertisement
astronaut32

derpchanic

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