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