kakeru012435

Cyber Gaster

Apr 16th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.65 KB | None | 0 0
  1. script.Parent=Strife
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Neck = Torso.Neck
  18. it = Instance.new
  19. vt = Vector3.new
  20. cf = CFrame.new
  21. euler = CFrame.fromEulerAnglesXYZ
  22. angles = CFrame.Angles
  23. mr = math.rad
  24. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. RootPart = Character.HumanoidRootPart
  31. RootJoint = RootPart.RootJoint
  32. RootCF = euler(-1.57, 0, 3.14)
  33. attack = false
  34. attackdebounce = false
  35. Mouse = Player:GetMouse()
  36. combo = 0
  37. local hitfloor, posfloor = nil, nil
  38. local idle = 0
  39. local Anim = "Idle"
  40. local Effects = {}
  41. local Weapon = {}
  42. local Welds = {}
  43. local Claw = {}
  44. local nClaw = {}
  45. local D1Welds = {}
  46. local D2Welds = {}
  47. local D3Welds = {}
  48. local HWelds = {}
  49. local FStacks = {}
  50. local dattack = false
  51. local drakes = 0
  52. local Frost = 0
  53. local Mode = "Drakes"
  54. local decreaseatk = 0
  55. local decreasedef = 0
  56. local decreasemvmt = 0
  57. local prt1 = nil
  58. local freeze = false
  59. local breakfreeze = false
  60. local dryice = false
  61. local move1 = "(Z)\nCold Front"
  62. local move2 = "(X)\nFrostfang"
  63. local move3 = "(C)\nDry Ice"
  64. local move4 = "(V)\nSavage Wrath"
  65. local Stats = Instance.new("BoolValue")
  66. Stats.Name = "Stats"
  67. Stats.Parent = Character
  68. local RecentEnemy = Instance.new("ObjectValue")
  69. RecentEnemy.Name = "RecentEnemy"
  70. RecentEnemy.Parent = Stats
  71. RecentEnemy.Value = nil
  72. local Mvmt = Instance.new("NumberValue")
  73. Mvmt.Name = "Movement"
  74. Mvmt.Parent = Stats
  75. Mvmt.Value = 1
  76. local Rooted = Instance.new("BoolValue")
  77. Rooted.Name = "Rooted"
  78. Rooted.Parent = Stats
  79. Rooted.Value = false
  80. player = nil
  81. RSH = nil
  82. RW = Instance.new("Motor")
  83. LW = Instance.new("Motor")
  84. RW.Name = "Right Shoulder"
  85. LW.Name = "Left Shoulder"
  86. LH = Torso["Left Hip"]
  87. RH = Torso["Right Hip"]
  88. TorsoColor = Torso.BrickColor
  89. NewCol = BrickColor.new("Really black").Color
  90. --[[NewCol2 = BrickColor.new("Pastel light blue").Color
  91. NewCol3 = BrickColor.new("Medium blue").Color
  92. NewCol3aa = BrickColor.new("Medium blue").Color
  93. NewCol4 = BrickColor.new("Cyan").Color
  94. NewCol5 = BrickColor.new("Lily white").Color
  95. NewCol6 = BrickColor.new("Bright blue").Color ]]
  96.  
  97. NewCol2 = BrickColor.new("Really black").Color
  98. NewCol3 = BrickColor.new("Really black").Color
  99. NewCol3aa = BrickColor.new("Really black").Color
  100. NewCol4 = BrickColor.new("White").Color
  101. NewCol5 = BrickColor.new("Really black").Color
  102. NewCol6 = BrickColor.new("White").Color
  103. if Player:findFirstChild("Color1") ~= nil then
  104. NewCol5 = Player.Color1.Value
  105. end
  106. local canjump = true
  107. removeControl = function()
  108. canjump = false
  109. end
  110.  
  111. resumeControl = function()
  112. canjump = true
  113. end
  114.  
  115. for i,v in pairs(Character:children()) do
  116. if v:IsA("Hat") then
  117. v:Destroy()
  118. end
  119. end
  120.  
  121. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=382064532"
  122. Character.Shirt:Remove()
  123. Character.Pants:Remove()
  124. Character["Body Colors"].TorsoColor=BrickColor.new("Really red")
  125. Torso.BrickColor=BrickColor.new("Really red")
  126. Torso.Material="Metal"
  127. RightArm.Material="DiamondPlate"
  128. LeftArm.Material="DiamondPlate"
  129. RightLeg.Material="DiamondPlate"
  130. LeftLeg.Material="DiamondPlate"
  131.  
  132. Player.Character.Humanoid.Changed:connect(function()
  133. if canjump == false then
  134. Player.Character.Humanoid.Jump = false
  135. end
  136. end
  137. )
  138. ArtificialHB = Instance.new("BindableEvent", script)
  139. ArtificialHB.Name = "Heartbeat"
  140.  
  141. script:WaitForChild("Heartbeat")
  142.  
  143. frame = 1 / 60
  144. tf = 0
  145. allowframeloss = false
  146. tossremainder = false
  147. lastframe = tick()
  148. script.Heartbeat:Fire()
  149.  
  150. game:GetService("RunService").Heartbeat:connect(function(s, p)
  151. tf = tf + s
  152. if tf >= frame then
  153. if allowframeloss then
  154. script.Heartbeat:Fire()
  155. lastframe = tick()
  156. else
  157. for i = 1, math.floor(tf / frame) do
  158. script.Heartbeat:Fire()
  159. end
  160. lastframe = tick()
  161. end
  162. if tossremainder then
  163. tf = 0
  164. else
  165. tf = tf - frame * math.floor(tf / frame)
  166. end
  167. end
  168. end)
  169.  
  170. function swait(num)
  171. if num == 0 or num == nil then
  172. ArtificialHB.Event:wait()
  173. else
  174. for i = 0, num do
  175. ArtificialHB.Event:wait()
  176. end
  177. end
  178. end
  179.  
  180.  
  181. NoOutline = function(Part)
  182. Part.TopSurface = 10
  183. end
  184.  
  185. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  186. local fp = it("Part")
  187. fp.formFactor = formfactor
  188. fp.Parent = parent
  189. fp.Reflectance = reflectance
  190. fp.Transparency = transparency
  191. fp.CanCollide = false
  192. fp.Locked = true
  193. fp.BrickColor = brickcolor
  194. fp.Name = name
  195. fp.Size = size
  196. fp.Position = Torso.Position
  197. NoOutline(fp)
  198. fp.Material = "SmoothPlastic"
  199. fp:BreakJoints()
  200. return fp
  201. end
  202.  
  203. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  204. local mesh = it(Mesh)
  205. mesh.Parent = part
  206. if Mesh == "SpecialMesh" then
  207. mesh.MeshType = meshtype
  208. if meshid ~= "nil" then
  209. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  210. end
  211. end
  212. mesh.Offset = offset
  213. mesh.Scale = scale
  214. return mesh
  215. end
  216.  
  217. weld = function(parent, part0, part1, c0)
  218. local weld = it("Motor")
  219. weld.Parent = parent
  220. weld.Part0 = part0
  221. weld.Part1 = part1
  222. weld.C0 = c0
  223. return weld
  224. end
  225.  
  226. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  227. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  228. prt.Material = neon
  229. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  230. wld = weld(prt1, prt, wldpar, ceef)
  231. v = it("NumberValue", prt)
  232. v.Value = trans
  233. v.Name = "MainTransparency"
  234. return prt, msh, wld
  235. end
  236.  
  237. local nr = NumberRange.new
  238. local ns = NumberSequence.new
  239. local cs = ColorSequence.new
  240. local nsk = NumberSequenceKeypoint.new
  241.  
  242. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  243. local fp = it("ParticleEmitter")
  244. fp.Parent = parent
  245. fp.Color = cs(col1, col2)
  246. fp.LightEmission = lightemis
  247. fp.Size = size
  248. fp.Texture = texture
  249. fp.Transparency = transparency
  250. fp.ZOffset = zoffset
  251. fp.Acceleration = accel
  252. fp.Drag = drag
  253. fp.LockedToPart = ltp
  254. fp.VelocityInheritance = velinher
  255. fp.EmissionDirection = emisdir
  256. fp.Enabled = enabled
  257. fp.Lifetime = lifetime
  258. fp.Rate = rate
  259. fp.Rotation = rotation
  260. fp.RotSpeed = rotspeed
  261. fp.Speed = speed
  262. fp.VelocitySpread = velspread
  263. return fp
  264. end
  265.  
  266. knife = function(parent, pitch)
  267. knifes = Instance.new("Sound")
  268. knifes.Parent=parent
  269. knifes.SoundId="rbxassetid://357417055"
  270. knifes.Volume=10
  271. knifes.Pitch=pitch
  272. wait(0.001)
  273. knifes:Play()
  274. end
  275.  
  276. rave = function(parent, pitch)
  277. raves = Instance.new("Sound")
  278. raves.Parent=parent
  279. raves.SoundId="rbxassetid://160772554"
  280. raves.Volume=10
  281. raves.Pitch=pitch
  282. wait(0.001)
  283. raves:Play()
  284. end
  285.  
  286. gaster = function(parent, pitch)
  287. blaster = Instance.new("Sound")
  288. blaster.Parent=parent
  289. blaster.SoundId="rbxassetid://332223043"
  290. blaster.Volume=10
  291. blaster.Pitch=pitch
  292. wait(0.001)
  293. blaster:Play()
  294. end
  295.  
  296. gastblast = function(parent, pitch)
  297. gastblasts = Instance.new("Sound")
  298. gastblasts.Parent=parent
  299. gastblasts.SoundId="rbxassetid://340722848"
  300. gastblasts.Volume=10
  301. gastblasts.Pitch=pitch
  302. wait(0.001)
  303. gastblasts:Play()
  304. end
  305.  
  306. summongb = function(parent, pitch)
  307. gastsummons = Instance.new("Sound")
  308. gastsummons.Parent=parent
  309. gastsummons.SoundId="rbxassetid://382366855"
  310. gastsummons.Volume=10
  311. gastsummons.Pitch=pitch
  312. wait(0.001)
  313. gastsummons:Play()
  314. end
  315.  
  316. -----Left Asriel {R} Arm Two----------------------
  317. --[[p=Instance.new('Part',Character)
  318. p.BrickColor=BrickColor.new('Black')
  319. p.Material=("SmoothPlastic") --("Neon")
  320. p.Name="P6"
  321. p.Size=Vector3.new(1.2,2.2,1.2)
  322. w=Instance.new('Weld',Character.P6)
  323. w.Part0=Character.P6
  324. w.Part1=LeftArm
  325. ------------------------------
  326. p=Instance.new('Part',Character)
  327. p.BrickColor=BrickColor.new('Institutional white')
  328. p.Material=("Neon")
  329. p.Name="P7"
  330. p.Size=Vector3.new(1.3, 0.2, 1.3)
  331. w=Instance.new('Weld',Character.P7)
  332. w.Part0=Character.P7
  333. w.Part1=LeftArm
  334. w.C0=CFrame.new(0,0.8,0)
  335. ------------------------------
  336. p=Instance.new('Part',Character)
  337. p.BrickColor=BrickColor.new('Institutional white')
  338. p.Material=("Neon")
  339. p.Name="Diamond2"
  340. p.Size=Vector3.new(1.3, 0.2, 1.3)
  341. m=Instance.new('SpecialMesh',Character.Diamond2)
  342. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  343. m.Scale=Vector3.new(1.3, 1.4, 1.3)
  344. w=Instance.new('Weld',Character.Diamond2)
  345. w.Part0=Character.Diamond2
  346. w.Part1=LeftArm
  347. w.C0=CFrame.new(0,0,0)
  348. ----------------------------------
  349. p=Instance.new('Part',Character)
  350. p.BrickColor=BrickColor.new('Institutional white')
  351. p.Material=("Neon")
  352. p.Name="P8"
  353. p.Size=Vector3.new(1.3, 0.2, 1.3)
  354. w=Instance.new('Weld',Character.P8)
  355. w.Part0=Character.P8
  356. w.Part1=LeftArm
  357. w.C0=CFrame.new(0,0.4,0)
  358. ------------------------------------------
  359. p=Instance.new('Part',Character)
  360. p.BrickColor=BrickColor.new('Institutional white')
  361. p.Material=("Neon")
  362. p.Name="P9"
  363. p.Size=Vector3.new(1.3, 0.2, 1.3)
  364. w=Instance.new('Weld',Character.P9)
  365. w.Part0=Character.P9
  366. w.Part1=LeftArm
  367. w.C0=CFrame.new(0,-0.8,0)
  368. -----------------------------------------------------
  369. p=Instance.new('Part',Character)
  370. p.BrickColor=BrickColor.new('Institutional white')
  371. p.Material=("Neon")
  372. p.Name="P10"
  373. p.Size=Vector3.new(1.3, 0.2, 1.3)
  374. w=Instance.new('Weld',Character.P10)
  375. w.Part0=Character.P10
  376. w.Part1=LeftArm
  377. w.C0=CFrame.new(0,-0.4,0) ]]
  378. -----------------------------------------------------
  379.  
  380. local modelzorz = Instance.new("Model")
  381. modelzorz.Parent = Character
  382. modelzorz.Name = "Drake Claw"
  383. local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  384. prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part01", vt())
  385. msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(5.25, 5, 5.25))
  386. local handlewld = weld(handle, handle, RightArm, euler(0, 0, 0) * cf(0, 0, 0))
  387. local wld1 = weld(prt1, prt1, handle, cf(0, 0, 0) * euler(0, 0, 0))
  388. prt4, msh4, wld4 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol3, "Part04", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 3, 0.75, 1.5, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.575, -0.825, 0))
  389. prt5, msh5, wld5 = AesthPart(modelzorz, prt1, 0, 0, "Really black", "Part05", "Metal", "SpecialMesh", "Sphere", "nil", 0.475, 0.15, 0.675, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.65, -0.825, 0))
  390. prt6, msh6, wld6 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part06", "Neon", "SpecialMesh", "Sphere", "nil", 0.4, 0.25, 0.6, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.65, -0.825, 0))
  391. prt9, msh9, wld9 = AesthPart(modelzorz, prt1, 0.3, 0, NewCol2, "Part09", "SmoothPlastic", "SpecialMesh", "FileMesh", "19251107", 0.1, 0.1, 0.1, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.65, -0.825, 0))
  392. prt12, msh12, wld12 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part12", "SmoothPlastic", "BlockMesh", "nil", "nil", 5.25, 4, 1, euler(0, mr(90), 0) * cf(-0.6, 0.375, 0))
  393. prt13, msh13, wld13 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part13", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 4, 3.05, 0.475, euler(0, mr(90), 0) * euler(0, 0, -mr(10)) * cf(-0.601, -0.316, 0))
  394. prt14, msh14, wld14 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol3, "Part14", "SmoothPlastic", "BlockMesh", "nil", "nil", 2.5, 5, 1, euler(0, mr(90), 0) * euler(0, 0, -mr(10)) * cf(-0.676, -0.162, 0))
  395. prt15, msh15, wld15 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol3, "Part15", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 5, 0.25, 1.25, euler(0, 0, mr(80)) * euler(0, 0, 0) * cf(-0.799, -0.184, 0.125))
  396. prt16, msh16, wld16 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol3, "Part16", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 5, 0.25, 1.25, euler(0, 0, mr(100)) * euler(mr(180), 0, 0) * cf(-0.799, -0.184, -0.125))
  397. prt17, msh17, wld17 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part17", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 4.5, 4.5, 0.4, euler(0, mr(90), 0) * euler(0, 0, 0) * cf(-0.55, -0.475, 0))
  398. prt18, msh18, wld18 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part18", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 5.25, 1, 0.25, euler(0, mr(-90), 0) * euler(mr(180), 0, 0) * cf(-0.525, 0.875, 0))
  399. prt19, msh19, wld19 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part19", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 5.25, 1, 0.5, euler(0, mr(90), 0) * euler(mr(180), 0, 0) * cf(-0.65, 0.875, 0))
  400. prt20, msh20, wld20 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part20", "SmoothPlastic", "BlockMesh", "nil", "nil", 5.25, 1, 0.25, euler(0, mr(90), 0) * euler(0, 0, 0) * cf(-0.575, 0.875, 0))
  401. prt21, msh21, wld21 = AesthPart(modelzorz, prt1, 0, 0, "Black", "Part21", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 1.25, 1.5, 1.25, euler(mr(180), 0, 0) * euler(0, 0, 0) * cf(-0.675, 0.975, 0))
  402. prt24, msh24, wld24 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol5, "Part24", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 3.5, 2.5, 1.5, euler(0, mr(90), 0) * euler(mr(180), 0, 0) * cf(-0.7, 0.575, 0))
  403. prt25, msh25, wld25 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol5, "Part25", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.5, 0.3, 1.2, euler(mr(90), mr(90), 0) * euler(0, 0, mr(10)) * cf(-0.945, 0.378, 0))
  404. prt26, msh26, wld26 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol5, "Part26", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.625, 0.4, 0.5, euler(mr(90), mr(90), 0) * euler(0, 0, mr(-10)) * cf(-0.845, 0.428, 0))
  405. prt27, msh27, wld27 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol5, "Part27", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.525, 0.3, 0.75, euler(mr(90), mr(90), 0) * euler(0, 0, mr(-10)) * cf(-0.73, 0.174, 0))
  406. prt28, msh28, wld28 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part28", "Metal", "SpecialMesh", "Sphere", "nil", 0.6, 0.125, 0.85, euler(0, mr(95.221), mr(113.261)) * euler(0, mr(-19.53), 0) * cf(-1.058, 0.687, 0.252))
  407. prt29, msh29, wld29 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part29", "Neon", "SpecialMesh", "Sphere", "nil", 0.5, 0.25, 0.75, euler(0, mr(95.221), mr(113.261)) * euler(0, mr(-19.53), 0) * cf(-1.058, 0.687, 0.252))
  408. prt30, msh30, wld30 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part30", "Metal", "SpecialMesh", "Sphere", "nil", 0.6, 0.125, 0.85, euler(0, mr(84.779), mr(113.261)) * euler(0, mr(19.53), 0) * cf(-1.058, 0.687, -0.252))
  409. prt31, msh31, wld31 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part31", "Neon", "SpecialMesh", "Sphere", "nil", 0.5, 0.25, 0.75, euler(0, mr(84.779), mr(113.261)) * euler(0, mr(19.53), 0) * cf(-1.058, 0.687, -0.252))
  410. prt32, msh32, wld32 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part32", "Metal", "SpecialMesh", "Sphere", "nil", 0.275, 0.1, 0.475, euler(0, mr(94.208), mr(114.079)) * euler(0, mr(-24.666), 0) * cf(-1.093, 0.693, 0.137))
  411. prt33, msh33, wld33 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part33", "Neon", "SpecialMesh", "Sphere", "nil", 0.2, 0.25, 0.4, euler(0, mr(94.208), mr(114.079)) * euler(0, mr(-24.666), 0) * cf(-1.093, 0.693, 0.137))
  412. prt34, msh34, wld34 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part34", "Metal", "SpecialMesh", "Sphere", "nil", 0.275, 0.1, 0.475, euler(0, mr(85.792), mr(114.079)) * euler(0, mr(24.666), 0) * cf(-1.093, 0.693, -0.137))
  413. prt35, msh35, wld35 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part35", "Neon", "SpecialMesh", "Sphere", "nil", 0.2, 0.25, 0.4, euler(0, mr(85.792), mr(114.079)) * euler(0, mr(24.666), 0) * cf(-1.093, 0.693, -0.137))
  414. for i = -0.225, 0.226, 0.45 do
  415. prt36, msh36, wld36 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol6, "Part36", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.225, 0.225, 0.225, euler(0, 0, mr(-10)) * euler(0, 0, 0) * cf(-0.729, 0.85, i))
  416. prt37, msh37, wld37 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part37", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.7, 1.5, 1, euler(0, mr(90), 0) * euler(0, 0, mr(-10)) * cf(-0.751, 0.973, i))
  417. prt38, msh38, wld38 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part38", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.7, 1.25, 1, euler(0, mr(-90), 0) * euler(0, 0, mr(170)) * cf(-0.799, 1.244, i))
  418. prt39, msh39, wld39 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part39", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.6, 1.5, 1, euler(0, mr(90), 0) * euler(0, 0, mr(0)) * cf(-0.772, 1.239, i))
  419. prt40, msh40, wld40 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part40", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.6, 1.25, 1, euler(0, mr(-90), 0) * euler(0, 0, mr(180)) * cf(-0.772, 1.514, i))
  420. prt41, msh41, wld41 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part41", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.5, 2, 1, euler(0, mr(90), 0) * euler(0, 0, mr(10)) * cf(-0.738, 1.559, i))
  421. prt42, msh42, wld42 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part42", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.5, 1.25, 1, euler(0, mr(-90), 0) * euler(0, 0, mr(190)) * cf(-0.682, 1.879, i))
  422. prt43, msh43, wld43 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part43", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.4, 2.5, 1, euler(0, mr(90), 0) * euler(0, 0, mr(20)) * cf(-0.624, 1.939, i))
  423. prt44, msh44, wld44 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part44", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.4, 1.25, 1, euler(0, mr(-90), 0) * euler(0, 0, mr(200)) * cf(-0.496, 2.291, i))
  424. prt45, msh45, wld45 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part45", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.3, 2, 1, euler(0, mr(90), 0) * euler(0, 0, mr(35)) * cf(-0.428, 2.307, i))
  425. prt46, msh46, wld46 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol2, "Part46", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.3, 2.25, 1, euler(0, mr(-90), 0) * euler(0, 0, mr(215)) * cf(-0.184, 2.655, i))
  426. table.insert(Claw, prt37)
  427. table.insert(Claw, prt38)
  428. table.insert(Claw, prt39)
  429. table.insert(Claw, prt40)
  430. table.insert(Claw, prt41)
  431. table.insert(Claw, prt42)
  432. table.insert(Claw, prt43)
  433. table.insert(Claw, prt44)
  434. table.insert(Claw, prt45)
  435. table.insert(Claw, prt46)
  436. end
  437. for i = 1, #Claw do
  438. Claw[i].Transparency = 1
  439. end
  440. for i = -0.425, 0.426, 0.85 do
  441. local prt22, msh22, wld22 = AesthPart(modelzorz, prt1, 0.2, 0, NewCol2, "Part22", "SmoothPlastic", "BlockMesh", "nil", "nil", 1.01, 3.001, 0.26, euler(0, mr(90), 0) * euler(0, 0, 0) * cf(-0.675, 0.275, i))
  442. local prt23, msh23, wld23 = AesthPart(modelzorz, prt1, 0.2, 0, NewCol2, "Part23", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1.01, 1.01, 0.26, euler(0, mr(-90), 0) * euler(mr(180), 0, 0) * cf(-0.675, 0.675, i))
  443. end
  444. for i = -0.375, 0.376, 0.75 do
  445. local prt10, msh10, wld10 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol4, "Part10", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 2.25, 1, 1, euler(0, 0, mr(90)) * euler(0, 0, 0) * cf(-0.6, -0.75, i))
  446. local prt11, msh11, wld11 = AesthPart(modelzorz, prt1, 0.5, 0, NewCol4, "Part10", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 5.25, 0.501, 1, euler(0, 0, mr(90)) * euler(0, 0, 0) * cf(-0.55, -0.45, i))
  447. end
  448. for i = -0.5, 0.5, 0.25 do
  449. local prt2, msh2, wld2 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part02", "SmoothPlastic", "BlockMesh", "", "", 5.3, 0.5, 5.3, cf(0, i, 0))
  450. end
  451. for i = -0.65, 0.66 do
  452. local prt3, msh3, wld3 = AesthPart(modelzorz, prt1, 0.3, 0, NewCol2, "Part03", "SmoothPlastic", "BlockMesh", "", "", 5.5, 1.5, 5.5, cf(0, i, 0))
  453. end
  454. for i = -0.075, 0.076, 0.15 do
  455. local prt7, msh7, wld7 = AesthPart(modelzorz, prt1, 0, 0, "Really black", "Part07", "Metal", "SpecialMesh", "Sphere", "nil", 0.2, 0.1, 0.35, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.65, -0.825, i))
  456. local prt8, msh8, wld8 = AesthPart(modelzorz, prt1, 0, 0, NewCol4, "Part08", "Neon", "SpecialMesh", "Sphere", "nil", 0.15, 0.2, 0.3, euler(mr(90), 0, 0) * euler(0, mr(90), 0) * cf(-0.65, -0.825, i))
  457. end
  458. local model2 = it("Model", Character)
  459. model2.Name = "Drake1"
  460. dprt1, dmsh1, dwld1 = AesthPart(model2, RootPart, 0, 0, NewCol2, "Drake Part01", "Neon", "SpecialMesh", "Sphere", "nil", 2.75, 2.75, 2.75, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 5))
  461. dprt2, dmsh2, dwld2 = AesthPart(model2, dprt1, 0, 0.2, NewCol2, "Drake Part02", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  462. dprt3, dmsh3, dwld3 = AesthPart(model2, dprt2, 0, 0.7, NewCol4, "Drake Part03", "Neon", "SpecialMesh", "Sphere", "nil", 3.5, 3.5, 3.5, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  463. dprt4, dmsh4, dwld4 = AesthPart(model2, dprt2, 0, 0.9, NewCol4, "Drake Part04", "Neon", "SpecialMesh", "Sphere", "nil", 4, 4, 4, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  464. dprt5, dmsh5, dwld5 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part05", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 1, 1, 1, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, -0.3, -0.35))
  465. dprt6, dmsh6, dwld6 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part06", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.8, 0.8, 1.5, euler(mr(-5), 0, 0) * euler(0, 0, 0) * cf(0, -0.172, -1.054))
  466. dprt7, dmsh7, dwld7 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part07", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(20), 0, 0) * euler(0, 0, 0) * cf(0, -0.842, -0.355))
  467. dprt13, dmsh13, dwld13 = AesthPart(model2, dprt2, 0, 0, NewCol, "Drake Part13", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  468. dprt14, dmsh14, dwld14 = AesthPart(model2, dprt2, 0, 0, NewCol, "Drake Part14", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  469. dprt15, dmsh15, dwld15 = AesthPart(model2, dprt2, 0, 0, NewCol, "Drake Part15", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  470. dprt16, dmsh16, dwld16 = AesthPart(model2, dprt2, 0, 0, NewCol, "Drake Part16", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  471. dprt17, dmsh17, dwld17 = AesthPart(model2, dprt2, 0, 0, NewCol4, "Drake Part17", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  472. dprt18, dmsh18, dwld18 = AesthPart(model2, dprt2, 0, 0, NewCol4, "Drake Part18", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  473. dprt19, dmsh19, dwld19 = AesthPart(model2, dprt2, 0, 0, NewCol4, "Drake Part19", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  474. dprt20, dmsh20, dwld20 = AesthPart(model2, dprt2, 0, 0, NewCol4, "Drake Part20", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  475. table.insert(D1Welds, dwld1)
  476. table.insert(D1Welds, dwld2)
  477. table.insert(D1Welds, dwld3)
  478. table.insert(D1Welds, dwld4)
  479. table.insert(D1Welds, dwld5)
  480. table.insert(D1Welds, dwld6)
  481. table.insert(D1Welds, dwld7)
  482. table.insert(D1Welds, dwld13)
  483. table.insert(D1Welds, dwld14)
  484. table.insert(D1Welds, dwld15)
  485. table.insert(D1Welds, dwld16)
  486. table.insert(D1Welds, dwld17)
  487. table.insert(D1Welds, dwld18)
  488. table.insert(D1Welds, dwld19)
  489. table.insert(D1Welds, dwld20)
  490. for i = -1, 1, 2 do
  491. dprt10, dmsh10, dwld10 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part10", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 1, 0.25, euler(mr(34.897), 0, 0) * euler(0, 0, mr(44.099) * i) * euler(0, mr(2.865) * i, 0) * cf(1.369 * i, 0.43, -1.182))
  492. dprt11, dmsh11, dwld11 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part11", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.75, 0.25, euler(mr(20.486), 0, 0) * euler(0, 0, mr(43.384) * i) * euler(0, mr(16.995) * i, 0) * cf(1.144 * i, 0.609, -0.593))
  493. dprt12, dmsh12, dwld12 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part12", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.65, 0.2, euler(mr(3.814), 0, 0) * euler(0, 0, mr(36.66) * i) * euler(0, mr(29.955) * i, 0) * cf(0.908 * i, 0.762, -0.022))
  494. table.insert(D1Welds, dwld10)
  495. table.insert(D1Welds, dwld11)
  496. table.insert(D1Welds, dwld12)
  497. end
  498. for i = -1, 1, 2 do
  499. dprt8, dmsh8, dwld8 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part08", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(23.273), mr(-20.027 * i), mr(-95.696 * i)) * cf(0.903 * i, -0.554, -0.531))
  500. dprt9, dmsh9, dwld9 = AesthPart(model2, dprt2, 0.5, 0, NewCol5, "Drake Part09", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.3, 0.15, 1.5, euler(mr(22.305), mr(-3.546 * i), mr(-101.084 * i)) * cf(0.836 * i, -0.195, -0.533))
  501. table.insert(D1Welds, dwld8)
  502. table.insert(D1Welds, dwld9)
  503. end
  504. sizeseq = ns({nsk(0, 0), nsk(0.096, 1.5), nsk(0.602, 3), nsk(1, 10)})
  505. transseq = ns({nsk(0, 0), nsk(0.05, 0.5), nsk(0.1, 1), nsk(1, 1)})
  506. sizeseq = ns({nsk(0, 0), nsk(0.054, 0.12), nsk(0.451, 0.12), nsk(1, 0.12)})
  507. transseq = ns({nsk(0, 1), nsk(0.03, 1), nsk(0.1, 0.137), nsk(0.232, 1), nsk(1, 1)})
  508. sizeseq = ns({nsk(0, 1), nsk(0.096, 2.5), nsk(0.3, 10), nsk(1, 10)})
  509. transseq = ns({nsk(0, 0), nsk(0.05, 0.5), nsk(0.1, 1), nsk(1, 1)})
  510. local model3 = it("Model", Character)
  511. model3.Name = "Drake2"
  512. d2prt1, d2msh1, d2wld1 = AesthPart(model3, RootPart, 0, 0, NewCol2, "Drake Part01", "Neon", "SpecialMesh", "Sphere", "nil", 2.75, 2.75, 2.75, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 5))
  513. d2prt2, d2msh2, d2wld2 = AesthPart(model3, d2prt1, 0, 0.2, NewCol2, "Drake Part02", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  514. d2prt3, d2msh3, d2wld3 = AesthPart(model3, d2prt2, 0, 0.7, NewCol4, "Drake Part03", "Neon", "SpecialMesh", "Sphere", "nil", 3.5, 3.5, 3.5, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  515. d2prt4, d2msh4, d2wld4 = AesthPart(model3, d2prt2, 0, 0.9, NewCol4, "Drake Part04", "Neon", "SpecialMesh", "Sphere", "nil", 4, 4, 4, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  516. d2prt5, d2msh5, d2wld5 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part05", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 1, 1, 1, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, -0.3, -0.35))
  517. d2prt6, d2msh6, d2wld6 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part06", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.8, 0.8, 1.5, euler(mr(-5), 0, 0) * euler(0, 0, 0) * cf(0, -0.172, -1.054))
  518. d2prt7, d2msh7, d2wld7 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part07", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(20), 0, 0) * euler(0, 0, 0) * cf(0, -0.842, -0.355))
  519. d2prt13, d2msh13, d2wld13 = AesthPart(model3, d2prt2, 0, 0, NewCol, "Drake Part13", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  520. d2prt14, d2msh14, d2wld14 = AesthPart(model3, d2prt2, 0, 0, NewCol, "Drake Part14", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  521. d2prt15, d2msh15, d2wld15 = AesthPart(model3, d2prt2, 0, 0, NewCol, "Drake Part15", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  522. d2prt16, d2msh16, d2wld16 = AesthPart(model3, d2prt2, 0, 0, NewCol, "Drake Part16", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  523. d2prt17, d2msh17, d2wld17 = AesthPart(model3, d2prt2, 0, 0, NewCol4, "Drake Part17", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  524. d2prt18, d2msh18, d2wld18 = AesthPart(model3, d2prt2, 0, 0, NewCol4, "Drake Part18", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  525. d2prt19, d2msh19, d2wld19 = AesthPart(model3, d2prt2, 0, 0, NewCol4, "Drake Part19", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  526. d2prt20, d2msh20, d2wld20 = AesthPart(model3, d2prt2, 0, 0, NewCol4, "Drake Part20", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  527. table.insert(D2Welds, d2wld1)
  528. table.insert(D2Welds, d2wld2)
  529. table.insert(D2Welds, d2wld3)
  530. table.insert(D2Welds, d2wld4)
  531. table.insert(D2Welds, d2wld5)
  532. table.insert(D2Welds, d2wld6)
  533. table.insert(D2Welds, d2wld7)
  534. table.insert(D2Welds, d2wld13)
  535. table.insert(D2Welds, d2wld14)
  536. table.insert(D2Welds, d2wld15)
  537. table.insert(D2Welds, d2wld16)
  538. table.insert(D2Welds, d2wld17)
  539. table.insert(D2Welds, d2wld18)
  540. table.insert(D2Welds, d2wld19)
  541. table.insert(D2Welds, d2wld20)
  542. for i = -1, 1, 2 do
  543. d2prt10, d2msh10, d2wld10 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part10", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 1, 0.25, euler(mr(34.897), 0, 0) * euler(0, 0, mr(44.099) * i) * euler(0, mr(2.865) * i, 0) * cf(1.369 * i, 0.43, -1.182))
  544. d2prt11, d2msh11, d2wld11 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part11", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.75, 0.25, euler(mr(20.486), 0, 0) * euler(0, 0, mr(43.384) * i) * euler(0, mr(16.995) * i, 0) * cf(1.144 * i, 0.609, -0.593))
  545. d2prt12, d2msh12, d2wld12 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part12", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.65, 0.2, euler(mr(3.814), 0, 0) * euler(0, 0, mr(36.66) * i) * euler(0, mr(29.955) * i, 0) * cf(0.908 * i, 0.762, -0.022))
  546. table.insert(D2Welds, d2wld10)
  547. table.insert(D2Welds, d2wld11)
  548. table.insert(D2Welds, d2wld12)
  549. end
  550. for i = -1, 1, 2 do
  551. d2prt8, d2msh8, d2wld8 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part08", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(23.273), mr(-20.027 * i), mr(-95.696 * i)) * cf(0.903 * i, -0.554, -0.531))
  552. d2prt9, d2msh9, d2wld9 = AesthPart(model3, d2prt2, 0.5, 0, NewCol5, "Drake Part09", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.3, 0.15, 1.5, euler(mr(22.305), mr(-3.546 * i), mr(-101.084 * i)) * cf(0.836 * i, -0.195, -0.533))
  553. table.insert(D2Welds, d2wld8)
  554. table.insert(D2Welds, d2wld9)
  555. end
  556. local model4 = it("Model", Character)
  557. model4.Name = "Drake3"
  558. d3prt1, d3msh1, d3wld1 = AesthPart(model4, RootPart, 0, 0, NewCol2, "Drake Part01", "Neon", "SpecialMesh", "Sphere", "nil", 2.75, 2.75, 2.75, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 5))
  559. d3prt2, d3msh2, d3wld2 = AesthPart(model4, d3prt1, 0, 0.2, NewCol2, "Drake Part02", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  560. d3prt3, d3msh3, d3wld3 = AesthPart(model4, d3prt2, 0, 0.7, NewCol4, "Drake Part03", "Neon", "SpecialMesh", "Sphere", "nil", 3.5, 3.5, 3.5, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  561. d3prt4, d3msh4, d3wld4 = AesthPart(model4, d3prt2, 0, 0.9, NewCol4, "Drake Part04", "Neon", "SpecialMesh", "Sphere", "nil", 4, 4, 4, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0))
  562. d3prt5, d3msh5, d3wld5 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part05", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 1, 1, 1, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, -0.3, -0.35))
  563. d3prt6, d3msh6, d3wld6 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part06", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.8, 0.8, 1.5, euler(mr(-5), 0, 0) * euler(0, 0, 0) * cf(0, -0.172, -1.054))
  564. d3prt7, d3msh7, d3wld7 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part07", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(20), 0, 0) * euler(0, 0, 0) * cf(0, -0.842, -0.355))
  565. d3prt13, d3msh13, d3wld13 = AesthPart(model4, d3prt2, 0, 0, NewCol, "Drake Part13", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  566. d3prt14, d3msh14, d3wld14 = AesthPart(model4, d3prt2, 0, 0, NewCol, "Drake Part14", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  567. d3prt15, d3msh15, d3wld15 = AesthPart(model4, d3prt2, 0, 0, NewCol, "Drake Part15", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  568. d3prt16, d3msh16, d3wld16 = AesthPart(model4, d3prt2, 0, 0, NewCol, "Drake Part16", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  569. d3prt17, d3msh17, d3wld17 = AesthPart(model4, d3prt2, 0, 0, NewCol4, "Drake Part17", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(-30.192)) * euler(0, mr(3.81), 0) * cf(0.244, -0.676, 0.395))
  570. d3prt18, d3msh18, d3wld18 = AesthPart(model4, d3prt2, 0, 0, NewCol4, "Drake Part18", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(-35.792)) * euler(0, mr(12.017), 0) * cf(0.402, -0.656, 0.288))
  571. d3prt19, d3msh19, d3wld19 = AesthPart(model4, d3prt2, 0, 0, NewCol4, "Drake Part19", "Neon", "SpecialMesh", "Sphere", "nil", 0.9, 0.6, 1.3, euler(mr(34.252), 0, 0) * euler(0, 0, mr(30.192)) * euler(0, mr(-3.81), 0) * cf(-0.244, -0.676, 0.395))
  572. d3prt20, d3msh20, d3wld20 = AesthPart(model4, d3prt2, 0, 0, NewCol4, "Drake Part20", "Neon", "SpecialMesh", "Sphere", "nil", 0.3, 0.3, 0.4, euler(mr(36.107), 0, 0) * euler(0, 0, mr(35.792)) * euler(0, mr(-12.017), 0) * cf(-0.402, -0.656, 0.288))
  573. table.insert(D3Welds, d3wld1)
  574. table.insert(D3Welds, d3wld3)
  575. table.insert(D3Welds, d3wld2)
  576. table.insert(D3Welds, d3wld4)
  577. table.insert(D3Welds, d3wld5)
  578. table.insert(D3Welds, d3wld6)
  579. table.insert(D3Welds, d3wld7)
  580. table.insert(D3Welds, d3wld13)
  581. table.insert(D3Welds, d3wld14)
  582. table.insert(D3Welds, d3wld15)
  583. table.insert(D3Welds, d3wld16)
  584. table.insert(D3Welds, d3wld17)
  585. table.insert(D3Welds, d3wld18)
  586. table.insert(D3Welds, d3wld19)
  587. table.insert(D3Welds, d3wld20)
  588. for i = -1, 1, 2 do
  589. d3prt10, d3msh10, d3wld10 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part10", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 1, 0.25, euler(mr(34.897), 0, 0) * euler(0, 0, mr(44.099) * i) * euler(0, mr(2.865) * i, 0) * cf(1.369 * i, 0.43, -1.182))
  590. d3prt11, d3msh11, d3wld11 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part11", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.75, 0.25, euler(mr(20.486), 0, 0) * euler(0, 0, mr(43.384) * i) * euler(0, mr(16.995) * i, 0) * cf(1.144 * i, 0.609, -0.593))
  591. d3prt12, d3msh12, d3wld12 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part12", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.65, 0.2, euler(mr(3.814), 0, 0) * euler(0, 0, mr(36.66) * i) * euler(0, mr(29.955) * i, 0) * cf(0.908 * i, 0.762, -0.022))
  592. table.insert(D3Welds, d3wld10)
  593. table.insert(D3Welds, d3wld11)
  594. table.insert(D3Welds, d3wld12)
  595. end
  596. for i = -1, 1, 2 do
  597. d3prt8, d3msh8, d3wld8 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part08", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(23.273), mr(-20.027 * i), mr(-95.696 * i)) * cf(0.903 * i, -0.554, -0.531))
  598. d3prt9, d3msh9, d3wld9 = AesthPart(model4, d3prt2, 0.5, 0, NewCol5, "Drake Part09", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.3, 0.15, 1.5, euler(mr(22.305), mr(-3.546 * i), mr(-101.084 * i)) * cf(0.836 * i, -0.195, -0.533))
  599. table.insert(D3Welds, d3wld8)
  600. table.insert(D3Welds, d3wld9)
  601. end
  602. model2.Parent = nil
  603. model3.Parent = nil
  604. model4.Parent = nil
  605. dwld2.Part0 = dprt1
  606. dwld2.Part1 = dprt2
  607. d2wld2.Part0 = d2prt1
  608. d2wld2.Part1 = d2prt2
  609. d3wld2.Part0 = d3prt1
  610. d3wld2.Part1 = d3prt2
  611. local helm = it("Model", Character)
  612. helm.Name = "Monarch"
  613. Head.Transparency = 0
  614. Head.face.Transparency = 0
  615. for _,v in pairs(Character:children()) do
  616. if v.className == "Hat" then
  617. v.Handle.Transparency = 0
  618. end
  619. end
  620. mhead, mhmsh, mhwld = AesthPart(helm, Head, 0.5, 0, NewCol5, "Monarch Head", "Neon", "SpecialMesh", "Head", "nil", 5.5, 5.5, 5.5, euler(0, 0, 0) * cf(0, 0, 0))
  621. mprt1, mmsh1, mwld1 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part01", "SmoothPlastic", "SpecialMesh", "FileMesh", "9253927", 0.9, 0.9, 0.9, euler(0, 0, 0) * cf(0, 0, 0))
  622. mprt2, mmsh2, mwld2 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part02", "Metal", "SpecialMesh", "Sphere", "nil", 0.95, 1.8, 0.6, euler(0, 0, 0) * cf(0, -0.149, 0.558))
  623. mprt3, mmsh3, mwld3 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part03", "Neon", "SpecialMesh", "Sphere", "nil", 0.8, 1.5, 0.9, euler(0, 0, 0) * cf(0, -0.149, 0.558))
  624. mprt4, mmsh4, mwld4 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part04", "Metal", "SpecialMesh", "Sphere", "nil", 0.55, 1.2, 0.6, euler(0, mr(15), 0) * cf(-0.191, -0.149, 0.524))
  625. mprt5, mmsh5, mwld5 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part05", "Neon", "SpecialMesh", "Sphere", "nil", 0.4, 1, 0.75, euler(0, mr(15), 0) * cf(-0.191, -0.149, 0.524))
  626. mprt6, mmsh6, mwld6 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part06", "Metal", "SpecialMesh", "Sphere", "nil", 0.55, 1.2, 0.6, euler(0, mr(-15), 0) * cf(0.191, -0.149, 0.524))
  627. mprt7, mmsh7, mwld7 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part07", "Neon", "SpecialMesh", "Sphere", "nil", 0.4, 1, 0.75, euler(0, mr(-15), 0) * cf(0.191, -0.149, 0.524))
  628. mprt8, mmsh8, mwld8 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part08", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 1, 1, 1, euler(mr(-10), 0, 0) * cf(0, -0.063, -0.236))
  629. mprt9, mmsh9, mwld9 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part09", "SmoothPlastic", "SpecialMesh", "FileMesh", "170786197", 0.8, 0.8, 1.5, euler(mr(-15), 0, 0) * cf(0, 0.185, -0.907))
  630. mprt10, mmsh10, mwld10 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part10", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(mr(10), 0, 0) * cf(0, -0.596, -0.335))
  631. mprt16, mmsh16, mwld16 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part16", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(29.252), 0, 0) * euler(0, 0, mr(-22.192)) * euler(0, mr(-3.81), 0) * cf(0.244, -0.563, 0.433))
  632. mprt17, mmsh17, mwld17 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part17", "Neon", "SpecialMesh", "Sphere", "nil", 0.2, 0.6, 1.1, euler(mr(29.252), 0, 0) * euler(0, 0, mr(-22.192)) * euler(0, mr(-3.81), 0) * cf(0.244, -0.563, 0.433))
  633. mprt18, mmsh18, mwld18 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part18", "Metal", "SpecialMesh", "Sphere", "nil", 1.05, 0.4, 1.4, euler(mr(29.252), 0, 0) * euler(0, 0, mr(22.192)) * euler(0, mr(3.81), 0) * cf(-0.244, -0.563, 0.433))
  634. mprt19, mmsh19, mwld19 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part19", "Neon", "SpecialMesh", "Sphere", "nil", 0.2, 0.6, 1.1, euler(mr(29.252), 0, 0) * euler(0, 0, mr(22.192)) * euler(0, mr(3.81), 0) * cf(-0.244, -0.563, 0.433))
  635. mprt20, mmsh20, mwld20 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part20", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(26.107), 0, 0) * euler(0, 0, mr(-35.793)) * euler(0, mr(-12.017), 0) * cf(0.402, -0.525, 0.331))
  636. mprt21, mmsh21, mwld21 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part21", "Neon", "SpecialMesh", "Sphere", "nil", 0.1, 0.3, 0.3, euler(mr(26.107), 0, 0) * euler(0, 0, mr(-35.793)) * euler(0, mr(-12.017), 0) * cf(0.402, -0.525, 0.331))
  637. mprt22, mmsh22, mwld22 = AesthPart(helm, mhead, 0, 0, NewCol, "Monarch Part22", "Metal", "SpecialMesh", "Sphere", "nil", 0.35, 0.25, 0.45, euler(mr(26.107), 0, 0) * euler(0, 0, mr(35.793)) * euler(0, mr(12.017), 0) * cf(-0.402, -0.525, 0.331))
  638. mprt23, mmsh23, mwld23 = AesthPart(helm, mhead, 0, 0, NewCol4, "Monarch Part23", "Neon", "SpecialMesh", "Sphere", "nil", 0.1, 0.3, 0.3, euler(mr(26.107), 0, 0) * euler(0, 0, mr(35.793)) * euler(0, mr(12.017), 0) * cf(-0.402, -0.525, 0.331))
  639. table.insert(HWelds, mhwld)
  640. table.insert(HWelds, mwld1)
  641. table.insert(HWelds, mwld2)
  642. table.insert(HWelds, mwld3)
  643. table.insert(HWelds, mwld4)
  644. table.insert(HWelds, mwld5)
  645. table.insert(HWelds, mwld6)
  646. table.insert(HWelds, mwld7)
  647. table.insert(HWelds, mwld8)
  648. table.insert(HWelds, mwld9)
  649. table.insert(HWelds, mwld10)
  650. table.insert(HWelds, mwld16)
  651. table.insert(HWelds, mwld17)
  652. table.insert(HWelds, mwld18)
  653. table.insert(HWelds, mwld19)
  654. table.insert(HWelds, mwld20)
  655. table.insert(HWelds, mwld21)
  656. table.insert(HWelds, mwld22)
  657. table.insert(HWelds, mwld23)
  658. for i = -1, 1, 2 do
  659. mprt11, mmsh11, mwld11 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part11", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.6, 0.3, 2, euler(0, 0, mr(-95.514) * i) * euler(0, mr(24.898) * i, 0) * euler(mr(7.673), 0, 0) * cf(0.903 * i, -0.282, -0.458))
  660. mprt12, mmsh12, mwld12 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part12", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.3, 0.15, 1.5, euler(0, 0, mr(-102.075) * i) * euler(0, mr(22.588) * i, 0) * euler(mr(-8.529), 0, 0) * cf(0.836 * i, 0.072, -0.398))
  661. mprt13, mmsh13, mwld13 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part13", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 1, 0.25, euler(0, mr(-154.897) * i, 0) * euler(mr(-25), 0, mr(-45.901) * i) * euler(0, 0, 0) * cf(0.885 * i, 0.033, -0.049))
  662. mprt14, mmsh14, mwld14 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part14", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.75, 0.25, euler(0, mr(-160) * i, 0) * euler(mr(-40), 0, mr(-60) * i) * euler(0, 0, 0) * cf(0.701 * i, 0.33, -0.205))
  663. mprt15, mmsh15, mwld15 = AesthPart(helm, mhead, 0.5, 0, NewCol5, "Monarch Part15", "SmoothPlastic", "SpecialMesh", "FileMesh", "9756362", 0.125, 0.65, 0.2, euler(0, mr(-123) * i, 0) * euler(mr(-70), 0, mr(-80) * i) * euler(0, 0, 0) * cf(0.559 * i, 0.59, -0.478))
  664. table.insert(HWelds, mwld11)
  665. table.insert(HWelds, mwld12)
  666. table.insert(HWelds, mwld13)
  667. table.insert(HWelds, mwld14)
  668. table.insert(HWelds, mwld15)
  669. end
  670. helm.Parent = nil
  671. for _,c in pairs(modelzorz:children()) do
  672. table.insert(Weapon, c)
  673. end
  674. for _,c in pairs(prt1:children()) do
  675. if c.className == "Motor" then
  676. table.insert(Welds, c)
  677. end
  678. end
  679. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
  680. hitbox.Anchored = false
  681. local hitboxCF = cf(0, 0, 0)
  682. local sref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt(20, 20, 20))
  683. sref.Anchored = true
  684. sref.CFrame = cf(RootPart.Position)
  685. sizeseq = ns({nsk(0, 5.9), nsk(0.162, 8.63), nsk(1, 10)})
  686. transseq = ns({nsk(0, 1), nsk(0.498, 0.8), nsk(0.913, 0.85), nsk(1, 1)})
  687. sizeseq = ns({nsk(0, 3.61), nsk(0.162, 5.85), nsk(1, 10)})
  688. transseq = ns({nsk(0, 1), nsk(0.498, 0.5), nsk(0.913, 0.55), nsk(1, 1)})
  689. local gsou = Instance.new("Sound", sref)
  690. gsou.Volume = 1
  691. gsou.Pitch = 0.8
  692. gsou.SoundId = "http://www.roblox.com/asset/?id=338601253"
  693. gsou.Looped = true
  694. local effects = it("Model", modelzorz)
  695. effects.Name = "Effects"
  696. hboxpos = Instance.new("BodyPosition", nil)
  697. hboxpos.P = 2000
  698. hboxpos.D = 100
  699. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  700. sizeseq = ns({nsk(0, 0), nsk(0.027, 0.765), nsk(0.184, 2.24), nsk(1, 4.64)})
  701. transseq = ns({nsk(0, 0.375), nsk(0.4, 1), nsk(1, 1)})
  702. sizeseq = ns({nsk(0, 0), nsk(0.025, 0.383), nsk(0.192, 2.51), nsk(1, 2.02)})
  703. transseq = ns({nsk(0, 0.8), nsk(0.3, 1), nsk(1, 1)})
  704.  
  705.  
  706. local bodvel = Instance.new("BodyVelocity")
  707. local bg = Instance.new("BodyGyro")
  708. so = function(id, par, vol, pit)
  709. local sou = Instance.new("Sound", par or workspace)
  710. sou.Volume = vol
  711. sou.Pitch = pit or 1
  712. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  713. coroutine.resume(coroutine.create(function(Sound)
  714. swait()
  715. Sound:play()
  716. end
  717. ), sou)
  718. game:GetService("Debris"):AddItem(sou, 6)
  719. end
  720.  
  721. function clerp(a,b,t)
  722. local qa = {QuaternionFromCFrame(a)}
  723. local qb = {QuaternionFromCFrame(b)}
  724. local ax, ay, az = a.x, a.y, a.z
  725. local bx, by, bz = b.x, b.y, b.z
  726. local _t = 1-t
  727. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  728. end
  729.  
  730. function QuaternionFromCFrame(cf)
  731. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  732. local trace = m00 + m11 + m22
  733. if trace > 0 then
  734. local s = math.sqrt(1 + trace)
  735. local recip = 0.5/s
  736. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  737. else
  738. local i = 0
  739. if m11 > m00 then
  740. i = 1
  741. end
  742. if m22 > (i == 0 and m00 or m11) then
  743. i = 2
  744. end
  745. if i == 0 then
  746. local s = math.sqrt(m00-m11-m22+1)
  747. local recip = 0.5/s
  748. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  749. elseif i == 1 then
  750. local s = math.sqrt(m11-m22-m00+1)
  751. local recip = 0.5/s
  752. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  753. elseif i == 2 then
  754. local s = math.sqrt(m22-m00-m11+1)
  755. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  756. end
  757. end
  758. end
  759.  
  760. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  761. local xs, ys, zs = x + x, y + y, z + z
  762. local wx, wy, wz = w*xs, w*ys, w*zs
  763. local xx = x*xs
  764. local xy = x*ys
  765. local xz = x*zs
  766. local yy = y*ys
  767. local yz = y*zs
  768. local zz = z*zs
  769. 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))
  770. end
  771.  
  772. function QuaternionSlerp(a, b, t)
  773. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  774. local startInterp, finishInterp;
  775. if cosTheta >= 0.0001 then
  776. if (1 - cosTheta) > 0.0001 then
  777. local theta = math.acos(cosTheta)
  778. local invSinTheta = 1/math.sin(theta)
  779. startInterp = math.sin((1-t)*theta)*invSinTheta
  780. finishInterp = math.sin(t*theta)*invSinTheta
  781. else
  782. startInterp = 1-t
  783. finishInterp = t
  784. end
  785. else
  786. if (1+cosTheta) > 0.0001 then
  787. local theta = math.acos(-cosTheta)
  788. local invSinTheta = 1/math.sin(theta)
  789. startInterp = math.sin((t-1)*theta)*invSinTheta
  790. finishInterp = math.sin(t*theta)*invSinTheta
  791. else
  792. startInterp = t-1
  793. finishInterp = t
  794. end
  795. end
  796. 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
  797. end
  798.  
  799. function Block1(prt, delay, x3, y3, z3, msh)
  800. spawn(function()
  801. repeat swait()
  802. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  803. Mesh = msh
  804. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  805. prt.Transparency = prt.Transparency + delay
  806. until prt.Transparency >= 1
  807. prt:remove()
  808. end)
  809. end
  810.  
  811. function Block2(prt, delay, x3, y3, z3, msh)
  812. spawn(function()
  813. repeat swait()
  814. prt.CFrame = prt.CFrame
  815. Mesh = msh
  816. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  817. prt.Transparency = prt.Transparency + delay
  818. until prt.Transparency >= 1
  819. prt:remove()
  820. end)
  821. end
  822.  
  823. function Block3(prt, delay, x3, y3, z3, msh, CF)
  824. spawn(function()
  825. repeat swait()
  826. prt.CFrame = prt.CFrame * cf(0, 1, 0)
  827. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  828. Mesh = msh
  829. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  830. prt.Transparency = prt.Transparency + delay
  831. until prt.Transparency >= 1
  832. prt:remove()
  833. end)
  834. end
  835.  
  836. function Cylinder(effectsg, delay, x3, y3, z3, effectsmsh)
  837. spawn(function()
  838. repeat swait()
  839. Mesh = effectsmsh
  840. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  841. effectsg.Transparency = effectsg.Transparency + delay
  842. until prt.Transparency >= 1
  843. prt:remove()
  844. end)
  845. end
  846.  
  847. function Shatter(prt, delay, x3, y3, z3)
  848. spawn(function()
  849. repeat swait()
  850. prt.Transparency = prt.Transparency + delay
  851. prt.CFrame = prt.CFrame * cf(0, z3, 0)
  852. prt.CFrame = prt.CFrame * euler(y3, 0, 0)
  853. until prt.Transparency >= 1
  854. prt:remove()
  855. end)
  856. end
  857.  
  858.  
  859. hideanim = function()
  860. equipped = false
  861. coroutine.resume(coroutine.create(function()
  862. for i = #Claw / 2, 1, -1 do
  863. swait()
  864. Claw[i].Transparency = 1
  865. Claw[i + 10].Transparency = 1
  866. end
  867. end
  868. ))
  869. for i = 0, 1, 0.1 do
  870. swait()
  871. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.3)
  872. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.4), 0.3)
  873. RW.C0 = clerp(RW.C0, cf(1, 0.6, 0.4) * euler(0.2, 0, 0.8) * euler(0, -1, 0), 0.3)
  874. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  875. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  876. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  877. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.05), 0.3)
  878. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.1, 0, 0.1), 0.3)
  879. end
  880. for _,c in pairs(model2:children()) do
  881. c.Transparency = 1
  882. end
  883. for _,c in pairs(model3:children()) do
  884. c.Transparency = 1
  885. end
  886. for _,c in pairs(model4:children()) do
  887. c.Transparency = 1
  888. end
  889. for i = 0, 1, 0.1 do
  890. swait()
  891. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  892. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  893. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  894. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  895. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  896. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  897. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  898. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  899. end
  900. end
  901.  
  902. equipanim = function()
  903. equipped = true
  904. if drakes >= 1 then
  905. model2.Parent = Character
  906. for i = 1, #D1Welds do
  907. D1Welds[i].Parent = prt1
  908. end
  909. end
  910. do
  911. if drakes >= 2 then
  912. model3.Parent = Character
  913. for i = 1, #D2Welds do
  914. D2Welds[i].Parent = prt1
  915. end
  916. end
  917. do
  918. if drakes >= 3 then
  919. model4.Parent = Character
  920. for i = 1, #D3Welds do
  921. D3Welds[i].Parent = prt1
  922. end
  923. end
  924. do
  925. dwld1.C0 = clerp(dwld1.C0, cf(3.8, -2.2, 0.5) * euler(0.2, 0, -0.4) * euler(0, 0.3, 0), 1)
  926. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2, 0.5) * euler(0.2, 0, 0.4) * euler(0, -0.3, 0), 1)
  927. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 0.5) * euler(0.4, 0, 0) * euler(0, 0, 0), 1)
  928. for _,c in pairs(model2:children()) do
  929. c.Transparency = 1
  930. end
  931. for _,c in pairs(model3:children()) do
  932. c.Transparency = 1
  933. end
  934. for _,c in pairs(model4:children()) do
  935. c.Transparency = 1
  936. end
  937. for i = 0, 1, 0.1 do
  938. swait()
  939. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.3)
  940. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.4), 0.3)
  941. RW.C0 = clerp(RW.C0, cf(1, 0.6, 0.4) * euler(0.2, 0, 0.8) * euler(0, -1, 0), 0.3)
  942. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  943. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  944. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  945. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.05), 0.3)
  946. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.1, 0, 0.1), 0.3)
  947. end
  948. coroutine.resume(coroutine.create(function()
  949. local da = 2
  950. for i = 1, #Claw / 2 do
  951. da = da + 1
  952. Claw[i].Transparency = 0
  953. Claw[i + 10].Transparency = 0
  954. if (da) % 2 == 0 then
  955. swait()
  956. end
  957. end
  958. end
  959. ))
  960. for i = 0, 1, 0.15 do
  961. swait()
  962. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.45)
  963. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.4), 0.45)
  964. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.4, 0, 0.7) * euler(0, -1, 0), 0.45)
  965. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  966. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.45)
  967. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  968. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.05), 0.45)
  969. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.1, 0, 0.1), 0.45)
  970. end
  971. for _,c in pairs(model2:children()) do
  972. c.Transparency = c.MainTransparency.Value
  973. end
  974. for _,c in pairs(model3:children()) do
  975. c.Transparency = c.MainTransparency.Value
  976. end
  977. for _,c in pairs(model4:children()) do
  978. c.Transparency = c.MainTransparency.Value
  979. end
  980. dwld1.C0 = clerp(dwld1.C0, cf(3.8, -2.2, 0.5) * euler(0.2, 0, -0.4) * euler(0, 0.3, 0), 1)
  981. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2, 0.5) * euler(0.2, 0, 0.4) * euler(0, -0.3, 0), 1)
  982. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 0.5) * euler(0.4, 0, 0) * euler(0, 0, 0), 1)
  983. end
  984. end
  985. end
  986. end
  987.  
  988. IceDrake = function()
  989. attack = true
  990. dattack = true
  991. Frost = 0
  992. coroutine.resume(coroutine.create(function()
  993. for i = #Claw / 2, 1, -1 do
  994. swait()
  995. Claw[i].Transparency = 1
  996. Claw[i + 10].Transparency = 1
  997. end
  998. end
  999. ))
  1000. if drakes == 0 then
  1001. model2.Parent = Character
  1002. summongb(dprt1, 1)
  1003. --so("338594711", dprt1, 1, 1)
  1004. for i = 1, #D1Welds do
  1005. D1Welds[i].Parent = prt1
  1006. end
  1007. end
  1008. do
  1009. if drakes == 1 then
  1010. model3.Parent = Character
  1011. summongb(d2prt1, 1)
  1012. --so("338594711", d2prt1, 1, 1)
  1013. for i = 1, #D2Welds do
  1014. D2Welds[i].Parent = prt1
  1015. end
  1016. end
  1017. do
  1018. if drakes == 2 then
  1019. model4.Parent = Character
  1020. summongb(d3prt1, 1)
  1021. --so("338594711", d3prt1, 1, 1)
  1022. for i = 1, #D3Welds do
  1023. D3Welds[i].Parent = prt1
  1024. end
  1025. end
  1026. do
  1027. if drakes == 0 then
  1028. for _,c in pairs(model2:children()) do
  1029. c.Transparency = 1
  1030. end
  1031. else
  1032. if drakes == 1 then
  1033. for _,c in pairs(model3:children()) do
  1034. c.Transparency = 1
  1035. end
  1036. else
  1037. if drakes == 2 then
  1038. for _,c in pairs(model4:children()) do
  1039. c.Transparency = 1
  1040. end
  1041. end
  1042. end
  1043. end
  1044. for i = 0, 1, 0.1 do
  1045. swait()
  1046. if drakes == 0 then
  1047. dwld1.C0 = clerp(dwld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -0.5, 2.2), 1)
  1048. else
  1049. if drakes == 1 then
  1050. d2wld1.C0 = clerp(d2wld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -0.5, 2.2), 1)
  1051. else
  1052. if drakes == 2 then
  1053. d3wld1.C0 = clerp(d3wld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -0.5, 2.2), 1)
  1054. end
  1055. end
  1056. end
  1057. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1059. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.6) * euler(1.7, 0, -0.4) * euler(0, -1, 0), 0.3)
  1060. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, -0.6) * euler(1.7, 0, 0.4) * euler(0, 1, 0), 0.3)
  1061. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.3)
  1062. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.3) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.05), 0.3)
  1063. end
  1064. if drakes == 0 then
  1065. for _,c in pairs(model2:children()) do
  1066. c.Transparency = c.MainTransparency.Value
  1067. end
  1068. else
  1069. if drakes == 1 then
  1070. for _,c in pairs(model3:children()) do
  1071. c.Transparency = c.MainTransparency.Value
  1072. end
  1073. else
  1074. if drakes == 2 then
  1075. for _,c in pairs(model4:children()) do
  1076. c.Transparency = c.MainTransparency.Value
  1077. end
  1078. end
  1079. end
  1080. end
  1081. drakes = drakes + 1
  1082. for i = 0, 1, 0.1 do
  1083. swait()
  1084. if drakes == 1 then
  1085. dwld1.C0 = clerp(dwld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 0.3)
  1086. dwld2.C0 = clerp(dwld2.C0, euler(0, 3.14, 0), 0.3)
  1087. else
  1088. if drakes == 2 then
  1089. d2wld1.C0 = clerp(d2wld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 0.3)
  1090. d2wld2.C0 = clerp(d2wld2.C0, euler(0, 3.14, 0), 0.3)
  1091. else
  1092. if drakes == 3 then
  1093. d3wld1.C0 = clerp(d3wld1.C0, euler(0, 3.14, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 0.3)
  1094. d3wld2.C0 = clerp(d3wld2.C0, euler(0, 3.14, 0), 0.3)
  1095. end
  1096. end
  1097. end
  1098. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.3)
  1099. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1100. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, -0.3) * euler(1.2, 0, 0.2) * euler(0, -1, 0), 0.3)
  1101. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.3) * euler(1.2, 0, -0.2) * euler(0, 1, 0), 0.3)
  1102. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.3)
  1103. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.3) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.05), 0.3)
  1104. end
  1105. if drakes == 1 then
  1106. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 1)
  1107. dwld2.C0 = clerp(dwld2.C0, euler(0, 0, 0), 1)
  1108. else
  1109. if drakes == 2 then
  1110. d2wld1.C0 = clerp(d2wld1.C0, euler(0, 0, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 1)
  1111. d2wld2.C0 = clerp(d2wld2.C0, euler(0, 0, 0), 1)
  1112. else
  1113. if drakes == 3 then
  1114. d3wld1.C0 = clerp(d3wld1.C0, euler(0, 0, 0) * euler(0.2, 0, 0) * euler(0, 0, 0) * cf(0, -2, 2.2), 1)
  1115. d3wld2.C0 = clerp(d3wld2.C0, euler(0, 0, 0), 1)
  1116. end
  1117. end
  1118. end
  1119. coroutine.resume(coroutine.create(function()
  1120. for i = 1, #Claw / 2 do
  1121. Claw[i].Transparency = 0
  1122. Claw[i + 10].Transparency = 0
  1123. swait()
  1124. end
  1125. end
  1126. ))
  1127. dattack = false
  1128. attack = false
  1129. end
  1130. end
  1131. end
  1132. end
  1133.  
  1134. IcyMonarch = function()
  1135. attack = true
  1136. dattack = true
  1137. if Mode == "Drakes" then
  1138. coroutine.resume(coroutine.create(function()
  1139. for i = #Claw / 2, 1, -1 do
  1140. swait()
  1141. Claw[i].Transparency = 1
  1142. Claw[i + 10].Transparency = 1
  1143. end
  1144. end
  1145. ))
  1146. rave(Head, 1)
  1147. --so("338594711", Head, 1, 1.2)
  1148. for i = 0, 1, 0.1 do
  1149. swait()
  1150. dwld1.C0 = clerp(dwld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1151. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1152. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1153. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  1154. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1155. RW.C0 = clerp(RW.C0, cf(1.2, 0.4, -0.3) * euler(1.8, 0, -1) * euler(0, 0, 0), 0.3)
  1156. LW.C0 = clerp(LW.C0, cf(-1.3, 0.6, -0.1) * euler(2.8, 0, 0.6) * euler(0, 0, 0), 0.3)
  1157. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1158. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.5) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.3), 0.3)
  1159. end
  1160. Mode = "Monarch"
  1161. for i = 1, #Claw do
  1162. Claw[i].Material = "Neon"
  1163. end
  1164. model2.Parent = nil
  1165. model3.Parent = nil
  1166. model4.Parent = nil
  1167. Head.Transparency = 1
  1168. Head.face.Transparency = 1
  1169. for _,v in pairs(Character:children()) do
  1170. if v.className == "Hat" then
  1171. v.Handle.Transparency = 1
  1172. end
  1173. end
  1174. helm.Parent = Character
  1175. for i = 1, #HWelds do
  1176. HWelds[i].Parent = prt1
  1177. end
  1178. for i = 0, 1, 0.1 do
  1179. swait()
  1180. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  1181. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1182. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.8) * euler(0, 0, 0), 0.3)
  1183. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.8) * euler(0, 0, 0), 0.3)
  1184. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1185. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.5) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.3), 0.3)
  1186. end
  1187. coroutine.resume(coroutine.create(function()
  1188. for i = 1, #Claw / 2 do
  1189. Claw[i].Transparency = 0
  1190. Claw[i + 10].Transparency = 0
  1191. swait()
  1192. end
  1193. end
  1194. ))
  1195. else
  1196. if Mode == "Monarch" then
  1197. rave(Head, 1)
  1198. --so("338594711", Head, 1, 0.8)
  1199. for i = 0, 1, 0.1 do
  1200. swait()
  1201. dwld1.C0 = clerp(dwld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1202. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1203. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -0.3, 0) * euler(0.2, 0, 0) * cf(0, -1, 0) * euler(0.4, 0, 0), 0.3)
  1204. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  1205. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1206. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.6, 0, 0.7) * euler(0, -1, 0), 0.3)
  1207. LW.C0 = clerp(LW.C0, cf(-1.3, 0.6, -0.1) * euler(2.8, 0, 0.6) * euler(0, 0, 0), 0.3)
  1208. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1209. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.5) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.3), 0.3)
  1210. end
  1211. Mode = "Drakes"
  1212. for i = 1, #Claw do
  1213. Claw[i].Material = "SmoothPlastic"
  1214. end
  1215. if drakes >= 1 then
  1216. model2.Parent = Character
  1217. for i = 1, #D1Welds do
  1218. D1Welds[i].Parent = prt1
  1219. end
  1220. end
  1221. do
  1222. if drakes >= 2 then
  1223. model3.Parent = Character
  1224. for i = 1, #D2Welds do
  1225. D2Welds[i].Parent = prt1
  1226. end
  1227. end
  1228. do
  1229. if drakes >= 3 then
  1230. model4.Parent = Character
  1231. for i = 1, #D3Welds do
  1232. D3Welds[i].Parent = prt1
  1233. end
  1234. end
  1235. do
  1236. helm.Parent = nil
  1237. Head.Transparency = 0
  1238. Head.face.Transparency = 0
  1239. for _,v in pairs(Character:children()) do
  1240. if v.className == "Hat" then
  1241. v.Handle.Transparency = 0
  1242. end
  1243. end
  1244. for i = 0, 1, 0.1 do
  1245. swait()
  1246. dwld1.C0 = clerp(dwld1.C0, cf(3.8, -2.2, 0.5) * euler(0.2, 0, -0.4) * euler(0, 0.3, 0), 0.3)
  1247. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2, 0.5) * euler(0.2, 0, 0.4) * euler(0, -0.3, 0), 0.3)
  1248. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 0.5) * euler(0.4, 0, 0) * euler(0, 0, 0), 0.3)
  1249. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  1250. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1251. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.6, 0, 0.7) * euler(0, -1, 0), 0.3)
  1252. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
  1253. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1254. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.5) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.3), 0.3)
  1255. end
  1256. do
  1257. end
  1258. end
  1259. end
  1260. end
  1261. end
  1262. end
  1263. dattack = false
  1264. attack = false
  1265. end
  1266.  
  1267. attackone = function()
  1268. attack = true
  1269. if Mode == "Drakes" then
  1270. for i = 0, 1, 0.14 do
  1271. swait()
  1272. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.3)
  1273. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.3)
  1274. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 2) * euler(0, -1, 0), 0.3)
  1275. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.2), 0.3)
  1276. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1277. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(-0.05, 0, 0.1), 0.3)
  1278. end
  1279. knife(RightArm, 1)
  1280. --so("338586299", RightArm, 1, 1)
  1281. hitbox.Parent = modelzorz
  1282. hitbox.Anchored = true
  1283. hitbox.Size = vt(0.2, 0.2, 0.2)
  1284. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1285. for i = 0, 1, 0.12 do
  1286. swait()
  1287. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1288. MagniDamage(hitbox, 2, 6, 10, math.random(8, 10), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1289. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), 0.45)
  1290. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.45)
  1291. RW.C0 = clerp(RW.C0, cf(1, 0.6, -0.4) * euler(0.6, 0, 2) * euler(0, -1, 0) * euler(0, 0, -2.8), 0.45)
  1292. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.45)
  1293. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0.3) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(-0.1, 0, -0.4), 0.45)
  1294. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(-0.2, 0, 0.1), 0.45)
  1295. end
  1296. hitbox.Parent = nil
  1297. else
  1298. for i = 0, 1, 0.15 do
  1299. swait()
  1300. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.4)
  1301. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, -0.4), 0.4)
  1302. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 2) * euler(0, -1, 0), 0.4)
  1303. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.4)
  1304. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.5), 0.4)
  1305. LH.C0 = clerp(LH.C0, cf(-1.1, -0.5, -0.4) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.3), 0.4)
  1306. end
  1307. so("338586299", RightArm, 1, 1.2)
  1308. hitbox.Parent = modelzorz
  1309. hitbox.Anchored = true
  1310. hitbox.Size = vt(0.2, 0.2, 0.2)
  1311. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1312. for i = 0, 1, 0.16 do
  1313. swait()
  1314. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1315. MagniDamage(hitbox, 2, 7, 11, math.random(4, 8), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1316. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1317. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, 0.4), 0.5)
  1318. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(0.6, 0, 2) * euler(0, -1.3, 0) * euler(0, 0, -2.8), 0.5)
  1319. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8), 0.5)
  1320. RH.C0 = clerp(RH.C0, cf(1.05, -0.8, -0.3) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(-0.1, 0, -0.2), 0.5)
  1321. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, 0.4), 0.5)
  1322. end
  1323. hitbox.Parent = nil
  1324. end
  1325. attack = false
  1326. end
  1327.  
  1328. attacktwo = function()
  1329. attack = true
  1330. if Mode == "Drakes" then
  1331. for i = 0, 1, 0.14 do
  1332. swait()
  1333. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.3)
  1334. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.1, 0, 0), 0.3)
  1335. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0, 0, 1.6) * euler(0, -1.4, 0) * euler(0, 0, -1.5), 0.3)
  1336. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.8), 0.3)
  1337. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1338. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.05, 0, 0.1), 0.3)
  1339. end
  1340. knife(RightArm, 1)
  1341. --so("338586318", RightArm, 1, 1)
  1342. hitbox.Parent = modelzorz
  1343. hitbox.Anchored = true
  1344. hitbox.Size = vt(0.2, 0.2, 0.2)
  1345. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1346. for i = 0, 1, 0.12 do
  1347. swait()
  1348. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1349. MagniDamage(hitbox, 2, 6, 10, math.random(8, 10), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1350. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1) * euler(0.1, 0, 0), 0.45)
  1351. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 1) * euler(0.1, 0, 0), 0.45)
  1352. RW.C0 = clerp(RW.C0, cf(1, 0.6, -0.4) * euler(0, 0, 1.6) * euler(0, -1.3, 0) * euler(0, 0, -0.7), 0.45)
  1353. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.45)
  1354. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0.3) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, -0.2), 0.45)
  1355. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(-0.2, 0, 0.1), 0.45)
  1356. end
  1357. hitbox.Parent = nil
  1358. else
  1359. for i = 0, 1, 0.15 do
  1360. swait()
  1361. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.4)
  1362. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, 0.6), 0.4)
  1363. RW.C0 = clerp(RW.C0, cf(0.5, 0.6, -0.4) * euler(0, 0, 1.2) * euler(0, 1, 0) * euler(0, 0, 2.5), 0.4)
  1364. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4), 0.4)
  1365. RH.C0 = clerp(RH.C0, cf(1.05, -0.7, -0.4) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(-0.1, 0, 0.3), 0.4)
  1366. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.4) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.1), 0.4)
  1367. end
  1368. so("338586331", RightArm, 1, 1.2)
  1369. hitbox.Parent = modelzorz
  1370. hitbox.Anchored = true
  1371. hitbox.Size = vt(0.2, 0.2, 0.2)
  1372. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1373. for i = 0, 1, 0.16 do
  1374. swait()
  1375. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1376. MagniDamage(hitbox, 2, 7, 11, math.random(4, 8), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1377. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.5)
  1378. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.4, 0, 0) * euler(0, 0, -0.4), 0.5)
  1379. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, -0.1) * euler(0, 0, 1.2) * euler(0, 1.5, 0) * euler(0, 0, 0), 0.5)
  1380. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -1), 0.5)
  1381. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.5) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, -0.5), 0.5)
  1382. LH.C0 = clerp(LH.C0, cf(-1.2, -0.2, -0.8) * euler(0, -1.57, 0) * euler(0, 0.2, 0) * euler(-0.2, 0, -0.2), 0.5)
  1383. end
  1384. hitbox.Parent = nil
  1385. end
  1386. attack = false
  1387. end
  1388.  
  1389. attackthree = function()
  1390. attack = true
  1391. if Mode == "Drakes" then
  1392. for i = 0, 1, 0.14 do
  1393. swait()
  1394. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), 0.3)
  1395. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.3)
  1396. RW.C0 = clerp(RW.C0, cf(1, 0.6, -0.4) * euler(0, 0, 1.2) * euler(0, 1.5, 0) * euler(0, 0, 2.5), 0.3)
  1397. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.3)
  1398. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0.3) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(-0.1, 0, -0.4), 0.3)
  1399. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(-0.2, 0, 0.1), 0.3)
  1400. end
  1401. knife(RightArm, 1)
  1402. --so("338586331", RightArm, 1, 1)
  1403. hitbox.Parent = modelzorz
  1404. hitbox.Anchored = true
  1405. hitbox.Size = vt(0.2, 0.2, 0.2)
  1406. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1407. for i = 0, 1, 0.12 do
  1408. swait()
  1409. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1410. MagniDamage(hitbox, 2, 6, 10, math.random(10, 12), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1411. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.45)
  1412. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.45)
  1413. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, -0.1) * euler(0, 0, 1.2) * euler(0, 1.5, 0) * euler(0, 0, 0), 0.3)
  1414. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.1, 0, -0.8), 0.45)
  1415. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.45)
  1416. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(-0.05, 0, 0.1), 0.45)
  1417. end
  1418. hitbox.Parent = nil
  1419. else
  1420. for i = 0, 1, 0.15 do
  1421. swait()
  1422. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.4)
  1423. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, -0.4), 0.4)
  1424. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 0.5) * euler(0, -0.6, 0), 0.4)
  1425. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.4)
  1426. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.5), 0.4)
  1427. LH.C0 = clerp(LH.C0, cf(-1.1, -0.5, -0.4) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.3), 0.4)
  1428. end
  1429. so("338586318", RightArm, 1, 1.2)
  1430. hitbox.Parent = modelzorz
  1431. hitbox.Anchored = true
  1432. hitbox.Size = vt(0.2, 0.2, 0.2)
  1433. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1434. for i = 0, 1, 0.16 do
  1435. swait()
  1436. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1437. MagniDamage(hitbox, 2, 7, 11, math.random(4, 8), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1438. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.4) * euler(-0.2, 0, 0), 0.5)
  1439. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.2, 0, 0) * euler(0, 0, 0.4), 0.5)
  1440. RW.C0 = clerp(RW.C0, cf(1.2, 0.8, -0.6) * euler(0.6, 0, 0.5) * euler(0, -1.4, 0) * euler(0, 0, -2.4), 0.5)
  1441. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8), 0.5)
  1442. RH.C0 = clerp(RH.C0, cf(1.05, -0.8, -0.3) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(-0.1, 0, -0.2), 0.5)
  1443. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, 0.4), 0.5)
  1444. end
  1445. hitbox.Parent = nil
  1446. end
  1447. attack = false
  1448. end
  1449.  
  1450. attackfour = function()
  1451. attack = true
  1452. local ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1453. if Mode == "Drakes" then
  1454. for i = 0, 1, 0.08 do
  1455. swait()
  1456. MagicBlock(BrickColor.new(NewCol2), LeftArm.CFrame * cf(0, -1, 0), 6, 6, 6, 1, 1, 1, 0.1, 1)
  1457. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.3)
  1458. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.1, 0, 0), 0.3)
  1459. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0, 0, 1) * euler(0, -1.4, 0) * euler(0, 0, -1), 0.3)
  1460. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.7, 0, -0.8), 0.3)
  1461. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1462. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.05, 0, 0.1), 0.3)
  1463. end
  1464. ref.Anchored = true
  1465. ref.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  1466. game:GetService("Debris"):AddItem(ref, 3)
  1467. rave(ref, 1)
  1468. --so("333475981", ref, 1, 2)
  1469. --so("333476017", ref, 1, 1.4)
  1470. MagniDamage(ref, 5, 6, 8, math.random(10, 15), "Knockdown2", ref, 0, 2, (math.random(6, 8)), nil, nil, true)
  1471. MagicCircle(BrickColor.new(NewCol2), cf(ref.Position), 40, 40, 40, 3, 3, 3, 0.08)
  1472. for i = 1, 10 do
  1473. MagicBlock(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 12, 12, 12, -1, -1, -1, 0.08, 3)
  1474. end
  1475. Torso.Velocity = RootPart.CFrame.lookVector * -80
  1476. for i = 0, 1, 0.1 do
  1477. swait()
  1478. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1479. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.4)
  1480. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 1) * euler(0, -1.5, 0), 0.4)
  1481. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -1), 0.4)
  1482. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.4), 0.4)
  1483. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.15, 0, 0.1), 0.4)
  1484. end
  1485. else
  1486. for i = 0, 1, 0.15 do
  1487. swait()
  1488. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.4)
  1489. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, -0.4), 0.4)
  1490. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 1.5) * euler(0, -1, 0), 0.4)
  1491. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.4)
  1492. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.5), 0.4)
  1493. LH.C0 = clerp(LH.C0, cf(-1.1, -0.5, -0.4) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.3), 0.4)
  1494.  
  1495. end
  1496. so("338586331", RightArm, 1, 1.4)
  1497. hitbox.Parent = modelzorz
  1498. hitbox.Anchored = true
  1499. hitbox.Size = vt(0.2, 0.2, 0.2)
  1500. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1501. spin = 0
  1502. ra = 0
  1503. for i = 0, 1, 0.1 do
  1504. swait()
  1505. if i < 0.6 then
  1506. spin = spin + 1
  1507. ra = -0.4
  1508. else
  1509. spin = 0
  1510. ra = 0
  1511. end
  1512. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1513. MagniDamage(hitbox, 4, 7, 11, math.random(4, 8), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1514. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.4) * euler(0.2, 0, 0), 0.55)
  1515. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0, 0, spin) * euler(0.3, 0, 0) * euler(0, 0, 0.4), 0.55)
  1516. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5 + ra) * euler(0.6, 0, 2) * euler(0, -1.3, 0) * euler(0, 0, -2.8), 0.4)
  1517. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8), 0.55)
  1518. RH.C0 = clerp(RH.C0, cf(1.05, -0.8, -0.3) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(-0.1, 0, -0.2), 0.55)
  1519. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, 0.4), 0.55)
  1520. end
  1521. hitbox.Parent = nil
  1522. end
  1523. attack = false
  1524. if Mode == "Drakes" then
  1525. dattack = true
  1526. local target1, distance1 = findNearestTorso(ref.Position, 30)
  1527. for i = 0, 1, 0.1 do
  1528. swait()
  1529. if target1 ~= nil then
  1530. if drakes > 0 then
  1531. local mpos = dprt2.CFrame * euler(0, 0, 0)
  1532. local cff = CFrame.new(mpos.p, target1.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  1533. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1534. dwld1.C0 = clerp(dwld1.C0, cf(4.5, -2, 1.5), 0.3)
  1535. dwld2.C0 = clerp(dwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1536. end
  1537. do
  1538. if drakes > 1 then
  1539. local mpos = d2prt2.CFrame * euler(0, 0, 0)
  1540. local cff = CFrame.new(mpos.p, target1.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  1541. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1542. d2wld1.C0 = clerp(d2wld1.C0, cf(-4.5, -2, 1.5), 0.3)
  1543. d2wld2.C0 = clerp(d2wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1544. end
  1545. do
  1546. if drakes > 2 then
  1547. local mpos = d3prt2.CFrame * euler(0, 0, 0)
  1548. local cff = CFrame.new(mpos.p, target1.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  1549. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1550. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 1.5), 0.3)
  1551. d3wld2.C0 = clerp(d3wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1552. end
  1553. do
  1554. -- DECOMPILER ERROR at PC1114: LeaveBlock: unexpected jumping out DO_STMT
  1555.  
  1556. -- DECOMPILER ERROR at PC1114: LeaveBlock: unexpected jumping out DO_STMT
  1557.  
  1558. -- DECOMPILER ERROR at PC1114: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1559.  
  1560. -- DECOMPILER ERROR at PC1114: LeaveBlock: unexpected jumping out IF_STMT
  1561.  
  1562. end
  1563. end
  1564. end
  1565. end
  1566. end
  1567. if target1 ~= nil then
  1568. do
  1569. if drakes > 0 then
  1570. local icepart1 = part(3, effects, 0.5, 0, BrickColor.new(NewCol2), "Ice", vt())
  1571. icepart1.Anchored = true
  1572. icepart1.Material = Enum.Material.Neon
  1573. i1msh = mesh("SpecialMesh", icepart1, "FileMesh", "1778999", vt(0, 0, 0), vt(0.7, 1, 0.7))
  1574. icepart1.CFrame = dprt1.CFrame * euler(-1.57, 0, 0)
  1575. game:GetService("Debris"):AddItem(icepart1, 20)
  1576. MouseLook = cf(dprt1.Position, target1.Position)
  1577. so("338594524", icepart1, 1, 1)
  1578. table.insert(Effects, {MouseLook, "ShootIce", 10, icepart1.Position, 4, 5, 0, icepart1, 7, 1})
  1579. end
  1580. do
  1581. if drakes > 1 then
  1582. local icepart1 = part(3, effects, 0.5, 0, BrickColor.new(NewCol2), "Ice", vt())
  1583. icepart1.Anchored = true
  1584. icepart1.Material = Enum.Material.Neon
  1585. i1msh = mesh("SpecialMesh", icepart1, "FileMesh", "1778999", vt(0, 0, 0), vt(0.7, 1, 0.7))
  1586. icepart1.CFrame = d2prt1.CFrame * euler(-1.57, 0, 0)
  1587. game:GetService("Debris"):AddItem(icepart1, 20)
  1588. MouseLook = cf(d2prt1.Position, target1.Position)
  1589. so("338594524", icepart1, 1, 1)
  1590. table.insert(Effects, {MouseLook, "ShootIce", 10, icepart1.Position, 4, 5, 0, icepart1, 7, 1})
  1591. end
  1592. do
  1593. if drakes > 2 then
  1594. local icepart1 = part(3, effects, 0.5, 0, BrickColor.new(NewCol2), "Ice", vt())
  1595. icepart1.Anchored = true
  1596. icepart1.Material = Enum.Material.Neon
  1597. i1msh = mesh("SpecialMesh", icepart1, "FileMesh", "1778999", vt(0, 0, 0), vt(0.7, 1, 0.7))
  1598. icepart1.CFrame = d3prt1.CFrame * euler(-1.57, 0, 0)
  1599. game:GetService("Debris"):AddItem(icepart1, 20)
  1600. MouseLook = cf(d3prt1.Position, target1.Position)
  1601. so("338594524", icepart1, 1, 1)
  1602. table.insert(Effects, {MouseLook, "ShootIce", 10, icepart1.Position, 4, 5, 0, icepart1, 7, 1})
  1603. end
  1604. dwld2.C0 = clerp(dwld2.C0, cf(0, 0, 0), 1)
  1605. d2wld2.C0 = clerp(d2wld2.C0, cf(0, 0, 0), 1)
  1606. d3wld2.C0 = clerp(d3wld2.C0, cf(0, 0, 0), 1)
  1607. dattack = false
  1608. end
  1609. end
  1610. end
  1611. end
  1612. end
  1613. end
  1614.  
  1615. do1 = function()
  1616. if attack == true then
  1617. return end
  1618. attack = true
  1619. dattack = true
  1620. local tPos = Mouse.Hit.p
  1621. if Mode == "Drakes" and drakes < 1 then
  1622. for i = 0, 1, 0.1 do
  1623. swait()
  1624. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.4)
  1625. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.1, 0, 0), 0.4)
  1626. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0, 0, 1) * euler(0, -1.4, 0) * euler(0, 0, -1), 0.4)
  1627. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.7, 0, -0.8), 0.4)
  1628. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.4)
  1629. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.05, 0, 0.1), 0.4)
  1630. end
  1631. tPos = Mouse.Hit.p
  1632. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1633. ref.Anchored = true
  1634. ref.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  1635. game:GetService("Debris"):AddItem(ref, 1)
  1636. MagicBlock(BrickColor.new(NewCol3), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 7, 7, 7, 1, 1, 1, 0.08, 2)
  1637. local icepart1 = part(3, effects, 0.5, 0, BrickColor.new(NewCol2), "Ice", vt(2, 4, 2))
  1638. icepart1.Anchored = true
  1639. icepart1.Material = Enum.Material.Neon
  1640. i1msh = mesh("SpecialMesh", icepart1, "FileMesh", "1778999", vt(0, 0, 0), vt(0.7, 1, 0.7))
  1641. icepart1.CFrame = cf(ref.Position)
  1642. game:GetService("Debris"):AddItem(icepart1, 20)
  1643. MouseLook = cf(icepart1.Position, Mouse.Hit.p)
  1644. --so("338594467", icepart1, 1, 1)
  1645. gastblast(icepart1, 1)
  1646. for i = 0, 1, 0.1 do
  1647. swait()
  1648. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.4)
  1649. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.1, 0, 0), 0.4)
  1650. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0, 0, 1) * euler(0, -1.4, 0) * euler(0, 0, -1), 0.4)
  1651. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.7, 0, -0.8) * cf(0, 0.3, 0) * euler(0.5, 0, 0), 0.4)
  1652. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.4)
  1653. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.05, 0, 0.1), 0.4)
  1654. end
  1655. end
  1656. if Mode == "Monarch" then
  1657. for i = 0, 1, 0.14 do
  1658. swait()
  1659. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.3)
  1660. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.3)
  1661. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 1.5) * euler(0, -1, 0), 0.3)
  1662. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.2), 0.3)
  1663. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  1664. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(-0.05, 0, 0.1), 0.3)
  1665. end
  1666. knife(RightArm, .8)
  1667. --so("338586299", RightArm, 1, 1.1)
  1668. hitbox.Parent = modelzorz
  1669. hitbox.Anchored = true
  1670. hitbox.Size = vt(0.2, 0.2, 0.2)
  1671. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1672. local oldCF = RightArm.CFrame * cf(0, -10, 0.5)
  1673. local oldCF2 = RightArm.CFrame * cf(0, -10, -0.5)
  1674. local ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1675. ref.Anchored = true
  1676. ref.CFrame = RightArm.CFrame * cf(0, -10, 0)
  1677. game:GetService("Debris"):AddItem(ref, 1)
  1678. knife(RightArm, 1.4)
  1679. --so("28144425", ref, 1, 1.2)
  1680. rara = 0.35
  1681. for i = 0, 1, 0.1 do
  1682. swait()
  1683. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), rara)
  1684. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.1, 0, 0), rara)
  1685. RW.C0 = clerp(RW.C0, cf(1, 0.6, -0.4) * euler(0.6, 0, 1.5) * euler(0, -1, 0) * euler(0, 0, -2.8), rara)
  1686. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), rara)
  1687. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0.3) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(-0.1, 0, -0.4), rara)
  1688. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(-0.2, 0, 0.1), rara)
  1689. ref.CFrame = RightArm.CFrame * cf(0, -10, 0)
  1690. rara = rara - 0.02
  1691. if i < 0.8 then
  1692. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1693. freeze = true
  1694. MagniDamage(ref, 5, 4, 6, 0, "Knockdown2", RootPart, 0.5, 1, (math.random(4, 6)), nil, true)
  1695. MagniDamage(hitbox, 2, 5, 7, math.random(8, 10), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  1696. freeze = false
  1697. effect2("Pastel light blue", 0, RightArm.CFrame * cf(0, -10, 0.5), oldCF, nil, 1, 2)
  1698. effect2("Pastel light blue", 0, RightArm.CFrame * cf(0, -10, -0.5), oldCF2, nil, 1, 2)
  1699. oldCF = RightArm.CFrame * cf(0, -10, 0.5)
  1700. oldCF2 = RightArm.CFrame * cf(0, -10, -0.5)
  1701. end
  1702. end
  1703. ref.Parent = nil
  1704. hitbox.Parent = nil
  1705. end
  1706. if Mode == "Drakes"and drakes > 0 then
  1707. for i = 0, 1, 0.1 do
  1708. swait()
  1709. if drakes > 0 then
  1710. local cff = CFrame.new(dprt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1711. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1712. dwld1.C0 = clerp(dwld1.C0, cf(0, -5, 1.5) * euler(0, 0, -1.2), 0.4)
  1713. dwld2.C0 = clerp(dwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1714. end
  1715. if drakes > 1 then
  1716. local cff = CFrame.new(d2prt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1717. local x, y, z = d2prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1718. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -5, 1.5) * euler(0, 0, 1.2), 0.4)
  1719. d2wld2.C0 = clerp(d2wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1720. end
  1721. if drakes > 2 then
  1722. local cff = CFrame.new(d3prt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1723. local x, y, z = d3prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1724. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -5, 1.5), 0.4)
  1725. d3wld2.C0 = clerp(d3wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  1726. end
  1727. end
  1728. local drakeprt = dprt1
  1729. for i = 1, drakes do
  1730. if i == 1 then
  1731. drakeprt = dprt1
  1732. else
  1733. if i == 2 then
  1734. drakeprt = d2prt1
  1735. else
  1736. if i == 3 then
  1737. drakeprt = d3prt1
  1738. end
  1739. end
  1740. end
  1741. dprt1.Transparency = 1
  1742. d2prt1.Transparency = 1
  1743. d3prt1.Transparency = 1
  1744. local refd = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1745. refd.Anchored = true
  1746. refd.CFrame = drakeprt.CFrame
  1747. game:GetService("Debris"):AddItem(refd, 1)
  1748. MagicBlock(BrickColor.new(NewCol3), cf(refd.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 7, 7, 7, 1, 1, 1, 0.08, 2)
  1749. local icepart1 = part(3, effects, 0.5, 0, BrickColor.new(NewCol2), "Ice", vt(2, 4, 2))
  1750. icepart1.Anchored = true
  1751. icepart1.Material = Enum.Material.Neon
  1752. i1msh = mesh("SpecialMesh", icepart1, "FileMesh", "1778999", vt(0, 0, 0), vt(0.7, 1, 0.7))
  1753. icepart1.CFrame = cf(refd.Position)
  1754. game:GetService("Debris"):AddItem(icepart1, 20)
  1755. gastblast(icepart1, 1)
  1756. --so("338594524", icepart1, 1, 1)
  1757. MouseLook = cf(icepart1.Position, tPos + vt(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100))
  1758. for d = 0, 1, 0.2 do
  1759. swait()
  1760. if i == 1 then
  1761. local cff = CFrame.new(dprt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1762. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1763. dwld2.C0 = clerp(dwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0) * cf(0, 0, 2), 0.4)
  1764. else
  1765. if i == 2 then
  1766. local cff = CFrame.new(d2prt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1767. local x, y, z = d2prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1768. d2wld2.C0 = clerp(d2wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0) * cf(0, 0, 2), 0.4)
  1769. else
  1770. if i == 3 then
  1771. local cff = CFrame.new(d3prt1.CFrame.p, tPos) * CFrame.Angles(math.pi / 2, 0, 0)
  1772. local x, y, z = d3prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1773. d3wld2.C0 = clerp(d3wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0) * cf(0, 0, 2), 0.4)
  1774. end
  1775. end
  1776. end
  1777. end
  1778. end
  1779. for i = 0, 1, 0.2 do
  1780. if dattack == false then
  1781. swait()
  1782. end
  1783. dwld2.C0 = clerp(dwld2.C0, cf(0, 0, 0), 0.4)
  1784. d2wld2.C0 = clerp(d2wld2.C0, cf(0, 0, 0), 0.4)
  1785. d3wld2.C0 = clerp(d3wld2.C0, cf(0, 0, 0), 0.4)
  1786. end
  1787. dwld2.C0 = clerp(dwld2.C0, cf(0, 0, 0), 1)
  1788. d2wld2.C0 = clerp(d2wld2.C0, cf(0, 0, 0), 1)
  1789. d3wld2.C0 = clerp(d3wld2.C0, cf(0, 0, 0), 1)
  1790. end
  1791. dprt1.Transparency = 0
  1792. d2prt1.Transparency = 0
  1793. d3prt1.Transparency = 0
  1794. dattack = false
  1795. attack = false
  1796. end
  1797.  
  1798. do2 = function()
  1799. if attack == true then
  1800. return
  1801. end
  1802. attack = true
  1803. dattack = true
  1804. if drakes > 0 or Mode == "Monarch" then
  1805. if Mode == "Drakes" then
  1806. for i = 0, 1, 0.1 do
  1807. swait()
  1808. if drakes > 2 then
  1809. d3wld1.C0 = clerp(d3wld1.C0, euler(0.2, 0, 0.5) * cf(0, -5, 1.5) * euler(-0.5, 0, -1.2), 0.45)
  1810. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, 1.2) * cf(0, -4, -2.5) * euler(0, 0, -1.2), 0.45)
  1811. d2wld1.C0 = clerp(d2wld1.C0, euler(0, 0, -1.2) * cf(0, -4, -2.5) * euler(0, 0, 1.2), 0.45)
  1812. else
  1813. if drakes > 1 then
  1814. d2wld1.C0 = clerp(d2wld1.C0, euler(0.2, 0, 0.5) * cf(0, -5, 1.5) * euler(-0.5, 0, -1.2), 0.45)
  1815. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, -1.2) * cf(0, -4, -2.5) * euler(0, 0, 1.2), 0.45)
  1816. d3wld1.C0 = clerp(d3wld1.C0, euler(0, 0, 1.2) * cf(0, -4, -2.5) * euler(0, 0, -1.2), 0.45)
  1817. else
  1818. if drakes > 0 then
  1819. dwld1.C0 = clerp(dwld1.C0, euler(0.2, 0, 0.5) * cf(0, -5, 1.5) * euler(-0.5, 0, -1.2), 0.45)
  1820. end
  1821. end
  1822. end
  1823. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.3)
  1824. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.3)
  1825. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.6, 0, 0.7) * euler(0, -1, 0), 0.3)
  1826. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -2) * euler(0, 1.57, 0), 0.3)
  1827. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0.3) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(-0.1, 0, -0.4), 0.3)
  1828. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(-0.2, 0, 0.1), 0.3)
  1829. end
  1830. RecentEnemy.Value = nil
  1831. drakesplode = false
  1832. drakepart = dprt1
  1833. thdrake = model2
  1834. if drakes > 2 then
  1835. drakepart = d3prt1
  1836. thdrake = model4
  1837. else
  1838. if drakes > 1 then
  1839. drakepart = d2prt1
  1840. thdrake = model3
  1841. else
  1842. if drakes > 0 then
  1843. drakepart = dprt1
  1844. thdrake = model2
  1845. end
  1846. end
  1847. end
  1848. local oldCF = drakepart.CFrame
  1849. so("338594594", drakepart, 1, 0.9)
  1850. for i = 0, 1, 0.15 do
  1851. swait()
  1852. if RecentEnemy.Value == nil then
  1853. if drakes > 2 then
  1854. drakepart = d3prt1
  1855. thdrake = model4
  1856. d3wld1.C0 = clerp(d3wld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2), 0.35)
  1857. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, 1.2) * cf(0, -4, -2.5) * euler(0, 0, -1.2), 0.45)
  1858. d2wld1.C0 = clerp(d2wld1.C0, euler(0, 0, -1.2) * cf(0, -4, -2.5) * euler(0, 0, 1.2), 0.45)
  1859. elseif drakes > 1 then
  1860. drakepart = d2prt1
  1861. thdrake = model3
  1862. d2wld1.C0 = clerp(d2wld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2), 0.35)
  1863. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, -1.2) * cf(0, -4, -2.5) * euler(0, 0, 1.2), 0.45)
  1864. d3wld1.C0 = clerp(d3wld1.C0, euler(0, 0, 1.2) * cf(0, -4, -2.5) * euler(0, 0, -1.2), 0.45)
  1865. elseif drakes > 0 then
  1866. drakepart = dprt1
  1867. thdrake = model2
  1868. dwld1.C0 = clerp(dwld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2), 0.35)
  1869. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2, 0.5) * euler(0.2, 0, 0.4) * euler(0, -0.3, 0), 0.35)
  1870. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 0.5) * euler(0.4, 0, 0) * euler(0, 0, 0), 0.35)
  1871. end
  1872. effect2("Pastel light blue", 0, drakepart.CFrame, oldCF, nil, 3, 1)
  1873. oldCF = drakepart.CFrame
  1874. MagniDamage(drakepart, 3, 5, 6, 0, "Knockdown2", drakepart, 0, 1, (math.random(2, 4)), nil, true)
  1875. else
  1876. if drakesplode == false then
  1877. drakesplode = true
  1878. drakes = drakes - 1
  1879. thdrake.Parent = nil
  1880. local ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1881. ref.Anchored = true
  1882. ref.CFrame = cf(drakepart.Position)
  1883. game:GetService("Debris"):AddItem(ref, 1)
  1884. MagicCircle(BrickColor.new(NewCol2), cf(ref.Position), 30, 30, 30, 2, 2, 2, 0.05)
  1885. MagicBlock(BrickColor.new(NewCol2), cf(ref.Position), 5, 5, 5, 5, 5, 5, 0.1, 1)
  1886. breakfreeze = true
  1887. so("338594648", ref, 1, 1)
  1888. MagniDamage(drakepart, 6, 6, 8, 0, "Knockdown2", drakepart, 0, 1, (math.random(3, 5)), nil, nil, true, "Damage", 0.2, 200)
  1889. breakfreeze = false
  1890. for i = 1, 10 do
  1891. BreakEffect(BrickColor.new(NewCol2), ref.CFrame * cf(math.random(-400, 400) / 100, math.random(-400, 400) / 100, math.random(-400, 400) / 100), math.random(40, 80) / 100, math.random(2, 6), math.random(40, 80) / 100)
  1892. end
  1893. end
  1894. end
  1895. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.45)
  1896. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.45)
  1897. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(-0.2, 0, 0.7) * euler(0, -1, 0), 0.45)
  1898. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -2) * euler(0, 1, 0) * euler(0, 0, 2), 0.45)
  1899. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.45)
  1900. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(-0.05, 0, 0.1), 0.45)
  1901. end
  1902. for i = 0, 1, 0.13 do
  1903. swait()
  1904. if RecentEnemy.Value == nil then
  1905. if drakes > 2 then
  1906. d3wld1.C0 = clerp(d3wld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2, 0.2), 0.2)
  1907. elseif drakes > 1 then
  1908. d2wld1.C0 = clerp(d2wld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2, 0.2), 0.2)
  1909. elseif drakes > 0 then
  1910. dwld1.C0 = clerp(dwld1.C0, euler(1, 0, 0) * cf(0, -1, 7) * euler(0.5, 0, -1.2), 0.2)
  1911. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2, 0.5) * euler(0.2, 0, 0.4) * euler(0, -0.3, 0), 0.3)
  1912. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 0.5) * euler(0.4, 0, 0) * euler(0, 0, 0), 0.3)
  1913. end
  1914. end
  1915. end
  1916. else
  1917. if Mode == "Monarch" then
  1918. for i = 0, 1, 0.15 do
  1919. swait()
  1920. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.4)
  1921. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.3, 0, 0) * euler(0, 0, -0.4), 0.4)
  1922. RW.C0 = clerp(RW.C0, cf(1.4, 0.6, -0.1) * euler(0.6, 0, 0.2) * euler(0, -1.2, 0), 0.4)
  1923. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.4)
  1924. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -1) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.5), 0.4)
  1925. LH.C0 = clerp(LH.C0, cf(-1.1, -0.5, -0.4) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.3), 0.4)
  1926. end
  1927. so("338586318", RightArm, 1, 1.05)
  1928. so("92597369", RightArm, 1, 1)
  1929. hitbox.Parent = modelzorz
  1930. hitbox.Anchored = true
  1931. hitbox.Size = vt(0.2, 0.2, 0.2)
  1932. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1933. local oldCF = RightArm.CFrame * cf(0, -2, 0.5)
  1934. local oldCF2 = RightArm.CFrame * cf(0, -2, -0.5)
  1935. move = 150
  1936. for i = 0, 1, 0.1 do
  1937. swait()
  1938. move = move - 10
  1939. if Rooted.Value == false then
  1940. Torso.Velocity = RootPart.CFrame.lookVector * move
  1941. end
  1942. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.4) * euler(-0.2, 0, 0), 0.3)
  1943. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.2, 0, 0) * euler(0, 0, 0.4), 0.3)
  1944. RW.C0 = clerp(RW.C0, cf(1.2, 0.8, -0.6) * euler(0.6, 0, 0.2) * euler(0, -2, 0) * euler(0, 0, -2.4), 0.2)
  1945. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8), 0.3)
  1946. RH.C0 = clerp(RH.C0, cf(1.05, -0.8, -0.3) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(-0.1, 0, -0.2), 0.3)
  1947. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, 0.4), 0.3)
  1948. if i < 0.8 then
  1949. hitbox.CFrame = RightArm.CFrame * cf(0, -2, 0)
  1950. breakfreeze = true
  1951. MagniDamage(hitbox, 4, 6, 7, math.random(4, 8), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1952. breakfreeze = false
  1953. effect2("Pastel light blue", 0, RightArm.CFrame * cf(0.2, -3, 0.5), oldCF, nil, 1, 2)
  1954. effect2("Pastel light blue", 0, RightArm.CFrame * cf(0.2, -3, -0.5), oldCF2, nil, 1, 2)
  1955. oldCF = RightArm.CFrame * cf(0.2, -2.8, 0.5)
  1956. oldCF2 = RightArm.CFrame * cf(0.2, -2.8, -0.5)
  1957. end
  1958. end
  1959. hitbox.Parent = nil
  1960. end
  1961. end
  1962. end
  1963. dattack = false
  1964. attack = false
  1965. end
  1966.  
  1967. do3 = function()
  1968. if dryice == true then
  1969. dryice = false
  1970. attack = false
  1971. dattack = false
  1972. return
  1973. end
  1974. if attack == true then
  1975. return
  1976. end
  1977. attack = true
  1978. dattack = true
  1979. dryice = true
  1980. if Mode == "Drakes" then
  1981. coroutine.resume(coroutine.create(function()
  1982. for i = #Claw / 2, 1, -1 do
  1983. swait()
  1984. Claw[i].Transparency = 1
  1985. Claw[i + 10].Transparency = 1
  1986. end
  1987. end
  1988. ))
  1989. sref.Parent = effects
  1990. sref.Size = vt(20, 20, 20)
  1991. local refaa = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1992. refaa.Anchored = true
  1993. refaa.CFrame = cf(sref.Position)
  1994. game:GetService("Debris"):AddItem(refaa, 1)
  1995. gsou:play()
  1996. so("338601305", sref, 1, 0.8)
  1997. raa = 0
  1998. local drake = dprt1
  1999. local targetd1, distanced1 = findNearestTorso(dprt1.Position, 60)
  2000. local targetd2, distanced2 = findNearestTorso(d2prt1.Position, 60)
  2001. local targetd3, distanced3 = findNearestTorso(d3prt1.Position, 60)
  2002. while dryice do
  2003. swait()
  2004. if dryice == true then
  2005. dattack = true
  2006. raa = raa + 1
  2007. refaa.CFrame = sref.CFrame * cf(math.random(-2000, 2000) / 100, 10, math.random(-2000, 2000) / 100)
  2008.  
  2009. if raa % 6 ~= 0 or raa % 3 == 0 then
  2010. hitfloor = rayCast(refaa.Position, CFrame.new(refaa.Position, refaa.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  2011. MagicBlock(BrickColor.new(NewCol3), cf(posfloor), 1, 1, 1, 1, 1, 1, 0.2, 1)
  2012. end
  2013. if raa % 21 == 0 then
  2014. if raa % 63 == 0 then
  2015. freeze = true
  2016. end
  2017. RecentEnemy.Value = nil
  2018. MagniDamage(sref, 20, 3, 4, 0, "Normal", sref, 0, 1, (math.random(1, 3)), nil, nil, true)
  2019. if RecentEnemy.Value ~= nil then
  2020. Frost = Frost + math.random(2, 4)
  2021. end
  2022. freeze = false
  2023. end
  2024. if raa % 60 == 0 and drakes > 0 then
  2025. thetarg = nil
  2026.  
  2027. if drakes > 0 and drakes < 2 then
  2028. if targetd1 ~= nil then
  2029. thetarg = targetd1.Position
  2030. drake = dprt1
  2031. end
  2032. elseif drakes > 1 and drakes < 3 then
  2033. xx = math.random(1,2)
  2034. if xx == 1 then
  2035. if targetd1 ~= nil then
  2036. thetarg = targetd1.Position
  2037. drake = dprt1
  2038. end
  2039. else
  2040. if targetd2 ~= nil then
  2041. thetarg = targetd2.Position
  2042. drake = d2prt1
  2043. end
  2044. end
  2045. elseif drakes > 2 then
  2046. xx = math.random(1,3)
  2047. if xx == 1 then
  2048. if targetd1 ~= nil then
  2049. thetarg = targetd1.Position
  2050. drake = dprt1
  2051. end
  2052. elseif xx == 2 then
  2053. if targetd2 ~= nil then
  2054. thetarg = targetd2.Position
  2055. drake = d2prt1
  2056. end
  2057. else
  2058. if targetd3 ~= nil then
  2059. thetarg = targetd3.Position
  2060. drake = d3prt1
  2061. end
  2062. end
  2063. end
  2064.  
  2065. if thetarg ~= nil then
  2066. local refd = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2067. refd.Anchored = true
  2068. refd.CFrame = drake.CFrame
  2069. game:GetService("Debris"):AddItem(refd, 1)
  2070. MagicBlock(BrickColor.new(NewCol3), cf(refd.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 7, 7, 7, 1, 1, 1, 0.08, 2)
  2071. end
  2072. end
  2073. sref.CFrame = cf(RootPart.Position)
  2074. dwld1.C0 = clerp(dwld1.C0, cf(0, -4, 5) * euler(0, 0, 0) * euler(0, mr(720) / 3, 0), 0.3)
  2075. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -4, 5) * euler(0, 0, 0) * euler(0, mr(720) / 3 * 2, 0), 0.3)
  2076. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4, 5) * euler(0, 0, 0) * euler(0, mr(720) / 3 * 3, 0), 0.3)
  2077. targetd1 = findNearestTorso(dprt1.Position, 60)
  2078. targetd2 = findNearestTorso(d2prt1.Position, 60)
  2079. targetd3 = findNearestTorso(d3prt1.Position, 60)
  2080.  
  2081. if targetd1 ~= nil then
  2082. local cff = CFrame.new(dprt1.CFrame.p, targetd1.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  2083. local x, y, z = dprt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2084. dwld2.C0 = clerp(dwld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  2085. end
  2086. if targetd2 ~= nil then
  2087. local cff = CFrame.new(d2prt1.CFrame.p, targetd2.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  2088. local x, y, z = d2prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2089. d2wld2.C0 = clerp(d2wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  2090. end
  2091. if targetd3 ~= nil then
  2092. local cff = CFrame.new(d3prt1.CFrame.p, targetd3.Position) * CFrame.Angles(math.pi / 2, 0, 0)
  2093. local x, y, z = d3prt1.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2094. d3wld2.C0 = clerp(d3wld2.C0, CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.4)
  2095. end
  2096.  
  2097. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.3, 0, 0), 0.3)
  2098. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  2099. RW.C0 = clerp(RW.C0, cf(1.2, 0.8, -0.3) * euler(2.8, 0, -0.6) * euler(0, 0, 0), 0.3)
  2100. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.3)
  2101. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.2) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.06, 0, 0.1), 0.3)
  2102. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.2) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.06, 0, -0.1), 0.3)
  2103.  
  2104.  
  2105. end
  2106. end
  2107. gsou:Stop()
  2108. sref.Size = vt(1, 1, 1)
  2109. dwld2.C0 = clerp(dwld2.C0, cf(0, 0, 0), 1)
  2110. d2wld2.C0 = clerp(d2wld2.C0, cf(0, 0, 0), 1)
  2111. d3wld2.C0 = clerp(d3wld2.C0, cf(0, 0, 0), 1)
  2112. coroutine.resume(coroutine.create(function()
  2113. swait(200)
  2114. sref.Parent = nil
  2115. end
  2116. ))
  2117. coroutine.resume(coroutine.create(function()
  2118. for i = 1, #Claw / 2 do
  2119. Claw[i].Transparency = 0
  2120. Claw[i + 10].Transparency = 0
  2121. swait()
  2122. end
  2123. end
  2124. ))
  2125. end
  2126. if Mode == "Monarch" then
  2127. for i = 0, 1, 0.1 do
  2128. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.2) * euler(0.8, 0, 0) * euler(0, 0, -0.6), 0.3)
  2129. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.8, 0, 1) * euler(0, -0.7, 0) * euler(0, 0, -0.5), 0.3)
  2130. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.1), 0.3)
  2131. RH.C0 = clerp(RH.C0, cf(0.95, -0.7, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  2132. LH.C0 = clerp(LH.C0, cf(-1.1, 0.4, -0.2) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.6), 0.3)
  2133. end
  2134. sref.Parent = effects
  2135. sref.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  2136. sref.CFrame = cf(sref.Position)
  2137. gsou:play()
  2138. so("338601305", sref, 1, 0.8)
  2139. sref.Size = vt(40, 20, 40)
  2140. local refaa = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2141. refaa.Anchored = true
  2142. refaa.CFrame = cf(sref.Position)
  2143. game:GetService("Debris"):AddItem(refaa, 1)
  2144. local ii = 0
  2145. while dryice do
  2146. ii = ii + 1
  2147. swait()
  2148. refaa.CFrame = sref.CFrame * cf(math.random(-4000, 4000) / 100, 10, math.random(-4000, 4000) / 100)
  2149.  
  2150. if ii % 6 ~= 0 or ii % 3 == 0 then
  2151. hitfloor = rayCast(refaa.Position, CFrame.new(refaa.Position, refaa.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  2152. MagicBlock(BrickColor.new(NewCol3), cf(posfloor), 1, 1, 1, 1, 1, 1, 0.2, 1)
  2153. end
  2154. if ii % 21 == 0 then
  2155. if ii % 42 == 0 then
  2156. freeze = true
  2157. end
  2158. MagniDamage(sref, 30, 3, 4, 0, "Normal", sref, 0, 1, (math.random(1, 3)), nil, nil, true)
  2159. freeze = false
  2160. end
  2161. end
  2162. sref.Size = vt(1, 1, 1)
  2163. gsou:Stop()
  2164. swait(100)
  2165. sref.Parent = nil
  2166. end
  2167. dryice = false
  2168. attack = false
  2169. dattack = false
  2170. end
  2171.  
  2172. do4 = function()
  2173. if attack == true then
  2174. return
  2175. end
  2176. if drakes > 0 then
  2177. if Mode == "Monarch" then
  2178. IcyMonarch()
  2179. end
  2180. attack = true
  2181. dattack = true
  2182. coroutine.resume(coroutine.create(function()
  2183. for i = #Claw / 2, 1, -1 do
  2184. swait()
  2185. Claw[i].Transparency = 1
  2186. Claw[i + 10].Transparency = 1
  2187. end
  2188. end
  2189. ))
  2190. local reft = part(3, effects, 0, 1, BrickColor.new("White"), "Reference", vt())
  2191. reft.CFrame = cf(Torso.Position)
  2192. reft.CanCollide = true
  2193. local rtwld = weld(reft, RootPart, reft, cf(0, 0, 0) * euler(0, 0, 0))
  2194. dwld1.Part1 = reft
  2195. d2wld1.Part1 = reft
  2196. d3wld1.Part1 = reft
  2197. sizeseq = ns({nsk(0, 0), nsk(0.025, 2), nsk(0.192, 4), nsk(1, 5)})
  2198. transseq = ns({nsk(0, 0.8), nsk(0.3, 1), nsk(1, 1)})
  2199. sizeseq = ns({nsk(0, 0), nsk(0.054, 0.3), nsk(0.451, 0.2), nsk(1, 0.12)})
  2200. transseq = ns({nsk(0, 1), nsk(0.03, 1), nsk(0.1, 0.137), nsk(0.232, 1), nsk(1, 1)})
  2201. local cff = CFrame.new(RootPart.CFrame.p, Mouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  2202. local x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2203. for i = 0, 1, 0.1 do
  2204. swait()
  2205. cff = CFrame.new(RootPart.CFrame.p, Mouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  2206. x = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2207. rtwld.C0 = clerp(rtwld.C0, cf(0, 10, 0) * CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.45)
  2208. if drakes > 2 then
  2209. dwld1.C0 = clerp(dwld1.C0, cf(0, -2, 0) * euler(1, 0, mr(720) / 3), 0.45)
  2210. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -2, 0) * euler(1, 0, mr(720) / 3 * 2), 0.45)
  2211. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -2, 0) * euler(1, 0, mr(720) / 3 * 3), 0.45)
  2212. else
  2213. if drakes > 1 then
  2214. dwld1.C0 = clerp(dwld1.C0, cf(0, -2, 0) * euler(1, 0, mr(720) / 2 * 0), 0.45)
  2215. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -2, 0) * euler(1, 0, mr(720) / 2 * 0.5), 0.45)
  2216. else
  2217. if drakes > 0 then
  2218. dwld1.C0 = clerp(dwld1.C0, cf(0, -2, 0) * euler(1, 0, 0), 0.45)
  2219. end
  2220. end
  2221. end
  2222. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.35)
  2223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.35)
  2224. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 0.2) * euler(0, 0, 0), 0.35)
  2225. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3, 0, -0.2), 0.35)
  2226. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.1), 0.35)
  2227. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.1), 0.35)
  2228. end
  2229. local deca = Instance.new("NumberValue", Stats)
  2230. deca.Name = "DecreaseMvmt"
  2231. deca.Value = 0.5
  2232. local tpos = Mouse.Hit.p
  2233. gaster(reft, .9)
  2234. --so("338594747", reft, 1, 0.6)
  2235. for i = 0, 1, 0.02 do
  2236. swait()
  2237. if i < 0.7 then
  2238. tpos = Mouse.Hit.p
  2239. end
  2240. sizeseq = ns({nsk(0, 0), nsk(0.025, 2 + 2 * i), nsk(0.192, 4 + 3 * i), nsk(1, 5 + 3 * i)})
  2241. cff = CFrame.new(RootPart.CFrame.p, tpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2242. x = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2243. rtwld.C0 = clerp(rtwld.C0, cf(0, 10, 0) * CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.45)
  2244. if drakes > 2 then
  2245. dwld1.C0 = clerp(dwld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, mr(720) / 3 + 6 * i), 0.45)
  2246. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, mr(720) / 3 * 2 + 6 * i), 0.45)
  2247. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, mr(720) / 3 * 3 + 6 * i), 0.45)
  2248. else
  2249. if drakes > 1 then
  2250. dwld1.C0 = clerp(dwld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, mr(720) / 2 * 0 + 6 * i), 0.45)
  2251. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, mr(720) / 2 * 0.5 + 6 * i), 0.45)
  2252. else
  2253. if drakes > 0 then
  2254. dwld1.C0 = clerp(dwld1.C0, cf(0, -2 - 3 * i, 0) * euler(1 - 0.5 * i, 0, 12 * i), 0.45)
  2255. end
  2256. end
  2257. end
  2258. if i < 0.7 then
  2259. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.35)
  2260. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.8, 0, 1) * euler(0, 0, 0), 0.2)
  2261. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -1), 0.2)
  2262. else
  2263. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.1, 0, 0), 0.35)
  2264. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 0) * euler(0, 0, 0), 0.35)
  2265. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.6), 0.35)
  2266. end
  2267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.35)
  2268. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.1), 0.35)
  2269. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.1), 0.35)
  2270. end
  2271. deca.Value = 10
  2272. sizeseq = ns({nsk(0, 0), nsk(0.025, 4), nsk(0.192, 7), nsk(1, 8)})
  2273. sizeseq = ns({nsk(0, 0), nsk(0.054, 1), nsk(0.451, 0.6), nsk(1, 0.1)})
  2274. local fref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2275. fref.Anchored = true
  2276. fref.CFrame = cf(RootPart.Position)
  2277. game:GetService("Debris"):AddItem(fref, 1)
  2278. --[[so("338594524", reft, 1, 0.4)
  2279. so("338594626", fref, 1, 0.8)
  2280. so("338594626", fref, 1, 1) ]]
  2281. local da = 0
  2282. for i = 0, 1, 0.01 do
  2283. swait()
  2284. da = da + 1
  2285. cff = CFrame.new(RootPart.CFrame.p, tpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2286. x = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2287. rtwld.C0 = clerp(rtwld.C0, cf(0, 10, 0) * CFrame.Angles(x, y, z) * euler(-1.57, 0, 0), 0.45)
  2288. if drakes > 2 then
  2289. dwld1.C0 = clerp(dwld1.C0, cf(0, -5, 0) * euler(0.5, 0, mr(720) / 3 + 6 + 15 * i) * cf(0, 0, -1), 0.45)
  2290. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -5, 0) * euler(0.5, 0, mr(720) / 3 * 2 + 6 + 15 * i) * cf(0, 0, -1), 0.45)
  2291. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -5, 0) * euler(0.5, 0, mr(720) / 3 * 3 + 6 + 15 * i) * cf(0, 0, -1), 0.45)
  2292. else
  2293. if drakes > 1 then
  2294. dwld1.C0 = clerp(dwld1.C0, cf(0, -5, 0) * euler(0.5, 0, mr(720) / 2 * 0 + 6 + 15 * i) * cf(0, 0, -1), 0.45)
  2295. d2wld1.C0 = clerp(d2wld1.C0, cf(0, -5, 0) * euler(0.5, 0, mr(720) / 2 * 0.5 + 6 + 15 * i) * cf(0, 0, -1), 0.45)
  2296. else
  2297. if drakes > 0 then
  2298. dwld1.C0 = clerp(dwld1.C0, cf(0, -5, 0) * euler(0.5, 0, 12 + 20 * i) * cf(0, 0, -1), 0.45)
  2299. end
  2300. end
  2301. end
  2302. local hit, pos = rayCast(reft.Position, cf(reft.Position, tpos).lookVector, 300, Character)
  2303. local mag = (reft.Position - pos).magnitude
  2304. MagicHead(BrickColor.new("White"), CFrame.new((reft.Position + pos) / 2, pos) * angles(1.57, 0, 0), 15, mag * 5, 15, 3, 1, 3, 0.1)
  2305. if (da) % 5 == 0 then
  2306. fref.CFrame = cf(pos) * cf(math.random(-1000, 1000) / 100, 5, math.random(-1000, 1000) / 100)
  2307. local hitfloor, posfloor = rayCast(fref.Position, CFrame.new(fref.Position, fref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  2308. fref.CFrame = cf(pos)
  2309. freeze = true
  2310. dam1 = drakes * 1
  2311. dam2 = drakes * 1.2
  2312. MagniDamage(fref, 10, 5 + dam2, 7 + dam2, 0, "Knockdown2", fref, 0.5, 1, (math.random(6, 8)), nil, nil, true)
  2313. freeze = false
  2314. end
  2315. do
  2316. if (da) % 7 == 0 then
  2317. fref.CFrame = cf(pos) * cf(math.random(-2000, 2000) / 100, 5, math.random(-2000, 2000) / 100)
  2318. local hitfloor, posfloor = rayCast(fref.Position, CFrame.new(fref.Position, fref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  2319. end
  2320. do
  2321. if (da) % 10 == 0 then
  2322. fref.CFrame = cf(pos)
  2323. MagniDamage(fref, 20, 3, 4, 0, "Normal", fref, 0.2, 1, (math.random(1, 3)), nil, nil, true, "Movement", 0.02, 200)
  2324. end
  2325. end
  2326. end
  2327. end
  2328. coroutine.resume(coroutine.create(function()
  2329. for i = 1, #Claw / 2 do
  2330. Claw[i].Transparency = 0
  2331. Claw[i + 10].Transparency = 0
  2332. swait()
  2333. end
  2334. end
  2335. ))
  2336. for i = 0, 1, 0.05 do
  2337. swait()
  2338. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.3)
  2339. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.2) * euler(0.8, 0, 0) * euler(0, 0, -0.6), 0.3)
  2340. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.8, 0, 1) * euler(0, -0.7, 0) * euler(0, 0, -0.5), 0.3)
  2341. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.1), 0.3)
  2342. RH.C0 = clerp(RH.C0, cf(0.95, -0.7, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.4), 0.3)
  2343. LH.C0 = clerp(LH.C0, cf(-1.1, 0.4, -0.2) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.6), 0.3)
  2344. end
  2345. if drakes > 0 then
  2346. for _,c in pairs(model2:children()) do
  2347. c.Transparency = 1
  2348. end
  2349. end
  2350. do
  2351. if drakes > 1 then
  2352. for _,c in pairs(model3:children()) do
  2353. c.Transparency = 1
  2354. end
  2355. end
  2356. do
  2357. if drakes > 2 then
  2358. for _,c in pairs(model4:children()) do
  2359. c.Transparency = 1
  2360. end
  2361. end
  2362. do
  2363. drakes = 0
  2364. deca.Parent = nil
  2365. dwld1.Part1 = RootPart
  2366. d2wld1.Part1 = RootPart
  2367. d3wld1.Part1 = RootPart
  2368. reft.Parent = nil
  2369. dattack = false
  2370. attack = false
  2371. swait(20)
  2372. if drakes < 1 then
  2373. model2.Parent = nil
  2374. end
  2375. if drakes < 2 then
  2376. model3.Parent = nil
  2377. end
  2378. if drakes < 3 then
  2379. model4.Parent = nil
  2380. end
  2381. end
  2382. end
  2383. end
  2384. end
  2385. end
  2386.  
  2387. findNearestTorso = function(pos, distance)
  2388. local list = (game.Workspace:children())
  2389. local torso = nil
  2390. local dist = distance
  2391. local temp, human, temp2 = nil, nil, nil
  2392. for x = 1, #list do
  2393. temp2 = list[x]
  2394. canfind = true
  2395. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  2396. canfind = false
  2397. end
  2398. canfind = true
  2399. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  2400. temp = temp2:findFirstChild("Torso")
  2401. human = temp2:findFirstChild("Humanoid")
  2402. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2403. torso = temp
  2404. dist = (temp.Position - pos).magnitude
  2405. end
  2406. end
  2407. end
  2408. return torso, dist
  2409. end
  2410.  
  2411. DecreaseStat = function(Model, Stat, Amount, Duration)
  2412. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2413. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2414. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2415. dur = Instance.new("NumberValue", d)
  2416. dur.Name = "Duration"
  2417. dur.Value = Duration
  2418. game:GetService("Debris"):AddItem(d, 20)
  2419. if Stat == "Damage" then
  2420. d.Name = "DecreaseAtk"
  2421. else
  2422. if Stat == "Defense" then
  2423. d.Name = "DecreaseDef"
  2424. else
  2425. if Stat == "Movement" then
  2426. d.Name = "DecreaseMvmt"
  2427. end
  2428. end
  2429. end
  2430. if Model:findFirstChild("Torso") ~= nil then
  2431. display = ""
  2432. if Stat == "Damage" then
  2433. if Amount > 0 then
  2434. display = "-Damage"
  2435. else
  2436. display = "+Damage"
  2437. end
  2438. else
  2439. if Stat == "Defense" then
  2440. if Amount > 0 then
  2441. display = "-Defense"
  2442. else
  2443. display = "+Defense"
  2444. end
  2445. else
  2446. if Stat == "Movement" then
  2447. if Amount > 0 then
  2448. display = "-Movement"
  2449. else
  2450. display = "+Movement"
  2451. end
  2452. end
  2453. end
  2454. end
  2455. Frost = math.floor(Frost + Amount * math.random(40, 60))
  2456. end
  2457. d.Value = Amount
  2458. end
  2459. end
  2460.  
  2461. GetDist = function(Part1, Part2, magni)
  2462. local targ = Part1.Position - Part2.Position
  2463. local mag = targ.magnitude
  2464. if mag <= magni then
  2465. return true
  2466. else
  2467. return false
  2468. end
  2469. end
  2470.  
  2471. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2472. for _,c in pairs(workspace:children()) do
  2473. local hum = c:findFirstChild("Humanoid")
  2474. if hum ~= nil then
  2475. local head = nil
  2476. for _,d in pairs(c:children()) do
  2477. if d.className == "Model" and ranged ~= true then
  2478. head = d:findFirstChild("Hitbox")
  2479. if d.Parent == Character then
  2480. break
  2481. end
  2482. if head ~= nil then
  2483. local targ = head.Position - Part.Position
  2484. local mag = targ.magnitude
  2485. if mag <= magni and c.Name ~= Player.Name then
  2486. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2487. ref.Anchored = true
  2488. ref.CFrame = cf(head.Position)
  2489. game:GetService("Debris"):AddItem(ref, 1)
  2490. hitnum = math.random(1, 5)
  2491. if hitnum == 1 then
  2492. so("199148971", ref, 1, 1)
  2493. else
  2494. if hitnum == 2 then
  2495. so("199149025", ref, 1, 1)
  2496. else
  2497. if hitnum == 3 then
  2498. so("199149072", ref, 1, 1)
  2499. else
  2500. if hitnum == 4 then
  2501. so("199149109", ref, 1, 1)
  2502. else
  2503. if hitnum == 5 then
  2504. so("199149119", ref, 1, 1)
  2505. end
  2506. end
  2507. end
  2508. end
  2509. end
  2510. end
  2511. end
  2512. end
  2513. do
  2514. if d.className == "Part" then
  2515. head = d
  2516. if head ~= nil then
  2517. local targ = head.Position - Part.Position
  2518. local mag = targ.magnitude
  2519. if mag <= magni and c.Name ~= Player.Name then
  2520. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2521. end
  2522. end
  2523. end
  2524. do
  2525. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2526.  
  2527. end
  2528. end
  2529. end
  2530. end
  2531. end
  2532. end
  2533.  
  2534. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2535. DecreaseStat(Character, Dec, DecAm, Dur)
  2536. for _,c in pairs(workspace:children()) do
  2537. local hum = c:findFirstChild("Humanoid")
  2538. if hum ~= nil then
  2539. local head = c:findFirstChild("Torso")
  2540. if head ~= nil then
  2541. local targ = head.Position - Part.Position
  2542. local mag = targ.magnitude
  2543. cando = true
  2544. if mag <= magni then
  2545. if Player.Neutral == false then
  2546. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2547. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2548. cando = true
  2549. else
  2550. cando = false
  2551. end
  2552. else
  2553. cando = false
  2554. end
  2555. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2556. cando = true
  2557. end
  2558. else
  2559. cando = false
  2560. end
  2561. if cando == true then
  2562. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2563. end
  2564. end
  2565. end
  2566. end
  2567. end
  2568. end
  2569.  
  2570. rayCast = function(Pos, Dir, Max, Ignore)
  2571. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2572. end
  2573.  
  2574. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2575. LastPoint = Point
  2576. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2577. if LP == nil or P1 == nil then
  2578. return
  2579. end
  2580. local effectsmsh = Instance.new("CylinderMesh")
  2581. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2582. effectsmsh.Name = "Mesh"
  2583. local effectsg = Instance.new("Part")
  2584. NoOutline(effectsg)
  2585. effectsg.formFactor = 3
  2586. effectsg.Material = Enum.Material.Neon
  2587. effectsg.CanCollide = false
  2588. effectsg.Name = "Eff"
  2589. effectsg.Locked = true
  2590. effectsg.Anchored = true
  2591. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2592. effectsg.Parent = workspace
  2593. effectsmsh.Parent = effectsg
  2594. effectsg.BrickColor = BrickColor.new(Color)
  2595. effectsg.Reflectance = Ref
  2596. local point1 = P1
  2597. local mg = (LP.p - point1.p).magnitude
  2598. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2599. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2600. effectsmsh.Scale = Vector3.new(size, 1, size)
  2601. game:GetService("Debris"):AddItem(effectsg, 2)
  2602. if returnn then
  2603. return effectsg
  2604. end
  2605. if not returnn then
  2606. if thing1 == 1 then
  2607. Cylinder(effectsg, 0.05, 0.2, 0, 0.2, effectsmsh)
  2608. else
  2609. if thing1 == 2 then
  2610. Cylinder(effectsg, 0.2, 0.01, 0, 0.01, effectsmsh)
  2611. else
  2612. if thing1 == 3 then
  2613. Cylinder(effectsg, 0, 0, 0, 0.1, effectsmsh)
  2614. end
  2615. end
  2616. end
  2617. end
  2618. end
  2619.  
  2620. effect2 = function(Color, Ref, LP, P1, returnn, size, raa)
  2621. if LP == nil or P1 == nil then
  2622. return
  2623. end
  2624. MshTypee = "CylinderMesh"
  2625. if raa == 2 then
  2626. MshTypee = "BlockMesh"
  2627. end
  2628. local effectsmsh = Instance.new(MshTypee)
  2629. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2630. effectsmsh.Name = "Mesh"
  2631. local effectsg = Instance.new("Part")
  2632. NoOutline(effectsg)
  2633. if raa == 2 then
  2634. effectsg.Material = "Neon"
  2635. end
  2636. effectsg.formFactor = 3
  2637. effectsg.Material = Enum.Material.Neon
  2638. effectsg.CanCollide = false
  2639. effectsg.Name = "Eff"
  2640. effectsg.Locked = true
  2641. effectsg.Anchored = true
  2642. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2643. effectsg.Parent = workspace
  2644. effectsmsh.Parent = effectsg
  2645. effectsg.BrickColor = BrickColor.new(Color)
  2646. effectsg.Reflectance = Ref
  2647. local point1 = P1
  2648. local mg = (LP.p - point1.p).magnitude
  2649. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2650. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2651. effectsmsh.Scale = Vector3.new(size, 1, size)
  2652. game:GetService("Debris"):AddItem(effectsg, 5)
  2653. if returnn then
  2654. return effectsg
  2655. end
  2656. if not returnn then
  2657. if raa == 2 then
  2658. Cylinder(effectsg, 0.05, -0.05, 0, -0.05, effectsmsh)
  2659. else
  2660. Cylinder(effectsg, 0.1, -0.2, 0, -0.2, effectsmsh)
  2661. end
  2662. end
  2663. end
  2664.  
  2665. local CFrameFromTopBack = function(at, top, back)
  2666. local right = top:Cross(back)
  2667. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2668. end
  2669.  
  2670. Triangle = function(a, b, c)
  2671. local edg1 = c - a:Dot(b - a.unit)
  2672. local edg2 = a - b:Dot(c - b.unit)
  2673. local edg3 = b - c:Dot(a - c.unit)
  2674. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  2675. a = a
  2676. else
  2677. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2678.  
  2679. if edg2 <= (c - b).magnitude and edg2 >= 0 then
  2680. a = b
  2681. else
  2682. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2683.  
  2684. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2685.  
  2686. if edg3 <= (a - c).magnitude and edg3 >= 0 then
  2687. a = c
  2688. else
  2689. assert(false, "unreachable")
  2690. end
  2691. end
  2692. end
  2693. local len1 = c - a:Dot(b - a.unit)
  2694. local len2 = (b - a).magnitude - len1
  2695. local width = (a + b - a.unit * len1 - c).magnitude
  2696. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2697. local list = {}
  2698. if len1 > 0.01 then
  2699. local w1 = Instance.new("WedgePart", m)
  2700. w1.Name = "Triangle"
  2701. game:GetService("Debris"):AddItem(w1, 5)
  2702. w1.Material = "Neon"
  2703. w1.FormFactor = "Custom"
  2704. w1.BrickColor = BrickColor.new("Medium blue")
  2705. w1.Transparency = 0
  2706. w1.Reflectance = 0
  2707. w1.Material = "Neon"
  2708. w1.CanCollide = false
  2709. NoOutline(w1)
  2710. local sz = Vector3.new(0.2, width, len1)
  2711. w1.Size = sz
  2712. local sp = Instance.new("SpecialMesh", w1)
  2713. sp.MeshType = "Wedge"
  2714. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2715. w1:BreakJoints()
  2716. w1.Anchored = true
  2717. w1.Parent = workspace
  2718. w1.Transparency = 0.7
  2719. table.insert(Effects, {w1, "Disappear", 0.05})
  2720. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2721. table.insert(list, w1)
  2722. end
  2723. do
  2724. if len2 > 0.01 then
  2725. local w2 = Instance.new("WedgePart", m)
  2726. w2.Name = "Triangle"
  2727. game:GetService("Debris"):AddItem(w2, 5)
  2728. w2.Material = "Neon"
  2729. w2.FormFactor = "Custom"
  2730. w2.BrickColor = BrickColor.new("Medium blue")
  2731. w2.Transparency = 0
  2732. w2.Reflectance = 0
  2733. w2.Material = "Neon"
  2734. w2.CanCollide = false
  2735. NoOutline(w2)
  2736. local sz = Vector3.new(0.2, width, len2)
  2737. w2.Size = sz
  2738. local sp = Instance.new("SpecialMesh", w2)
  2739. sp.MeshType = "Wedge"
  2740. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2741. w2:BreakJoints()
  2742. w2.Anchored = true
  2743. w2.Parent = workspace
  2744. w2.Transparency = 0.7
  2745. table.insert(Effects, {w2, "Disappear", 0.05})
  2746. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2747. table.insert(list, w2)
  2748. end
  2749. do
  2750. return unpack(list)
  2751. end
  2752. end
  2753. end
  2754.  
  2755. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2756. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2757. prt.Anchored = true
  2758. prt.CFrame = cframe
  2759. prt.Material = Enum.Material.Neon
  2760. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2761. game:GetService("Debris"):AddItem(prt, 10)
  2762. if Type == 1 or Type == nil then
  2763. Block1(prt, delay, x3, y3, z3, msh)
  2764. else
  2765. if Type == 2 then
  2766. Block2(prt, delay, x3, y3, z3, msh)
  2767. else
  2768. if Type == 3 then
  2769. Block3(prt, delay, x3, y3, z3, msh, prt.CFrame)
  2770. end
  2771. end
  2772. end
  2773. end
  2774.  
  2775. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2776. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2777. prt.Anchored = true
  2778. prt.CFrame = cframe
  2779. prt.Material = Enum.Material.Neon
  2780. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2781. game:GetService("Debris"):AddItem(prt, 10)
  2782. Cylinder(prt, delay, x3, y3, z3, msh)
  2783. end
  2784.  
  2785. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2786. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2787. prt.Anchored = true
  2788. prt.CFrame = cframe
  2789. prt.Material = Enum.Material.Neon
  2790. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2791. game:GetService("Debris"):AddItem(prt, 10)
  2792. Cylinder(prt, delay, x3, y3, z3, msh)
  2793. end
  2794.  
  2795. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  2796. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2797. prt.Anchored = true
  2798. prt.Material = Enum.Material.Neon
  2799. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2800. game:GetService("Debris"):AddItem(prt, 10)
  2801. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2802. local num = math.random(10, 50) / 1000
  2803. Shatter(prt, num, math.random() - math.random(), 0, math.random(50, 100) / 100)
  2804. end
  2805.  
  2806. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2807. local magz = (p0 - p1).magnitude
  2808. local curpos = p0
  2809. local trz = {-ofs, ofs}
  2810. for i = 1, tym do
  2811. local li = Instance.new("Part", workspace)
  2812. li.TopSurface = 0
  2813. li.BottomSurface = 0
  2814. li.Anchored = true
  2815. li.Transparency = tra or 0.4
  2816. li.BrickColor = BrickColor.new(col)
  2817. li.formFactor = "Custom"
  2818. li.CanCollide = false
  2819. li.Size = Vector3.new(th, th, magz / tym)
  2820. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2821. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2822. if tym == i then
  2823. local magz2 = (curpos - p1).magnitude
  2824. li.Size = Vector3.new(th, th, magz2)
  2825. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2826. else
  2827. do
  2828. do
  2829. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2830. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2831. game.Debris:AddItem(li, 10)
  2832. table.insert(Effects, {li, "Disappear", last})
  2833. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out DO_STMT
  2834.  
  2835. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2836.  
  2837. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_STMT
  2838.  
  2839. end
  2840. end
  2841. end
  2842. end
  2843. end
  2844.  
  2845. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2846. if hit.Parent == nil then
  2847. return
  2848. end
  2849. h = hit.Parent:FindFirstChild("Humanoid")
  2850. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2851. c = Instance.new("ObjectValue")
  2852. c.Name = "creator"
  2853. c.Value = game:service("Players").LocalPlayer
  2854. c.Parent = h
  2855. RecentEnemy.Value = hit.Parent
  2856. game:GetService("Debris"):AddItem(c, 0.5)
  2857. minim = minim
  2858. maxim = maxim
  2859. Damage = 0
  2860. if minim == maxim then
  2861. Damage = maxim
  2862. else
  2863. Damage = math.random(minim, maxim)
  2864. end
  2865. Damage = Damage/5
  2866. h:TakeDamage(Damage)
  2867. if hit.Parent:FindFirstChild("Head") ~= nil then
  2868. ShowDamage(hit.Parent:FindFirstChild("Head").Position+vt(0,2,0), Damage)
  2869. end
  2870. if breakfreeze == true then
  2871. for i = 1, #FStacks do
  2872. if tors == FStacks[i][1] and FStacks[i][3] == true then
  2873. so("338594737", hit, 1, 1)
  2874. Damage = Damage + math.random(FStacks[i][4].Value * 1.1, FStacks[i][4].Value * 1.3)
  2875. incstun = incstun + math.random(FStacks[i][4].Value * 1.8, FStacks[i][4].Value * 2)
  2876. end
  2877. end
  2878. end
  2879. do
  2880. blocked = false
  2881. enblock = nil
  2882.  
  2883. end
  2884. end
  2885. end
  2886.  
  2887. function ShowDamage(Pos, Text)
  2888. local Rate = (1 / 30)
  2889. local Pos = (Pos or Vector3.new(0, 0, 0))
  2890. local Text = (Text or "")
  2891. local Color = BrickColor.new("Medium blue")
  2892. local EffectPart = part("Custom",modelzorz,0,1,Color,"Effect",Vector3.new(0,0,0))
  2893. EffectPart.Anchored = true
  2894. local BillboardGui = Instance.new("BillboardGui")
  2895. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  2896. BillboardGui.Adornee = EffectPart
  2897. local TextLabel = Instance.new("TextLabel")
  2898. TextLabel.BackgroundTransparency = 1
  2899. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  2900. TextLabel.Text = Text
  2901. TextLabel.TextColor3 = Color.Color
  2902. TextLabel.TextScaled = true
  2903. TextLabel.Font = Enum.Font.ArialBold
  2904. TextLabel.Parent = BillboardGui
  2905. BillboardGui.Parent = EffectPart
  2906. game.Debris:AddItem(EffectPart, (1.5 + 0.1))
  2907. EffectPart.Parent = modelzorz
  2908. delay(0, function()
  2909. local Frames = (1.5 / Rate)
  2910. for Frame = 1, Frames do
  2911. wait(Rate)
  2912. local Percent = (Frame / Frames)
  2913. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2914. TextLabel.TextTransparency = Percent
  2915. end
  2916. if EffectPart and EffectPart.Parent then
  2917. EffectPart:remove()
  2918. end
  2919. end)
  2920. end
  2921.  
  2922. combo = 0
  2923. ob1d = function()
  2924. if attack == true or equipped == false then
  2925. return
  2926. end
  2927. hold = true
  2928. if combo == 0 then
  2929. combo = 1
  2930. attackone()
  2931. else
  2932. if combo == 1 then
  2933. combo = 2
  2934. attacktwo()
  2935. else
  2936. if combo == 2 then
  2937. combo = 3
  2938. attackthree()
  2939. else
  2940. if combo == 3 then
  2941. combo = 0
  2942. attackfour()
  2943. end
  2944. end
  2945. end
  2946. end
  2947. coroutine.resume(coroutine.create(function()
  2948. for i = 1, 50 do
  2949. if attack == false then
  2950. swait()
  2951. end
  2952. end
  2953. if attack == false then
  2954. combo = 0
  2955. end
  2956. end
  2957. ))
  2958. end
  2959.  
  2960. ob1u = function()
  2961. hold = false
  2962. end
  2963.  
  2964. buttonhold = false
  2965. eul = 0
  2966. equipped = false
  2967. key = function(key)
  2968. if key == "c" and dryice == true then
  2969. do3()
  2970. return
  2971. end
  2972. if attack == true then
  2973. return
  2974. end
  2975. if key == "f" and Mode == "Drakes" then
  2976. attack = true
  2977. if equipped == false then
  2978.  
  2979. coroutine.resume(coroutine.create(function()
  2980. local Old_W = Humanoid.WalkSpeed
  2981. local Old_J = Humanoid.JumpPower
  2982. Humanoid.WalkSpeed = 0
  2983. Humanoid.JumpPower = 0
  2984. repeat swait() until hitfloor ~= nil
  2985. swait(20)
  2986. Character.Animate.Disabled = true
  2987. Humanoid.WalkSpeed = Old_W
  2988. Humanoid.JumpPower = Old_J
  2989. end))
  2990.  
  2991. equipped = true
  2992. RSH = ch.Torso["Right Shoulder"]
  2993. LSH = ch.Torso["Left Shoulder"]
  2994. RSH.Parent = nil
  2995. LSH.Parent = nil
  2996. RW.Name = "Right Shoulder"
  2997. RW.Part0 = ch.Torso
  2998. RW.C0 = cf(1.5, 0.5, 0)
  2999. RW.C1 = cf(0, 0.5, 0)
  3000. RW.Part1 = ch["Right Arm"]
  3001. RW.Parent = ch.Torso
  3002. LW.Name = "Left Shoulder"
  3003. LW.Part0 = ch.Torso
  3004. LW.C0 = cf(-1.5, 0.5, 0)
  3005. LW.C1 = cf(0, 0.5, 0)
  3006. LW.Part1 = ch["Left Arm"]
  3007. LW.Parent = ch.Torso
  3008. equipanim()
  3009. else
  3010.  
  3011. coroutine.resume(coroutine.create(function()
  3012. local Old_W = Humanoid.WalkSpeed
  3013. local Old_J = Humanoid.JumpPower
  3014. Humanoid.WalkSpeed = 0
  3015. Humanoid.JumpPower = 0
  3016. repeat swait() until hitfloor ~= nil
  3017. swait(20)
  3018. Character.Animate.Disabled = false
  3019. Humanoid.WalkSpeed = Old_W
  3020. Humanoid.JumpPower = Old_J
  3021. end))
  3022.  
  3023. equipped = false
  3024. hideanim()
  3025. LH.C1 = LHC1
  3026. RH.C1 = RHC1
  3027. swait(0)
  3028. RW.Parent = nil
  3029. LW.Parent = nil
  3030. RSH.Parent = player.Character.Torso
  3031. LSH.Parent = player.Character.Torso
  3032. swait(20)
  3033. model2.Parent = nil
  3034. model3.Parent = nil
  3035. model4.Parent = nil
  3036. end
  3037. attack = false
  3038. end
  3039. if equipped == false then
  3040. return
  3041. end
  3042. if key == "e" and drakes > 0 then
  3043. IcyMonarch()
  3044. end
  3045. if key == "z" then
  3046. do1()
  3047. end
  3048. if key == "x" then
  3049. do2()
  3050. end
  3051. if key == "c" then
  3052. do3()
  3053. end
  3054. if key == "v" then
  3055. do4()
  3056. end
  3057. if key == "q" and drakes < 3 and Mode ~= "Monarch" then
  3058. IceDrake()
  3059. end
  3060. end
  3061.  
  3062. key2 = function(key)
  3063. end
  3064.  
  3065. s = function()
  3066. Mouse.Button1Down:connect(function()
  3067. ob1d()
  3068. end
  3069. )
  3070. Mouse.Button1Up:connect(function()
  3071. ob1u()
  3072. end
  3073. )
  3074. Mouse.KeyDown:connect(key)
  3075. Mouse.KeyUp:connect(key2)
  3076. player = Player
  3077. ch = Character
  3078. end
  3079.  
  3080. s()
  3081.  
  3082. local donum = 0
  3083. local walk = 0
  3084. local walkforw = true
  3085. while true do
  3086. swait()
  3087. if 0.5 <= donum then
  3088. handidle = true
  3089. else
  3090. if donum <= 0 then
  3091. handidle = false
  3092. end
  3093. end
  3094. if handidle == false then
  3095. donum = donum + 0.003
  3096. else
  3097. donum = donum - 0.003
  3098. end
  3099. torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3100. velderp=RootPart.Velocity.y
  3101. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3102. if equipped == true then
  3103. if Anim == "Walk" then
  3104. if walkforw == true then
  3105. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3106. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3107. if attack == false then
  3108. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0.5, 0, 0), Mvmt.Value * 10 / 50)
  3109. else
  3110. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3111. end
  3112. else
  3113. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3114. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3115. if attack == false then
  3116. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(-1, 0, 0), Mvmt.Value * 10 / 50)
  3117. else
  3118. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3119. end
  3120. end
  3121. else
  3122. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3123. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3124. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3125. end
  3126. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3127. Anim = "Jump"
  3128. if dattack == false then
  3129. dwld1.C0 = clerp(dwld1.C0, cf(3.5, -1.8, -1.5) * euler(0.1, 0.5, 0) * euler(0.5, 0, 0), 0.3)
  3130. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.5, -1.8, -1.5) * euler(0.1, -0.5, 0) * euler(0.5, 0, 0), 0.3)
  3131. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4.5, -1.5) * euler(0.8, 0, 0) * euler(0, 0, 0), 0.3)
  3132. end
  3133. if attack == false then
  3134. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3135. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3136. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3137. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.2) * euler(0, -1.5, 0), 0.2)
  3138. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3139. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  3140. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3141. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3142. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3143. end
  3144. else
  3145. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3146. Anim = "Fall"
  3147. if dattack == false then
  3148. dwld1.C0 = clerp(dwld1.C0, cf(3.5, -1.8, -1.5) * euler(0.1, 0.5, 0) * euler(0.5, 0, 0), 0.3)
  3149. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.5, -1.8, -1.5) * euler(0.1, -0.5, 0) * euler(0.5, 0, 0), 0.3)
  3150. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4.5, -1.5) * euler(0.8, 0, 0) * euler(0, 0, 0), 0.3)
  3151. end
  3152. if attack == false then
  3153. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3154. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3155. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3156. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
  3157. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3158. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  3159. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3160. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3161. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3162. end
  3163. else
  3164. if torvel < 1 and hitfloor ~= nil then
  3165. Anim = "Idle"
  3166. if Mode == "Drakes" then
  3167. if dattack == false then
  3168. dwld1.C0 = clerp(dwld1.C0, cf(3.8, -2.2 + (donum) / 3, 0.5) * euler(0.2 + (donum) / 4, 0, -0.4 + (donum) / 4) * euler(0, 0.3, 0), 0.3)
  3169. d2wld1.C0 = clerp(d2wld1.C0, cf(-3.8, -2.2 + (donum) / 3, 0.5) * euler(0.2 + (donum) / 4, 0, 0.4 - (donum) / 4) * euler(0, -0.3, 0), 0.3)
  3170. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4 + (donum) / 3, 0.5) * euler(0.4 + (donum) / 4, 0, 0) * euler(0, 0, 0), 0.3)
  3171. end
  3172. if attack == false then
  3173. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.2)
  3174. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2 + (donum) / 4, 0, 0), 0.2)
  3175. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.6, 0, 0.7 - (donum) / 3) * euler(0, -1, 0), 0.2)
  3176. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4 + (donum) / 3), 0.2)
  3177. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1 + (donum) / 4), 0.2)
  3178. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15 - (donum) / 4), 0.2)
  3179. end
  3180. else
  3181. if Mode == "Monarch" and attack == false then
  3182. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.1 + (donum) / 2, 0, 0), 0.2)
  3183. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.4 + (donum) / 4, 0, 0) * euler(0, 0, -0.4), 0.2)
  3184. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.8, 0, 1 - (donum) / 3) * euler(0, -0.7, 0) * euler(0, 0, -0.5), 0.2)
  3185. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4 + (donum) / 3), 0.2)
  3186. RH.C0 = clerp(RH.C0, cf(0.95, -0.7, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1 + (donum) / 4), 0.2)
  3187. LH.C0 = clerp(LH.C0, cf(-1.1, -0.4, -0.5) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.4 - (donum) / 4), 0.2)
  3188. end
  3189. end
  3190. else
  3191. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3192. Anim = "Walk"
  3193. walk = walk + 1
  3194. if 15 - 5 * Mvmt.Value <= walk then
  3195. walk = 0
  3196. if walkforw == true then
  3197. walkforw = false
  3198. else
  3199. if walkforw == false then
  3200. walkforw = true
  3201. end
  3202. end
  3203. end
  3204. if Mode == "Drakes" then
  3205. Character.Humanoid.WalkSpeed="16"
  3206. if dattack == false then
  3207. dwld1.C0 = clerp(dwld1.C0, cf(4.5, -2 + (donum) / 3, 1.5) * euler(0.2 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3208. d2wld1.C0 = clerp(d2wld1.C0, cf(-4.5, -2 + (donum) / 3, 1.5) * euler(0.2 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3209. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4 + (donum) / 3, 1.5) * euler(0.4 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3210. end
  3211. if attack == false then
  3212. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3214. RW.C0 = clerp(RW.C0, cf(1.2, 0.4, 0.3) * euler(0.4, 0, 1) * euler(0, -1, 0), 0.25)
  3215. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.25)
  3216. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
  3217. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
  3218. end
  3219. else
  3220. if Mode == "Monarch" and attack == false then
  3221. Character.Humanoid.WalkSpeed="29"
  3222. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0.4, 0, 0) * euler(0, 0, 0), 0.25)
  3224. RW.C0 = clerp(RW.C0, cf(1.3, 0.4, 0.1) * euler(0.8, 0, 1) * euler(0, -0.7, 0) * euler(0, 0, -0.5), 0.25)
  3225. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4), 0.25)
  3226. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.2), 0.25)
  3227. LH.C0 = clerp(LH.C0, cf(-1, -0.4, -0.5) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, -0.4), 0.25)
  3228. end
  3229. end
  3230. else
  3231. if 30 <= torvel and hitfloor ~= nil then
  3232. Anim = "Run"
  3233. if dattack == false then
  3234. dwld1.C0 = clerp(dwld1.C0, cf(4.5, -2 + (donum) / 3, 1.5) * euler(0.2 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3235. d2wld1.C0 = clerp(d2wld1.C0, cf(-4.5, -2 + (donum) / 3, 1.5) * euler(0.2 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3236. d3wld1.C0 = clerp(d3wld1.C0, cf(0, -4 + (donum) / 3, 1.5) * euler(0.4 + (donum) / 3, 0, 0) * euler(0, 0, 0), 0.15)
  3237. end
  3238. if attack == false then
  3239. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.9) * euler(-0.2, 0, 0), 0.4)
  3240. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0) * euler(0, 0, 0.8), 0.4)
  3241. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.2) * euler(0.5, 0, 1.2) * euler(0, 0.8, 0) * euler(0.5, 0, 0), 0.4)
  3242. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.8), 0.4)
  3243. RH.C0 = clerp(RH.C0, cf(1, 0.4, -0.4) * euler(0, 1.57, 0) * euler(0, -0.8, 0) * euler(-0.1, 0, 0.1), 0.4)
  3244. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, -0.4, 0) * euler(-0.2, 0, 0.15), 0.4)
  3245. end
  3246. end
  3247. end
  3248. end
  3249. end
  3250. end
  3251. end
  3252. if 0 < #Effects then
  3253. for e = 1, #Effects do
  3254. if Effects[e] ~= nil then
  3255. local Thing = Effects[e]
  3256. if Thing ~= nil then
  3257. local Part = Thing[1]
  3258. local Mode = Thing[2]
  3259. local Delay = Thing[3]
  3260. local IncX = Thing[4]
  3261. local IncY = Thing[5]
  3262. local IncZ = Thing[6]
  3263. if Thing[2] == "ShootIce" then
  3264. local Look = Thing[1]
  3265. local hit, pos = rayCast(Thing[4], Look.lookVector, Thing[9], Character)
  3266. local mag = (Thing[4] - pos).magnitude
  3267. Thing[8].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(-1.57, 0, 0)
  3268. Thing[4] = Thing[4] + Look.lookVector * Thing[9]
  3269. Thing[3] = Thing[3] - 1
  3270. if hit ~= nil or Thing[3] <= 0 then
  3271. Thing[3] = 0
  3272. ref = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3273. ref.Anchored = true
  3274. ref.CFrame = cf(pos)
  3275. game:GetService("Debris"):AddItem(ref, 1)
  3276. ref2 = part(3, effects, 0, 1, BrickColor.new("Really red"), "Reference", vt(5, 5, 5))
  3277. ref2.Anchored = true
  3278. ref2.CFrame = cf(pos)
  3279. game:GetService("Debris"):AddItem(ref2, 5)
  3280. size = 3
  3281. if Thing[10] == 2 then
  3282. freeze = true
  3283. size = 4
  3284. so("338594574", ref, 1, 1)
  3285. else
  3286. so("338594556", ref, 1, 1)
  3287. end
  3288. MagicCircle(BrickColor.new(NewCol3), cf(ref.Position), 20, 20, 20, 5, 5, 5, 0.1)
  3289. MagniDamage(ref, size, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(2, 3)), nil, nil, true)
  3290. freeze = false
  3291. for i = 1, 8 do
  3292. BreakEffect(BrickColor.new(NewCol3), ref.CFrame * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100), math.random(20, 50) / 100, math.random(1, 5), math.random(20, 50) / 100)
  3293. end
  3294. if Thing[10] == 2 then
  3295. for i = 1, 5 do
  3296. MagicBlock(BrickColor.new(NewCol3), cf(ref.Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 5, 0, 0, 0, 0.05, 3)
  3297. end
  3298. end
  3299. end
  3300. if Thing[3] <= 0 then
  3301. Thing[8].Transparency = 1
  3302. if Thing[10] == 2 then
  3303. Thing[11].Enabled = false
  3304. Thing[12].Enabled = false
  3305. end
  3306. game:GetService("Debris"):AddItem(Thing[8], 5)
  3307. table.remove(Effects, e)
  3308. end
  3309. else
  3310. Part.Parent = nil
  3311. table.remove(Effects, e)
  3312. end
  3313. end
  3314. end
  3315. end
  3316. end
  3317. end
Add Comment
Please, Sign In to add comment