Advertisement
Toey8415

test

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