SHOW:
|
|
- or go back to the newest paste.
1 | -- Synapse Decompiler | |
2 | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ | |
3 | ||
4 | wait(0.2) | |
5 | Player = game:GetService("Players").LocalPlayer | |
6 | PlayerGui = Player.PlayerGui | |
7 | Cam = workspace.CurrentCamera | |
8 | Backpack = Player.Backpack | |
9 | Character = Player.Character | |
10 | Humanoid = Character.Humanoid | |
11 | Mouse = Player:GetMouse() | |
12 | RootPart = Character.HumanoidRootPart | |
13 | Torso = Character.Torso | |
14 | Head = Character.Head | |
15 | RightArm = Character["Right Arm"] | |
16 | LeftArm = Character["Left Arm"] | |
17 | RightLeg = Character["Right Leg"] | |
18 | LeftLeg = Character["Left Leg"] | |
19 | RootJoint = RootPart.RootJoint | |
20 | Neck = Torso.Neck | |
21 | RightShoulder = Torso["Right Shoulder"] | |
22 | LeftShoulder = Torso["Left Shoulder"] | |
23 | RightHip = Torso["Right Hip"] | |
24 | LeftHip = Torso["Left Hip"] | |
25 | local sick = Instance.new("Sound", Torso) | |
26 | - | sick.SoundId = "rbxassetid://1471371342" |
26 | + | sick.SoundId = "rbxassetid://142306659" |
27 | sick.Looped = true | |
28 | sick.Pitch = 1 | |
29 | - | sick.Volume = 1 |
29 | + | sick.Volume = 3 |
30 | - | sick:Play() |
30 | + | |
31 | CF = CFrame.new | |
32 | VT = Vector3.new | |
33 | RAD = math.rad | |
34 | C3 = Color3.new | |
35 | UD2 = UDim2.new | |
36 | BRICKC = BrickColor.new | |
37 | ANGLES = CFrame.Angles | |
38 | EULER = CFrame.fromEulerAnglesXYZ | |
39 | COS = math.cos | |
40 | ACOS = math.acos | |
41 | SIN = math.sin | |
42 | ASIN = math.asin | |
43 | ABS = math.abs | |
44 | MRANDOM = math.random | |
45 | FLOOR = math.floor | |
46 | Animation_Speed = 3 | |
47 | Frame_Speed = 0.016666666666666666 | |
48 | local Speed = 16 | |
49 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
50 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
51 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
52 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
53 | local DAMAGEMULTIPLIER = 1 | |
54 | local ANIM = "Idle" | |
55 | local ATTACK = false | |
56 | local EQUIPPED = false | |
57 | local HOLD = false | |
58 | local COMBO = 1 | |
59 | local Rooted = false | |
60 | local SINE = 0 | |
61 | local KEYHOLD = false | |
62 | local CHANGE = 2 / Animation_Speed | |
63 | local WALKINGANIM = false | |
64 | local VALUE1 = false | |
65 | local VALUE2 = false | |
66 | local ROBLOXIDLEANIMATION = IT("Animation") | |
67 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
68 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
69 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
70 | WEAPONGUI.Name = "Weapon GUI" | |
71 | local Weapon = IT("Model") | |
72 | Weapon.Name = "Adds" | |
73 | local Effects = IT("Folder", Weapon) | |
74 | Effects.Name = "Effects" | |
75 | local ANIMATOR = Humanoid.Animator | |
76 | local ANIMATE = Character.Animate | |
77 | local UNANCHOR = true | |
78 | local RWINGS = {} | |
79 | - | local EYE1, EYE2 |
79 | + | local LWINGS = {} |
80 | - | local TAIL = {} |
80 | + | local EYE, PUPIL |
81 | local BLINKLOOP = 0 | |
82 | local FINISHEDINTRO = false | |
83 | local INTROING = false | |
84 | local INSTANT = false | |
85 | local EYES = {} | |
86 | ArtificialHB = Instance.new("BindableEvent", script) | |
87 | ArtificialHB.Name = "ArtificialHB" | |
88 | script:WaitForChild("ArtificialHB") | |
89 | frame = Frame_Speed | |
90 | tf = 0 | |
91 | allowframeloss = false | |
92 | tossremainder = false | |
93 | lastframe = tick() | |
94 | script.ArtificialHB:Fire() | |
95 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
96 | tf = tf + s | |
97 | if tf >= frame then | |
98 | if allowframeloss then | |
99 | script.ArtificialHB:Fire() | |
100 | lastframe = tick() | |
101 | else | |
102 | for i = 1, math.floor(tf / frame) do | |
103 | script.ArtificialHB:Fire() | |
104 | end | |
105 | lastframe = tick() | |
106 | end | |
107 | if tossremainder then | |
108 | tf = 0 | |
109 | else | |
110 | tf = tf - frame * math.floor(tf / frame) | |
111 | end | |
112 | end | |
113 | end) | |
114 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
115 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
116 | end | |
117 | function PositiveAngle(NUMBER) | |
118 | if NUMBER >= 0 then | |
119 | NUMBER = 0 | |
120 | end | |
121 | return NUMBER | |
122 | end | |
123 | function NegativeAngle(NUMBER) | |
124 | if NUMBER <= 0 then | |
125 | NUMBER = 0 | |
126 | end | |
127 | return NUMBER | |
128 | end | |
129 | function Swait(NUMBER) | |
130 | if NUMBER == 0 or NUMBER == nil then | |
131 | ArtificialHB.Event:wait() | |
132 | else | |
133 | for i = 1, NUMBER do | |
134 | ArtificialHB.Event:wait() | |
135 | end | |
136 | end | |
137 | end | |
138 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
139 | local NEWMESH = IT(MESH) | |
140 | if MESH == "SpecialMesh" then | |
141 | NEWMESH.MeshType = MESHTYPE | |
142 | if MESHID ~= "nil" and MESHID ~= "" then | |
143 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
144 | end | |
145 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
146 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
147 | end | |
148 | end | |
149 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
150 | NEWMESH.Scale = SCALE | |
151 | NEWMESH.Parent = PARENT | |
152 | return NEWMESH | |
153 | end | |
154 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
155 | local NEWPART = IT("Part") | |
156 | NEWPART.formFactor = FORMFACTOR | |
157 | NEWPART.Reflectance = REFLECTANCE | |
158 | NEWPART.Transparency = TRANSPARENCY | |
159 | NEWPART.CanCollide = false | |
160 | NEWPART.Locked = true | |
161 | NEWPART.Anchored = true | |
162 | if ANCHOR == false then | |
163 | NEWPART.Anchored = false | |
164 | end | |
165 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
166 | NEWPART.Name = NAME | |
167 | NEWPART.Size = SIZE | |
168 | NEWPART.Position = Torso.Position | |
169 | NEWPART.Material = MATERIAL | |
170 | NEWPART:BreakJoints() | |
171 | NEWPART.Parent = PARENT | |
172 | return NEWPART | |
173 | end | |
174 | local weldBetween = function(a, b) | |
175 | local weldd = Instance.new("ManualWeld") | |
176 | weldd.Part0 = a | |
177 | weldd.Part1 = b | |
178 | weldd.C0 = CFrame.new() | |
179 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
180 | weldd.Parent = a | |
181 | return weldd | |
182 | end | |
183 | function QuaternionFromCFrame(cf) | |
184 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
185 | local trace = m00 + m11 + m22 | |
186 | if trace > 0 then | |
187 | local s = math.sqrt(1 + trace) | |
188 | local recip = 0.5 / s | |
189 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
190 | else | |
191 | local i = 0 | |
192 | if m00 < m11 then | |
193 | i = 1 | |
194 | end | |
195 | if m22 > (i == 0 and m00 or m11) then | |
196 | i = 2 | |
197 | end | |
198 | if i == 0 then | |
199 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
200 | local recip = 0.5 / s | |
201 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
202 | elseif i == 1 then | |
203 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
204 | local recip = 0.5 / s | |
205 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
206 | elseif i == 2 then | |
207 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
208 | local recip = 0.5 / s | |
209 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
210 | end | |
211 | end | |
212 | end | |
213 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
214 | local xs, ys, zs = x + x, y + y, z + z | |
215 | local wx, wy, wz = w * xs, w * ys, w * zs | |
216 | local xx = x * xs | |
217 | local xy = x * ys | |
218 | local xz = x * zs | |
219 | local yy = y * ys | |
220 | local yz = y * zs | |
221 | local zz = z * zs | |
222 | 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)) | |
223 | end | |
224 | function QuaternionSlerp(a, b, t) | |
225 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
226 | local startInterp, finishInterp | |
227 | if cosTheta >= 1.0E-4 then | |
228 | if 1 - cosTheta > 1.0E-4 then | |
229 | local theta = ACOS(cosTheta) | |
230 | local invSinTheta = 1 / SIN(theta) | |
231 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
232 | finishInterp = SIN(t * theta) * invSinTheta | |
233 | else | |
234 | startInterp = 1 - t | |
235 | finishInterp = t | |
236 | end | |
237 | elseif 1 + cosTheta > 1.0E-4 then | |
238 | local theta = ACOS(-cosTheta) | |
239 | local invSinTheta = 1 / SIN(theta) | |
240 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
241 | finishInterp = SIN(t * theta) * invSinTheta | |
242 | else | |
243 | startInterp = t - 1 | |
244 | finishInterp = t | |
245 | end | |
246 | 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 | |
247 | end | |
248 | function Clerp(a, b, t) | |
249 | local qa = { | |
250 | QuaternionFromCFrame(a) | |
251 | } | |
252 | local qb = { | |
253 | QuaternionFromCFrame(b) | |
254 | } | |
255 | local ax, ay, az = a.x, a.y, a.z | |
256 | local bx, by, bz = b.x, b.y, b.z | |
257 | local _t = 1 - t | |
258 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
259 | end | |
260 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
261 | local frame = IT("Frame") | |
262 | frame.BackgroundTransparency = TRANSPARENCY | |
263 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
264 | frame.Position = POSITION | |
265 | frame.Size = SIZE | |
266 | frame.BackgroundColor3 = COLOR | |
267 | frame.BorderColor3 = BORDERCOLOR | |
268 | frame.Name = NAME | |
269 | frame.Parent = PARENT | |
270 | return frame | |
271 | end | |
272 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
273 | local label = IT("TextLabel") | |
274 | label.BackgroundTransparency = 1 | |
275 | label.Size = UD2(1, 0, 1, 0) | |
276 | label.Position = UD2(0, 0, 0, 0) | |
277 | label.TextColor3 = TEXTCOLOR | |
278 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
279 | label.TextTransparency = TRANSPARENCY | |
280 | label.FontSize = TEXTFONTSIZE | |
281 | label.Font = TEXTFONT | |
282 | label.BorderSizePixel = BORDERSIZEPIXEL | |
283 | label.TextScaled = false | |
284 | label.Text = TEXT | |
285 | label.Name = NAME | |
286 | label.Parent = PARENT | |
287 | return label | |
288 | end | |
289 | function NoOutlines(PART) | |
290 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
291 | end | |
292 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
293 | local NEWWELD = IT(TYPE) | |
294 | NEWWELD.Part0 = PART0 | |
295 | NEWWELD.Part1 = PART1 | |
296 | NEWWELD.C0 = C0 | |
297 | NEWWELD.C1 = C1 | |
298 | NEWWELD.Parent = PARENT | |
299 | return NEWWELD | |
300 | end | |
301 | local S = IT("Sound") | |
302 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
303 | local NEWSOUND | |
304 | coroutine.resume(coroutine.create(function() | |
305 | NEWSOUND = S:Clone() | |
306 | NEWSOUND.Parent = PARENT | |
307 | NEWSOUND.Volume = VOLUME | |
308 | NEWSOUND.Pitch = PITCH | |
309 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
310 | NEWSOUND:play() | |
311 | if DOESLOOP == true then | |
312 | NEWSOUND.Looped = true | |
313 | else | |
314 | repeat | |
315 | Swait() | |
316 | until NEWSOUND.Playing == false | |
317 | NEWSOUND:remove() | |
318 | end | |
319 | end)) | |
320 | return NEWSOUND | |
321 | end | |
322 | function CFrameFromTopBack(at, top, back) | |
323 | local right = top:Cross(back) | |
324 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
325 | end | |
326 | function WACKYEFFECT(Table) | |
327 | local TYPE = Table.EffectType or "Sphere" | |
328 | local SIZE = Table.Size or VT(1, 1, 1) | |
329 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
330 | local TRANSPARENCY = Table.Transparency or 0 | |
331 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
332 | local CFRAME = Table.CFrame or Torso.CFrame | |
333 | local MOVEDIRECTION = Table.MoveToPos or nil | |
334 | local ROTATION1 = Table.RotationX or 0 | |
335 | local ROTATION2 = Table.RotationY or 0 | |
336 | local ROTATION3 = Table.RotationZ or 0 | |
337 | local MATERIAL = Table.Material or "Neon" | |
338 | local COLOR = Table.Color or C3(1, 1, 1) | |
339 | local TIME = Table.Time or 45 | |
340 | local SOUNDID = Table.SoundID or nil | |
341 | local SOUNDPITCH = Table.SoundPitch or nil | |
342 | local SOUNDVOLUME = Table.SoundVolume or nil | |
343 | coroutine.resume(coroutine.create(function() | |
344 | local PLAYSSOUND = false | |
345 | local SOUND | |
346 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
347 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
348 | PLAYSSOUND = true | |
349 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
350 | end | |
351 | EFFECT.Color = COLOR | |
352 | local MSH | |
353 | if TYPE == "Sphere" then | |
354 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
355 | elseif TYPE == "Block" then | |
356 | MSH = IT("BlockMesh", EFFECT) | |
357 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
358 | elseif TYPE == "Wave" then | |
359 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
360 | elseif TYPE == "Ring" then | |
361 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
362 | elseif TYPE == "Slash" then | |
363 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
364 | elseif TYPE == "Round Slash" then | |
365 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
366 | elseif TYPE == "Swirl" then | |
367 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
368 | elseif TYPE == "Skull" then | |
369 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
370 | elseif TYPE == "Crystal" then | |
371 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
372 | end | |
373 | if MSH ~= nil then | |
374 | local MOVESPEED | |
375 | if MOVEDIRECTION ~= nil then | |
376 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
377 | end | |
378 | local GROWTH = SIZE - ENDSIZE | |
379 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
380 | if TYPE == "Block" then | |
381 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
382 | else | |
383 | EFFECT.CFrame = CFRAME | |
384 | end | |
385 | for LOOP = 1, TIME do | |
386 | Swait() | |
387 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
388 | if TYPE == "Wave" then | |
389 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
390 | end | |
391 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
392 | if TYPE == "Block" then | |
393 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
394 | else | |
395 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
396 | end | |
397 | if MOVEDIRECTION ~= nil then | |
398 | local ORI = EFFECT.Orientation | |
399 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
400 | EFFECT.Orientation = ORI | |
401 | end | |
402 | end | |
403 | if PLAYSSOUND == false then | |
404 | EFFECT:remove() | |
405 | else | |
406 | repeat | |
407 | Swait() | |
408 | until SOUND.Playing == false | |
409 | EFFECT:remove() | |
410 | end | |
411 | elseif PLAYSSOUND == false then | |
412 | EFFECT:remove() | |
413 | else | |
414 | repeat | |
415 | Swait() | |
416 | until SOUND.Playing == false | |
417 | EFFECT:remove() | |
418 | end | |
419 | end)) | |
420 | end | |
421 | function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT) | |
422 | if FLOOR ~= nil then | |
423 | coroutine.resume(coroutine.create(function() | |
424 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0)) | |
425 | PART.CFrame = CF(POSITION) | |
426 | for i = 1, 45 do | |
427 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
428 | RingPiece.Material = FLOOR.Material | |
429 | RingPiece.Color = FLOOR.Color | |
430 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
431 | Debris:AddItem(RingPiece, SWAIT) | |
432 | end | |
433 | PART:remove() | |
434 | end)) | |
435 | end | |
436 | end | |
437 | - | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) |
437 | + | |
438 | if FLOOR ~= nil then | |
439 | for i = 1, AMOUNT do | |
440 | do | |
441 | - | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH)) |
441 | + | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false) |
442 | DEBREE.Material = FLOOR.Material | |
443 | DEBREE.Color = FLOOR.Color | |
444 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
445 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH)) | |
446 | coroutine.resume(coroutine.create(function() | |
447 | Swait(15) | |
448 | DEBREE.Parent = workspace | |
449 | DEBREE.CanCollide = true | |
450 | Debris:AddItem(DEBREE, SWAIT) | |
451 | end)) | |
452 | end | |
453 | end | |
454 | end | |
455 | end | |
456 | function MakeForm(PART, TYPE) | |
457 | if TYPE == "Cyl" then | |
458 | local MSH = IT("CylinderMesh", PART) | |
459 | elseif TYPE == "Ball" then | |
460 | local MSH = IT("SpecialMesh", PART) | |
461 | MSH.MeshType = "Sphere" | |
462 | elseif TYPE == "Wedge" then | |
463 | local MSH = IT("SpecialMesh", PART) | |
464 | MSH.MeshType = "Wedge" | |
465 | end | |
466 | end | |
467 | function CheckTableForString(Table, String) | |
468 | for i, v in pairs(Table) do | |
469 | if string.find(string.lower(String), string.lower(v)) then | |
470 | return true | |
471 | - | function CreateNeonCircle(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH) |
471 | + | |
472 | - | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false) |
472 | + | |
473 | - | for i = 1, 45 do |
473 | + | return false |
474 | - | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false) |
474 | + | |
475 | - | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0)) |
475 | + | function CheckIntangible(Hit) |
476 | local ProjectileNames = { | |
477 | - | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
477 | + | "Water", |
478 | "Arrow", | |
479 | - | if DOESSPIN == true then |
479 | + | "Projectile", |
480 | - | while true do |
480 | + | "Effect", |
481 | - | wait() |
481 | + | "Rail", |
482 | - | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1) |
482 | + | "Lightning", |
483 | "Bullet" | |
484 | } | |
485 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
486 | return true | |
487 | end | |
488 | return false | |
489 | - | if EYE1 ~= nil and EYE2 ~= nil then |
489 | + | |
490 | Debris = game:GetService("Debris") | |
491 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
492 | - | EYE1.Mesh.Scale = EYE1.Mesh.Scale - VT(0, 0.2, 0) |
492 | + | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} |
493 | - | EYE2.Mesh.Scale = EYE2.Mesh.Scale - VT(0, 0.2, 0) |
493 | + | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore) |
494 | if RayHit and CheckIntangible(RayHit) then | |
495 | if DelayIfHit then | |
496 | wait() | |
497 | - | EYE1.Mesh.Scale = EYE1.Mesh.Scale + VT(0, 0.2, 0) |
497 | + | |
498 | - | EYE2.Mesh.Scale = EYE2.Mesh.Scale + VT(0, 0.2, 0) |
498 | + | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) |
499 | end | |
500 | return RayHit, RayPos, RayNormal | |
501 | end | |
502 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
503 | - | local FACE = CreatePart(3, Weapon, "Fabric", 0, 0, "Dark stone grey", "Face", VT(1.01, 0.725, 1.01), false) |
503 | + | |
504 | - | FACE.Color = C3(0, 0, 0) |
504 | + | |
505 | - | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
505 | + | |
506 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0, 0.225, 0), CF(0, 0, 0)) |
506 | + | |
507 | - | EYE1 = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.1, 0.3, 0.1), false) |
507 | + | |
508 | - | local DCL = IT("Decal", EYE1) |
508 | + | |
509 | - | DCL.Face = "Front" |
509 | + | BaseLightning = IT("Part") |
510 | - | DCL.Texture = "http://www.roblox.com/asset/?id=2690000" |
510 | + | BaseLightning.Anchored = true |
511 | - | MakeForm(EYE1, "Ball") |
511 | + | BaseLightning.CanCollide = false |
512 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE1, CF(0.15, 0.26, -0.55), CF(0, 0, 0)) |
512 | + | BaseLightning.Material = "Neon" |
513 | - | EYE2 = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.1, 0.3, 0.1), false) |
513 | + | local LightningBolts = {} |
514 | - | local DCL = IT("Decal", EYE2) |
514 | + | function Zap(Table) |
515 | - | DCL.Face = "Front" |
515 | + | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color |
516 | - | DCL.Texture = "http://www.roblox.com/asset/?id=2690000" |
516 | + | local Duration = Table.Duration or 2 |
517 | - | MakeForm(EYE2, "Ball") |
517 | + | local Offset = Table.Offset or 2 |
518 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15, 0.26, -0.55), CF(0, 0, 0)) |
518 | + | local Individualize = Table.Individualize or false |
519 | - | local LASTPART = Head |
519 | + | local MaxRange = Table.MaxRange or 200 |
520 | - | local COLOR1 = 43 |
520 | + | local SegmentLength = Table.SegmentLength or 5 |
521 | - | local COLOR2 = 33 |
521 | + | local Transparency = Table.Transparency or 0 |
522 | - | local COLOR3 = 27 |
522 | + | local Ignore = Table.Ignore or {} |
523 | - | for i = 1, 15 do |
523 | + | local SIZE = Table.SIZE or 0.3 |
524 | - | local MATH = 1 - i / 20 |
524 | + | if not (StartPos and TargetPos) or not Character then |
525 | - | if LASTPART == Head then |
525 | + | return |
526 | - | local Horn = CreatePart(3, Weapon, "Marble", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
526 | + | |
527 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.2, 0.65, -0.3) * ANGLES(RAD(35), RAD(0), RAD(-25)), CF(0, 0, 0)) |
527 | + | local LightningModel = IT("Folder", Effects) |
528 | - | LASTPART = Horn |
528 | + | LightningModel.Name = "ZAPP" |
529 | - | Horn.Color = C3((COLOR1 + i * 7) / 255, (COLOR2 + i * 7) / 255, (COLOR2 + i * 7) / 255) |
529 | + | for i, v in pairs({Character, LightningModel}) do |
530 | table.insert(Ignore, v) | |
531 | - | local Horn = CreatePart(3, Weapon, "Marble", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
531 | + | |
532 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 2, 0) * ANGLES(RAD(10), RAD(0), RAD(0)), CF(0, 0, 0)) |
532 | + | local LastPos = StartPos |
533 | - | LASTPART = Horn |
533 | + | local Direction = CFrame.new(StartPos, TargetPos).lookVector |
534 | - | Horn.Color = C3((COLOR1 + i * 7) / 255, (COLOR2 + i * 7) / 255, (COLOR2 + i * 7) / 255) |
534 | + | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) |
535 | local RayLength = (StartPos - RayPos).Magnitude | |
536 | local Struck = false | |
537 | - | local LASTPART = Head |
537 | + | local TotalSegments = math.ceil(RayLength / SegmentLength) |
538 | - | for i = 1, 15 do |
538 | + | Direction = CFrame.new(StartPos, RayPos).lookVector |
539 | - | local MATH = 1 - i / 20 |
539 | + | local LightningBolt = IT("Model", Effects) |
540 | - | if LASTPART == Head then |
540 | + | LightningBolt.Name = "Lightning" |
541 | - | local Horn = CreatePart(3, Weapon, "Marble", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
541 | + | LastBolt = LightningBolt |
542 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.2, 0.65, -0.3) * ANGLES(RAD(35), RAD(0), RAD(25)), CF(0, 0, 0)) |
542 | + | Debris:AddItem(LightningBolt, Duration) |
543 | - | LASTPART = Horn |
543 | + | LightningBolt.Parent = LightningModel |
544 | - | Horn.Color = C3((COLOR1 + i * 7) / 255, (COLOR2 + i * 7) / 255, (COLOR2 + i * 7) / 255) |
544 | + | for i = 1, TotalSegments do |
545 | if not Struck then | |
546 | - | local Horn = CreatePart(3, Weapon, "Marble", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
546 | + | local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset) |
547 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 2, 0) * ANGLES(RAD(10), RAD(0), RAD(0)), CF(0, 0, 0)) |
547 | + | local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy |
548 | - | LASTPART = Horn |
548 | + | local SegmentVec = NewPos - LastPos |
549 | - | Horn.Color = C3((COLOR1 + i * 7) / 255, (COLOR2 + i * 7) / 255, (COLOR2 + i * 7) / 255) |
549 | + | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) |
550 | local RayVec = LastPos - RayPos | |
551 | local LightningPart = BaseLightning:Clone() | |
552 | - | local LASTPART = Torso |
552 | + | LightningPart.BrickColor = BrickColor.new(Color) |
553 | - | for i = 1, 45 do |
553 | + | LightningPart.Transparency = Transparency |
554 | - | local MATH = 1 - i / 60 |
554 | + | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) |
555 | - | if LASTPART == Torso then |
555 | + | LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)) |
556 | - | local Tail = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, Torso.BrickColor, "Tail", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
556 | + | local CylinderMesh = IT("CylinderMesh", LightningPart) |
557 | - | local WLD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Tail, CF(0, -0.75, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
557 | + | local OrigCF = LightningPart.CFrame |
558 | - | LASTPART = Tail |
558 | + | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) |
559 | - | table.insert(TAIL, WLD) |
559 | + | LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0) |
560 | LightningPart.Parent = LightningBolt | |
561 | - | local Tail = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, Torso.BrickColor, "Tail", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) |
561 | + | LastPos = NewPos |
562 | - | local WLD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Tail, CF(0, Tail.Size.Y / 2, 0) * ANGLES(RAD(-1.2), RAD(0), RAD(0)), CF(0, 0, 0)) |
562 | + | |
563 | - | LASTPART = Tail |
563 | + | |
564 | - | table.insert(TAIL, WLD) |
564 | + | return { |
565 | RayHit = RayHit, | |
566 | RayPos = RayPos, | |
567 | - | local Tail = CreatePart(3, Weapon, "Grass", 0, 0, "Really black", "Tip", VT(0.25, 0.25, 0.25), false) |
567 | + | RayNormal = RayNormal, |
568 | - | local WLD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Tail, CF(0, Tail.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
568 | + | LightningModel = LightningModel |
569 | - | table.insert(TAIL, WLD) |
569 | + | |
570 | - | LASTPART = Tail |
570 | + | |
571 | - | local Tail = CreatePart(3, Weapon, "Grass", 0, 0, "Really black", "Tip", VT(0.4, 0.45, 0.4), false) |
571 | + | |
572 | - | local WLD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Tail, CF(0, Tail.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
572 | + | |
573 | - | table.insert(TAIL, WLD) |
573 | + | if EYE ~= nil and PUPIL ~= nil then |
574 | - | LASTPART = Tail |
574 | + | |
575 | - | local Tail = CreatePart(3, Weapon, "Grass", 0, 0, "Really black", "Tip", VT(0.15, 0.35, 0.15), false) |
575 | + | |
576 | - | local WLD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Tail, CF(0, Tail.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
576 | + | EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0, 0.2, 0) |
577 | - | table.insert(TAIL, WLD) |
577 | + | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale - VT(0, 0.2, 0) |
578 | - | CreateNeonCircle(Head, CF(0, -1.15, 0.1), 0.16, true, "Daisy orange", "Neon", 0.05, 0.05) |
578 | + | |
579 | for i = 1, 7 do | |
580 | Swait() | |
581 | EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0, 0.2, 0) | |
582 | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale + VT(0, 0.2, 0) | |
583 | end | |
584 | EYE.Mesh.Scale = VT(1, 1, 1) | |
585 | PUPIL.Mesh.Scale = VT(1, 1, 1) | |
586 | end | |
587 | end)) | |
588 | end | |
589 | local BODY = {} | |
590 | function Face() | |
591 | local FACE = CreatePart(3, Weapon, "Fabric", 0, 0, "Dark stone grey", "Face", VT(1.01, 0.725, 1.01), false) | |
592 | FACE.Color = C3(0, 0, 0) | |
593 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Extreme Offset", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") |
593 | + | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
594 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Eon Fire", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") |
594 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0, 0.225, 0), CF(0, 0, 0)) |
595 | EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15, 0.3, 0.15), false) | |
596 | MakeForm(EYE, "Ball") | |
597 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15, 0.26, -0.55), CF(0, 0, 0)) | |
598 | PUPIL = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.05, 0.2, 0.05), false) | |
599 | PUPIL.Color = C3(0, 0, 0) | |
600 | MakeForm(PUPIL, "Ball") | |
601 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PUPIL, CF(0.15, 0.26, -0.6), CF(0, 0, 0)) | |
602 | local LASTPART = Head | |
603 | for i = 1, 30 do | |
604 | local MATH = 1 - i / 40 | |
605 | if LASTPART == Head then | |
606 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
607 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
608 | LASTPART = Horn | |
609 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
610 | else | |
611 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
612 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(3), RAD(0)), CF(0, 0, 0)) | |
613 | LASTPART = Horn | |
614 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
615 | end | |
616 | end | |
617 | local LASTPART = Head | |
618 | for i = 1, 30 do | |
619 | local MATH = 1 - i / 40 | |
620 | if LASTPART == Head then | |
621 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
622 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
623 | LASTPART = Horn | |
624 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
625 | else | |
626 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
627 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(-3), RAD(0)), CF(0, 0, 0)) | |
628 | LASTPART = Horn | |
629 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
630 | end | |
631 | end | |
632 | BODY = {} | |
633 | for _, c in pairs(Character:GetDescendants()) do | |
634 | if c:IsA("BasePart") then | |
635 | table.insert(BODY, { | |
636 | c, | |
637 | c.Parent, | |
638 | c.Material, | |
639 | c.Color | |
640 | }) | |
641 | elseif c:IsA("JointInstance") then | |
642 | table.insert(BODY, { | |
643 | c, | |
644 | c.Parent, | |
645 | nil, | |
646 | nil | |
647 | }) | |
648 | end | |
649 | end | |
650 | end | |
651 | - | CHILD:BreakJoints() |
651 | + | function RightWing() |
652 | for i = 1, 2 do | |
653 | local PART | |
654 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
655 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(-15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-30 * i)), CF(0, 0, 0)) | |
656 | table.insert(RWINGS, WingWeld) | |
657 | PART = Wing | |
658 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "LargeWing", VT(1, 1.7, 1), false) | |
659 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), CF(0, -0.8, 0)) | |
660 | PART = Wing | |
661 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
662 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
663 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.2, 0.51), false) | |
664 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
665 | PART = Wing | |
666 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
667 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
668 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.8, 0.15, 0.15), false) | |
669 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
670 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark orange", "WingPart", VT(0.25, 0.2, 0.25), false) | |
671 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
672 | - | function Extreme_Offset() |
672 | + | PART = Wing |
673 | - | local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character) |
673 | + | table.insert(RWINGS, WingWeld) |
674 | - | if HITFLOOR then |
674 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.4, 0.5, 0.4), false) |
675 | - | local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z) |
675 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) |
676 | - | CreateSound("1295446488", Torso, 5, 1) |
676 | + | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark indigo", "WingPart", VT(0.45, 0.2, 0.45), false) |
677 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
678 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.15, 0.15), false) | |
679 | - | Time = MRANDOM(15, 35), |
679 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) |
680 | - | EffectType = "Round Slash", |
680 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) |
681 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0, 0)) | |
682 | - | Size2 = VT(0.3, 0, 0.3), |
682 | + | PART = Wing |
683 | table.insert(RWINGS, WingWeld) | |
684 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
685 | - | CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))), |
685 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) |
686 | PART = Wing | |
687 | - | RotationX = MRANDOM(-50, 50) / 10, |
687 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) |
688 | - | RotationY = MRANDOM(-50, 50) / 10, |
688 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(15), RAD(15)), CF(0, 0, 0)) |
689 | - | RotationZ = MRANDOM(-50, 50) / 10, |
689 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.3, 0.3), false) |
690 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
691 | - | Color = C3(1, 1, 1), |
691 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(1, 0.2, 0.2), false) |
692 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0.15, 0)) | |
693 | PART = Wing | |
694 | table.insert(RWINGS, WingWeld) | |
695 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
696 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
697 | - | ATTACK = true |
697 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(0.3, 0.3, 0.3), false) |
698 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
699 | - | UNANCHOR = false |
699 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.7, 0.7, 0.7), false) |
700 | - | RootPart.Anchored = true |
700 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) |
701 | - | RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0)) |
701 | + | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Burgundy", "WingPart", VT(0.45, 0.45, 0.45), false) |
702 | table.insert(EYES, Wing1) | |
703 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(-35)), CF(0, 0, 0)) | |
704 | - | Time = MRANDOM(15, 35), |
704 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) |
705 | - | EffectType = "Round Slash", |
705 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) |
706 | PART = Wing | |
707 | - | Size2 = VT(0.3, 0, 0.3), |
707 | + | table.insert(RWINGS, WingWeld) |
708 | end | |
709 | BODY = {} | |
710 | - | CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))), |
710 | + | for _, c in pairs(Character:GetDescendants()) do |
711 | if c:IsA("BasePart") then | |
712 | - | RotationX = MRANDOM(-50, 50) / 10, |
712 | + | table.insert(BODY, { |
713 | - | RotationY = MRANDOM(-50, 50) / 10, |
713 | + | c, |
714 | - | RotationZ = MRANDOM(-50, 50) / 10, |
714 | + | c.Parent, |
715 | c.Material, | |
716 | - | Color = C3(1, 1, 1), |
716 | + | c.Color |
717 | }) | |
718 | elseif c:IsA("JointInstance") then | |
719 | table.insert(BODY, { | |
720 | c, | |
721 | c.Parent, | |
722 | - | for i = 0, 0.2, 0.1 / Animation_Speed do |
722 | + | nil, |
723 | nil | |
724 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed) |
724 | + | |
725 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
725 | + | |
726 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
726 | + | |
727 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
727 | + | |
728 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
728 | + | function LeftWing() |
729 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed) |
729 | + | for i = 1, 2 do |
730 | local PART | |
731 | - | for i = 0, 1, 0.1 / Animation_Speed do |
731 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) |
732 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(-0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(30 * i)), CF(0, 0, 0)) | |
733 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed) |
733 | + | table.insert(LWINGS, WingWeld) |
734 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed) |
734 | + | PART = Wing |
735 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed) |
735 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "LargeWing", VT(1, 1.7, 1), false) |
736 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed) |
736 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(-25), RAD(0)), CF(0, -0.8, 0)) |
737 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed) |
737 | + | PART = Wing |
738 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed) |
738 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) |
739 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
740 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.2, 0.51), false) | |
741 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
742 | - | RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0) |
742 | + | PART = Wing |
743 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed) |
743 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) |
744 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed) |
744 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) |
745 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed) |
745 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.8, 0.15, 0.15), false) |
746 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed) |
746 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
747 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed) |
747 | + | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark orange", "WingPart", VT(0.25, 0.2, 0.25), false) |
748 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed) |
748 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) |
749 | PART = Wing | |
750 | - | for i = 0, 0.2, 0.1 / Animation_Speed do |
750 | + | table.insert(LWINGS, WingWeld) |
751 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.4, 0.5, 0.4), false) | |
752 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed) |
752 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) |
753 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed) |
753 | + | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark indigo", "WingPart", VT(0.45, 0.2, 0.45), false) |
754 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) |
754 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) |
755 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed) |
755 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.15, 0.15), false) |
756 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
756 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) |
757 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
757 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) |
758 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0, 0)) | |
759 | - | local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character) |
759 | + | PART = Wing |
760 | table.insert(LWINGS, WingWeld) | |
761 | - | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
761 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) |
762 | - | local CHILDREN = HITFLOOR.Parent:GetDescendants() |
762 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) |
763 | - | for index, CHILD in pairs(CHILDREN) do |
763 | + | PART = Wing |
764 | - | if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then |
764 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) |
765 | - | for i = 1, 5 do |
765 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(-15), RAD(-15)), CF(0, 0, 0)) |
766 | - | CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25)) |
766 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.3, 0.3), false) |
767 | - | CHILD:remove() |
767 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) |
768 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(1, 0.2, 0.2), false) | |
769 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0.15, 0)) | |
770 | PART = Wing | |
771 | - | local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0)) |
771 | + | table.insert(LWINGS, WingWeld) |
772 | - | SOUNDPART.CFrame = CF(HITPOS) |
772 | + | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) |
773 | - | Debris:AddItem(SOUNDPART, 5) |
773 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) |
774 | - | CreateSound("130972023", SOUNDPART, 6, 3) |
774 | + | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(0.3, 0.3, 0.3), false) |
775 | - | CreateSound("182765513", SOUNDPART, 6, 1) |
775 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
776 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.7, 0.7, 0.7), false) | |
777 | - | EffectType = "Ring", |
777 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) |
778 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Burgundy", "WingPart", VT(0.45, 0.45, 0.45), false) | |
779 | - | Size2 = VT(1, 1, 0), |
779 | + | table.insert(EYES, Wing1) |
780 | - | Transparency = 0.7, |
780 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(35)), CF(0, 0, 0)) |
781 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
782 | - | CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)), |
782 | + | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) |
783 | PART = Wing | |
784 | - | RotationX = 0, |
784 | + | table.insert(LWINGS, WingWeld) |
785 | - | RotationY = 0, |
785 | + | |
786 | - | RotationZ = 0, |
786 | + | BODY = {} |
787 | for _, c in pairs(Character:GetDescendants()) do | |
788 | - | Color = C3(1, 1, 1), |
788 | + | if c:IsA("BasePart") then |
789 | table.insert(BODY, { | |
790 | c, | |
791 | c.Parent, | |
792 | c.Material, | |
793 | - | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
793 | + | c.Color |
794 | - | local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants() |
794 | + | |
795 | - | for index, CHILD in pairs(CHILDREN) do |
795 | + | elseif c:IsA("JointInstance") then |
796 | - | if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then |
796 | + | table.insert(BODY, { |
797 | - | for i = 1, 5 do |
797 | + | c, |
798 | - | CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25)) |
798 | + | c.Parent, |
799 | - | CHILD:remove() |
799 | + | nil, |
800 | nil | |
801 | }) | |
802 | end | |
803 | - | local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0)) |
803 | + | |
804 | - | SOUNDPART.CFrame = CF(HITPOS) |
804 | + | |
805 | - | Debris:AddItem(SOUNDPART, 5) |
805 | + | |
806 | - | CreateSound("130972023", SOUNDPART, 6, 3) |
806 | + | |
807 | - | CreateSound("182765513", SOUNDPART, 6, 1) |
807 | + | |
808 | end | |
809 | - | EffectType = "Ring", |
809 | + | |
810 | for _, c in pairs(Character:GetDescendants()) do | |
811 | - | Size2 = VT(1, 1, 0), |
811 | + | if c:IsA("BasePart") then |
812 | - | Transparency = 0.7, |
812 | + | table.insert(BODY, { |
813 | c, | |
814 | - | CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)), |
814 | + | c.Parent, |
815 | c.Material, | |
816 | - | RotationX = 0, |
816 | + | c.Color |
817 | - | RotationY = 0, |
817 | + | |
818 | - | RotationZ = 0, |
818 | + | elseif c:IsA("JointInstance") then |
819 | table.insert(BODY, { | |
820 | - | Color = C3(1, 1, 1), |
820 | + | c, |
821 | c.Parent, | |
822 | nil, | |
823 | nil | |
824 | }) | |
825 | - | elseif HITFLOOR.Anchored == false then |
825 | + | |
826 | - | if HITFLOOR.Parent ~= workspace then |
826 | + | |
827 | - | local CHILDREN = HITFLOOR.Parent:GetDescendants() |
827 | + | for e = 1, #BODY do |
828 | - | for index, CHILD in pairs(CHILDREN) do |
828 | + | if BODY[e] ~= nil then |
829 | - | if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then |
829 | + | do |
830 | - | for i = 1, 5 do |
830 | + | local STUFF = BODY[e] |
831 | - | CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25)) |
831 | + | local PART = STUFF[1] |
832 | local PARENT = STUFF[2] | |
833 | - | CHILD:remove() |
833 | + | local MATERIAL = STUFF[3] |
834 | local COLOR = STUFF[4] | |
835 | PART.AncestryChanged:Connect(function() | |
836 | if PART.ClassName == "Part" then | |
837 | - | for i = 1, 5 do |
837 | + | PART.Material = MATERIAL |
838 | - | CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25)) |
838 | + | PART.Color = COLOR |
839 | end | |
840 | - | HITFLOOR:remove() |
840 | + | PART.Parent = PARENT |
841 | end) | |
842 | - | local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0)) |
842 | + | |
843 | - | SOUNDPART.CFrame = CF(HITPOS) |
843 | + | |
844 | - | Debris:AddItem(SOUNDPART, 5) |
844 | + | |
845 | - | CreateSound("130972023", SOUNDPART, 10, 3) |
845 | + | function refit() |
846 | - | CreateSound("178452217", SOUNDPART, 6, 1) |
846 | + | Weapon.Parent = Character |
847 | Character.Parent = workspace | |
848 | - | EffectType = "Ring", |
848 | + | for e = 1, #BODY do |
849 | if BODY[e] ~= nil then | |
850 | - | Size2 = VT(1, 1, 0), |
850 | + | local STUFF = BODY[e] |
851 | - | Transparency = 0.7, |
851 | + | local PART = STUFF[1] |
852 | local PARENT = STUFF[2] | |
853 | - | CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)), |
853 | + | local MATERIAL = STUFF[3] |
854 | local COLOR = STUFF[4] | |
855 | - | RotationX = 0, |
855 | + | if PART.Parent ~= PARENT then |
856 | - | RotationY = 0, |
856 | + | Humanoid:remove() |
857 | - | RotationZ = 0, |
857 | + | if PART.ClassName == "Part" then |
858 | PART.Material = MATERIAL | |
859 | - | Color = C3(1, 1, 1), |
859 | + | PART.Color = COLOR |
860 | end | |
861 | PART.Parent = PARENT | |
862 | Humanoid = IT("Humanoid", Character) | |
863 | end | |
864 | end | |
865 | - | local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0)) |
865 | + | |
866 | - | SOUNDPART.CFrame = CF(HITPOS) |
866 | + | |
867 | - | Debris:AddItem(SOUNDPART, 5) |
867 | + | |
868 | - | CreateSound("130972023", SOUNDPART, 10, 1) |
868 | + | |
869 | - | CreateSound("130972023", SOUNDPART, 6, 0.7) |
869 | + | |
870 | - | CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5) |
870 | + | |
871 | - | CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5) |
871 | + | |
872 | - | ApplyAoE(HITPOS, 15, 45, 75, 75, false) |
872 | + | refit() |
873 | - | ApplyAoE(HITPOS, 25, 25, 35, 35, false) |
873 | + | |
874 | - | for i = 1, 5 do |
874 | + | |
875 | - | CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150)) |
875 | + | |
876 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame") | |
877 | - | for i = 1, 5 do |
877 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Neck Snap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") |
878 | - | CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150)) |
878 | + | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") |
879 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Fire At Will", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
880 | function StatLabel(CFRAME, TEXT, COLOR) | |
881 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
882 | - | for i = 0, 1.2, 0.1 / Animation_Speed do |
882 | + | |
883 | local BODYGYRO = IT("BodyGyro", STATPART) | |
884 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed) |
884 | + | |
885 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed) |
885 | + | |
886 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) |
886 | + | |
887 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed) |
887 | + | |
888 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
888 | + | |
889 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
889 | + | |
890 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
891 | - | ATTACK = false |
891 | + | |
892 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
893 | - | UNANCHOR = true |
893 | + | |
894 | TEXTLABEL.Font = SKILLFONT | |
895 | TEXTLABEL.FontSize = "Size42" | |
896 | TEXTLABEL.TextColor3 = COLOR | |
897 | - | function Eon_Fire() |
897 | + | |
898 | TEXTLABEL.TextScaled = true | |
899 | TEXTLABEL.TextWrapped = true | |
900 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
901 | - | GYRO.D = 15 |
901 | + | |
902 | Swait() | |
903 | - | GYRO.MaxTorque = VT(0, 4000000, 0) |
903 | + | |
904 | - | CreateSound("341301115", Head, 5, 1.1) |
904 | + | |
905 | - | CreateSound("93724183", Head, 6, 1) |
905 | + | |
906 | - | for i = 1, 200 do |
906 | + | |
907 | THEPART.Parent = nil | |
908 | - | WACKYEFFECT({ |
908 | + | |
909 | - | Time = MRANDOM(5, 15), |
909 | + | |
910 | - | EffectType = "Round Slash", |
910 | + | function Ragdoll(Character2, CharTorso, Headless, Velocity) |
911 | - | Size = VT(0, 0, 0), |
911 | + | local svch = Character2 |
912 | - | Size2 = VT(0.12, 0, 0.12), |
912 | + | Character2:BreakJoints() |
913 | - | Transparency = 0.5, |
913 | + | local hum = Character2:findFirstChild("Humanoid") |
914 | - | Transparency2 = 1, |
914 | + | local q = Character2:GetChildren() |
915 | - | CFrame = RootPart.CFrame * CF(0, -2.8, 0) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), |
915 | + | local CLONE = IT("Model", Effects) |
916 | - | MoveToPos = nil, |
916 | + | for i = 1, #q do |
917 | - | RotationX = MRANDOM(-50, 50) / 50, |
917 | + | if q[i].ClassName == "Accessory" and Headless == true then |
918 | - | RotationY = MRANDOM(-50, 50) / 10, |
918 | + | q[i]:remove() |
919 | - | RotationZ = MRANDOM(-50, 50) / 50, |
919 | + | elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then |
920 | - | Material = "Neon", |
920 | + | q[i].Parent = CLONE |
921 | - | Color = C3(1, 0, 0), |
921 | + | elseif q[i].ClassName ~= "Humanoid" then |
922 | - | SoundID = nil, |
922 | + | q[i]:remove() |
923 | - | SoundPitch = nil, |
923 | + | |
924 | - | SoundVolume = nil |
924 | + | |
925 | local chrclone = CLONE | |
926 | - | WACKYEFFECT({ |
926 | + | local ch = chrclone:GetChildren() |
927 | - | Time = MRANDOM(5, 15), |
927 | + | local i |
928 | - | EffectType = "Round Slash", |
928 | + | for i = 1, #ch do |
929 | - | Size = VT(0, 0, 0), |
929 | + | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then |
930 | - | Size2 = VT(0.1, 0, 0.1), |
930 | + | ch[i]:remove() |
931 | - | Transparency = 0.5, |
931 | + | |
932 | - | Transparency2 = 1, |
932 | + | |
933 | - | CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-35), RAD(MRANDOM(0, 360)), RAD(0)), |
933 | + | local function Scan(ch) |
934 | - | MoveToPos = nil, |
934 | + | local e |
935 | - | RotationX = MRANDOM(-50, 50) / 50, |
935 | + | for e = 1, #ch do |
936 | - | RotationY = MRANDOM(-50, 50) / 10, |
936 | + | Scan(ch[e]:GetChildren()) |
937 | - | RotationZ = MRANDOM(-50, 50) / 50, |
937 | + | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then |
938 | - | Material = "Neon", |
938 | + | ch[e]:remove() |
939 | - | Color = C3(1, 0, 0), |
939 | + | |
940 | - | SoundID = nil, |
940 | + | |
941 | - | SoundPitch = nil, |
941 | + | |
942 | - | SoundVolume = nil |
942 | + | Character2:remove() |
943 | local NEWHUM = IT("Humanoid") | |
944 | - | WACKYEFFECT({ |
944 | + | NEWHUM.Name = "Corpse" |
945 | - | Time = MRANDOM(5, 15), |
945 | + | NEWHUM.Health = 0 |
946 | - | EffectType = "Round Slash", |
946 | + | NEWHUM.MaxHealth = 0 |
947 | - | Size = VT(0, 0, 0), |
947 | + | NEWHUM.PlatformStand = true |
948 | - | Size2 = VT(0.16, 0, 0.16), |
948 | + | NEWHUM.Parent = CLONE |
949 | - | Transparency = 0.5, |
949 | + | NEWHUM.DisplayDistanceType = "None" |
950 | - | Transparency2 = 1, |
950 | + | Scan(chrclone:GetChildren()) |
951 | - | CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-45), RAD(MRANDOM(0, 360)), RAD(0)), |
951 | + | local ch = Character2:GetChildren() |
952 | - | MoveToPos = nil, |
952 | + | local i |
953 | - | RotationX = MRANDOM(-50, 50) / 50, |
953 | + | for i = 1, #ch do |
954 | - | RotationY = MRANDOM(-50, 50) / 10, |
954 | + | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then |
955 | - | RotationZ = MRANDOM(-50, 50) / 50, |
955 | + | ch[i]:remove() |
956 | - | Material = "Neon", |
956 | + | |
957 | - | Color = C3(1, 0, 0), |
957 | + | |
958 | - | SoundID = nil, |
958 | + | local ch = Character2:GetChildren() |
959 | - | SoundPitch = nil, |
959 | + | local i |
960 | - | SoundVolume = nil |
960 | + | for i = 1, #ch do |
961 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
962 | - | WACKYEFFECT({ |
962 | + | ch[i]:remove() |
963 | - | Time = 5, |
963 | + | |
964 | - | EffectType = "Sphere", |
964 | + | |
965 | - | Size = VT(i, i, i) / 150, |
965 | + | Character2 = chrclone |
966 | - | Size2 = VT(0, 0, 0), |
966 | + | local Torso2 = Character2.Torso |
967 | - | Transparency = 0.5, |
967 | + | local movevector = Vector3.new() |
968 | - | Transparency2 = 1, |
968 | + | if Torso2 then |
969 | - | CFrame = Head.CFrame * CF(0, -0.25, -1), |
969 | + | movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector |
970 | - | MoveToPos = nil, |
970 | + | local Head = Character2:FindFirstChild("Head") |
971 | - | RotationX = 0, |
971 | + | if Head then |
972 | - | RotationY = 0, |
972 | + | local Neck = Instance.new("Weld") |
973 | - | RotationZ = 0, |
973 | + | Neck.Name = "Neck" |
974 | - | Material = "Neon", |
974 | + | Neck.Part0 = Torso2 |
975 | - | Color = C3(1, 0, 0), |
975 | + | Neck.Part1 = Head |
976 | - | SoundID = nil, |
976 | + | Neck.C0 = CFrame.new(0, 1.5, 0) |
977 | - | SoundPitch = nil, |
977 | + | Neck.C1 = CFrame.new() |
978 | - | SoundVolume = nil |
978 | + | Neck.Parent = Torso2 |
979 | if Headless == true then | |
980 | Head.Transparency = 1 | |
981 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.05 / Animation_Speed) |
981 | + | Head:ClearAllChildren() |
982 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.05 / Animation_Speed) |
982 | + | |
983 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) |
983 | + | |
984 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) |
984 | + | local Limb = Character2:FindFirstChild("Right Arm") |
985 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed) |
985 | + | if Limb then |
986 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed) |
986 | + | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) |
987 | local Joint = Instance.new("Glue") | |
988 | Joint.Name = "RightShoulder" | |
989 | - | for i = 0, 0.3, 0.1 / Animation_Speed do |
989 | + | Joint.Part0 = Torso2 |
990 | Joint.Part1 = Limb | |
991 | - | WACKYEFFECT({ |
991 | + | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
992 | - | Time = 25, |
992 | + | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
993 | - | EffectType = "Sphere", |
993 | + | Joint.Parent = Torso2 |
994 | - | Size = VT(200, 200, 200) / 150, |
994 | + | local B = Instance.new("Part") |
995 | - | Size2 = VT(0, 0, 0), |
995 | + | B.TopSurface = 0 |
996 | - | Transparency = 0.5, |
996 | + | B.BottomSurface = 0 |
997 | - | Transparency2 = 1, |
997 | + | B.formFactor = "Symmetric" |
998 | - | CFrame = Head.CFrame * CF(0, -0.25, -1), |
998 | + | B.Size = Vector3.new(1, 1, 1) |
999 | - | MoveToPos = nil, |
999 | + | B.Transparency = 1 |
1000 | - | RotationX = 0, |
1000 | + | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
1001 | - | RotationY = 0, |
1001 | + | B.Parent = Character2 |
1002 | - | RotationZ = 0, |
1002 | + | local W = Instance.new("Weld") |
1003 | - | Material = "Neon", |
1003 | + | W.Part0 = Limb |
1004 | - | Color = C3(1, 0, 0), |
1004 | + | W.Part1 = B |
1005 | - | SoundID = nil, |
1005 | + | W.C0 = CFrame.new(0, -0.5, 0) |
1006 | - | SoundPitch = nil, |
1006 | + | W.Parent = Limb |
1007 | - | SoundVolume = nil |
1007 | + | |
1008 | local Limb = Character2:FindFirstChild("Left Arm") | |
1009 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1009 | + | if Limb then |
1010 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1010 | + | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) |
1011 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1011 | + | local Joint = Instance.new("Glue") |
1012 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1012 | + | Joint.Name = "LeftShoulder" |
1013 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1013 | + | Joint.Part0 = Torso2 |
1014 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1014 | + | Joint.Part1 = Limb |
1015 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1016 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1017 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "DOOM", VT(1, 1, 1)) |
1017 | + | Joint.Parent = Torso2 |
1018 | - | MakeForm(FIREBALL, "Ball") |
1018 | + | local B = Instance.new("Part") |
1019 | - | local SOUND = CreateSound(463593339, FIREBALL, 8, 1, false) |
1019 | + | B.TopSurface = 0 |
1020 | - | FIREBALL.CFrame = CF(Head.Position, Mouse.Hit.p) * CF(0, 0, -2) |
1020 | + | B.BottomSurface = 0 |
1021 | B.formFactor = "Symmetric" | |
1022 | B.Size = Vector3.new(1, 1, 1) | |
1023 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2) |
1023 | + | B.Transparency = 1 |
1024 | - | local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.2, Character) |
1024 | + | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
1025 | B.Parent = Character2 | |
1026 | local W = Instance.new("Weld") | |
1027 | W.Part0 = Limb | |
1028 | W.Part1 = B | |
1029 | - | CreateSound(325132788, Effects, 8, 1, false) |
1029 | + | W.C0 = CFrame.new(0, -0.5, 0) |
1030 | - | for i = 1, 120 do |
1030 | + | W.Parent = Limb |
1031 | end | |
1032 | local Limb = Character2:FindFirstChild("Right Leg") | |
1033 | - | Time = 85, |
1033 | + | if Limb then |
1034 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1035 | - | Size = FIREBALL.Size, |
1035 | + | local Joint = Instance.new("Glue") |
1036 | - | Size2 = VT(0, 1000, 0), |
1036 | + | Joint.Name = "RightHip" |
1037 | Joint.Part0 = Torso2 | |
1038 | Joint.Part1 = Limb | |
1039 | - | CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), |
1039 | + | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
1040 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1041 | - | RotationX = MRANDOM(-50, 50) / 10, |
1041 | + | Joint.Parent = Torso2 |
1042 | - | RotationY = MRANDOM(-50, 50) / 10, |
1042 | + | local B = Instance.new("Part") |
1043 | - | RotationZ = MRANDOM(-50, 50) / 10, |
1043 | + | B.TopSurface = 0 |
1044 | B.BottomSurface = 0 | |
1045 | B.formFactor = "Symmetric" | |
1046 | B.Size = Vector3.new(1, 1, 1) | |
1047 | B.Transparency = 1 | |
1048 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1049 | B.Parent = Character2 | |
1050 | - | FIREBALL.Size = FIREBALL.Size - VT(1, 1, 1) / 120 |
1050 | + | local W = Instance.new("Weld") |
1051 | W.Part0 = Limb | |
1052 | - | Swait(5) |
1052 | + | W.Part1 = B |
1053 | - | ApplyAoE(FIREBALL.Position, 435, 65, 65, 600, false) |
1053 | + | W.C0 = CFrame.new(0, -0.5, 0) |
1054 | W.Parent = Limb | |
1055 | end | |
1056 | - | Time = 85 + 5 * i, |
1056 | + | local Limb = Character2:FindFirstChild("Left Leg") |
1057 | - | EffectType = "Slash", |
1057 | + | if Limb then |
1058 | - | Size = VT(3, 0, 3), |
1058 | + | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) |
1059 | - | Size2 = VT(12, 0, 12), |
1059 | + | local Joint = Instance.new("Glue") |
1060 | Joint.Name = "LeftHip" | |
1061 | Joint.Part0 = Torso2 | |
1062 | - | CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), |
1062 | + | Joint.Part1 = Limb |
1063 | Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1064 | - | RotationX = MRANDOM(-50, 50) / 50, |
1064 | + | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
1065 | - | RotationY = MRANDOM(-50, 50) / 10, |
1065 | + | Joint.Parent = Torso2 |
1066 | - | RotationZ = MRANDOM(-50, 50) / 50, |
1066 | + | local B = Instance.new("Part") |
1067 | B.TopSurface = 0 | |
1068 | - | Color = C3(1, 1, 1), |
1068 | + | B.BottomSurface = 0 |
1069 | B.formFactor = "Symmetric" | |
1070 | B.Size = Vector3.new(1, 1, 1) | |
1071 | B.Transparency = 1 | |
1072 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1073 | B.Parent = Character2 | |
1074 | - | Time = 185 + 5 * i, |
1074 | + | local W = Instance.new("Weld") |
1075 | W.Part0 = Limb | |
1076 | - | Size = VT(15, 15, 15), |
1076 | + | W.Part1 = B |
1077 | - | Size2 = VT(700, 700, 700) + VT(15, 15, 15) * i, |
1077 | + | W.C0 = CFrame.new(0, -0.5, 0) |
1078 | W.Parent = Limb | |
1079 | end | |
1080 | - | CFrame = FIREBALL.CFrame * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), |
1080 | + | local Bar = Instance.new("Part") |
1081 | Bar.TopSurface = 0 | |
1082 | - | RotationX = MRANDOM(-50, 50) / 50, |
1082 | + | Bar.BottomSurface = 0 |
1083 | - | RotationY = MRANDOM(-50, 50) / 10, |
1083 | + | Bar.formFactor = "Symmetric" |
1084 | - | RotationZ = MRANDOM(-50, 50) / 50, |
1084 | + | Bar.Size = Vector3.new(1, 1, 1) |
1085 | Bar.Transparency = 1 | |
1086 | - | Color = C3(1, 0.5, 0.5), |
1086 | + | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) |
1087 | Bar.Parent = Character2 | |
1088 | local Weld = Instance.new("Weld") | |
1089 | Weld.Part0 = Torso2 | |
1090 | Weld.Part1 = Bar | |
1091 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1092 | - | Time = 285 + 5 * i, |
1092 | + | Weld.Parent = Torso2 |
1093 | - | EffectType = "Round Slash", |
1093 | + | |
1094 | - | Size = VT(3, 0, 3), |
1094 | + | Character2.Parent = Weapon |
1095 | - | Size2 = VT(12, 0, 12), |
1095 | + | if movevector ~= Vector3.new() then |
1096 | for i = 1, 10 do | |
1097 | Torso2.Velocity = movevector * Velocity | |
1098 | - | CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), |
1098 | + | |
1099 | end | |
1100 | - | RotationX = MRANDOM(-50, 50) / 50, |
1100 | + | Character2.Name = "Corpse" |
1101 | - | RotationY = MRANDOM(-50, 50) / 10, |
1101 | + | return Character2, Torso2 |
1102 | - | RotationZ = MRANDOM(-50, 50) / 50, |
1102 | + | |
1103 | function PuddleOfBlood(Position, MaxDrop, Model, MaxSize) | |
1104 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model) | |
1105 | if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
1106 | if HITFLOOR.Name == "BloodPuddle" then | |
1107 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
1108 | if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then | |
1109 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1) | |
1110 | - | Time = 285 + 5 * i, |
1110 | + | |
1111 | elseif HITFLOOR.Anchored == true then | |
1112 | - | Size = VT(650, 650, 650), |
1112 | + | |
1113 | - | Size2 = VT(750, 750, 750) + VT(15, 15, 15) * i, |
1113 | + | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2)) |
1114 | BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1115 | MakeForm(BLOOD, "Cyl") | |
1116 | - | CFrame = FIREBALL.CFrame, |
1116 | + | |
1117 | Swait(75) | |
1118 | while true do | |
1119 | Swait() | |
1120 | BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02) | |
1121 | if BLOOD.Size.Z < 0.051 then | |
1122 | BLOOD:remove() | |
1123 | break | |
1124 | - | SoundPitch = 0, |
1124 | + | |
1125 | - | SoundVolume = 0 |
1125 | + | |
1126 | end)) | |
1127 | end | |
1128 | end | |
1129 | - | WACKYEFFECT({ |
1129 | + | |
1130 | - | Time = 75, |
1130 | + | |
1131 | - | EffectType = "Sphere", |
1131 | + | function SprayBlood(POSITION, DIRECTION, BloodSize) |
1132 | - | Size = VT(350, 350, 350), |
1132 | + | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false) |
1133 | - | Size2 = VT(4500, 4500, 4500), |
1133 | + | BLOOD.CFrame = CF(POSITION) |
1134 | - | Transparency = 0.8, |
1134 | + | MakeForm(BLOOD, "Ball") |
1135 | - | Transparency2 = 1, |
1135 | + | local bv = Instance.new("BodyVelocity", BLOOD) |
1136 | - | CFrame = FIREBALL.CFrame, |
1136 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
1137 | - | MoveToPos = nil, |
1137 | + | bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25 |
1138 | - | RotationX = 0, |
1138 | + | bv.Name = "MOVE" |
1139 | - | RotationY = 0, |
1139 | + | Debris:AddItem(bv, 0.05) |
1140 | - | RotationZ = 0, |
1140 | + | |
1141 | - | Material = "Neon", |
1141 | + | local HASTOUCHEDGROUND = false |
1142 | - | Color = C3(1, 1, 1), |
1142 | + | local HIT = BLOOD.Touched:Connect(function(hit) |
1143 | - | SoundID = nil, |
1143 | + | if hit.Anchored == true then |
1144 | - | SoundPitch = 0, |
1144 | + | HASTOUCHEDGROUND = true |
1145 | - | SoundVolume = 0 |
1145 | + | PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize) |
1146 | end | |
1147 | - | for i = 1, 15 do |
1147 | + | end) |
1148 | wait(5) | |
1149 | - | ApplyAoE(FIREBALL.Position, 435 + 85 * i, 3, 3, 100, false) |
1149 | + | if HASTOUCHEDGROUND == false then |
1150 | BLOOD:remove() | |
1151 | - | Time = 85, |
1151 | + | |
1152 | end)) | |
1153 | - | Size = VT(75, 75, 75), |
1153 | + | |
1154 | - | Size2 = VT(0, 2500, 0), |
1154 | + | |
1155 | local defence = Instance.new("BoolValue", Humanoid.Parent) | |
1156 | defence.Name = "HitBy" .. Player.Name | |
1157 | - | CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), |
1157 | + | |
1158 | Damage = Damage * DAMAGEMULTIPLIER | |
1159 | - | RotationX = MRANDOM(-50, 50) / 10, |
1159 | + | |
1160 | - | RotationY = MRANDOM(-50, 50) / 10, |
1160 | + | |
1161 | - | RotationZ = MRANDOM(-50, 50) / 10, |
1161 | + | |
1162 | Damage = math.ceil(Humanoid.Health) | |
1163 | if Damage == 0 then | |
1164 | Damage = 0.1 | |
1165 | end | |
1166 | end | |
1167 | Humanoid.Health = Humanoid.Health - Damage | |
1168 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1169 | - | FIREBALL:remove() |
1169 | + | |
1170 | end | |
1171 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) | |
1172 | local CHILDREN = workspace:GetDescendants() | |
1173 | for index, CHILD in pairs(CHILDREN) do | |
1174 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1175 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1176 | if HUM then | |
1177 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1178 | - | CFrame = Head.CFrame * CF(0, -0.25, -0.75), |
1178 | + | |
1179 | if INSTAKILL == true then | |
1180 | Petrify(CHILD) | |
1181 | else | |
1182 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
1183 | ApplyDamage(HUM, DMG, TORSO) | |
1184 | - | Color = C3(1, 0, 0), |
1184 | + | |
1185 | if FLING > 0 then | |
1186 | for _, c in pairs(CHILD:GetChildren()) do | |
1187 | if c:IsA("BasePart") then | |
1188 | local bv = Instance.new("BodyVelocity") | |
1189 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1190 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
1191 | bv.Parent = c | |
1192 | Debris:AddItem(bv, 0.05) | |
1193 | end | |
1194 | end | |
1195 | end | |
1196 | - | CFrame = Head.CFrame * CF(0, -0.25, -0.75), |
1196 | + | |
1197 | end | |
1198 | end | |
1199 | end | |
1200 | end | |
1201 | function Petrify(Foe) | |
1202 | - | Color = C3(1, 0, 0), |
1202 | + | local STONEMODEL = IT("Model", Effects) |
1203 | local CHILDREN = Foe:GetDescendants() | |
1204 | for index, CHILD in pairs(CHILDREN) do | |
1205 | if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then | |
1206 | CHILD.Parent = STONEMODEL | |
1207 | - | for i = 0, 0.3, 0.1 / Animation_Speed do |
1207 | + | CHILD.Material = "Slate" |
1208 | CHILD.Color = C3(0.5, 0.5, 0.5) | |
1209 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1209 | + | if CHILD:FindFirstChildOfClass("SpecialMesh") then |
1210 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1210 | + | local mesh = CHILD:FindFirstChildOfClass("SpecialMesh") |
1211 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1211 | + | mesh.TextureId = "" |
1212 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1212 | + | |
1213 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1213 | + | if CHILD:FindFirstChildOfClass("Decal") then |
1214 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1214 | + | local mesh = CHILD:FindFirstChildOfClass("Decal") |
1215 | mesh:remove() | |
1216 | end | |
1217 | if CHILD.ClassName == "MeshPart" then | |
1218 | CHILD.TextureID = "" | |
1219 | - | function Eon_Anatomy() |
1219 | + | |
1220 | if CHILD.ClassName == "UnionOperation" then | |
1221 | CHILD.UsePartColor = true | |
1222 | end | |
1223 | CHILD.CanCollide = true | |
1224 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1224 | + | |
1225 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1225 | + | |
1226 | Debris:AddItem(STONEMODEL, 5) | |
1227 | end | |
1228 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1228 | + | function Intro() |
1229 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1229 | + | |
1230 | INTROING = true | |
1231 | Rooted = true | |
1232 | sick:Play() | |
1233 | FINISHEDINTRO = true | |
1234 | Head.Transparency = 1 | |
1235 | Torso.Transparency = 1 | |
1236 | LeftArm.Transparency = 1 | |
1237 | RightArm.Transparency = 1 | |
1238 | LeftLeg.Transparency = 1 | |
1239 | RightLeg.Transparency = 1 | |
1240 | repeat | |
1241 | Swait() | |
1242 | until sick.TimePosition > 3.2 | |
1243 | - | if Key == "z" and ATTACK == false then |
1243 | + | |
1244 | - | Extreme_Offset() |
1244 | + | |
1245 | EffectType = "Sphere", | |
1246 | - | if Key == "b" and ATTACK == false then |
1246 | + | Size = VT(3, 3, 3), |
1247 | - | Eon_Fire() |
1247 | + | Size2 = VT(0, 5, 0), |
1248 | Transparency = 0.5, | |
1249 | - | if Key ~= "c" or ATTACK == false then |
1249 | + | |
1250 | CFrame = Torso.CFrame, | |
1251 | - | if Key ~= "v" or ATTACK == false then |
1251 | + | MoveToPos = Torso.CFrame * CF(15, -5 + i * 3, 1).p, |
1252 | RotationX = MRANDOM(-5, 5), | |
1253 | - | if Key ~= "x" or ATTACK == false then |
1253 | + | RotationY = MRANDOM(-5, 5), |
1254 | RotationZ = MRANDOM(-5, 5), | |
1255 | Material = "Neon", | |
1256 | Color = C3(1, 0, 0), | |
1257 | SoundID = nil, | |
1258 | SoundPitch = nil, | |
1259 | SoundVolume = nil | |
1260 | }) | |
1261 | end | |
1262 | RightWing() | |
1263 | repeat | |
1264 | Swait() | |
1265 | until sick.TimePosition > 6.2 | |
1266 | for i = 1, 5 do | |
1267 | WACKYEFFECT({ | |
1268 | EffectType = "Sphere", | |
1269 | Size = VT(3, 3, 3), | |
1270 | Size2 = VT(0, 5, 0), | |
1271 | Transparency = 0.5, | |
1272 | Transparency2 = 1, | |
1273 | CFrame = Torso.CFrame, | |
1274 | MoveToPos = Torso.CFrame * CF(-15, -5 + i * 3, 1).p, | |
1275 | RotationX = MRANDOM(-5, 5), | |
1276 | RotationY = MRANDOM(-5, 5), | |
1277 | RotationZ = MRANDOM(-5, 5), | |
1278 | Material = "Neon", | |
1279 | Color = C3(1, 0, 0), | |
1280 | SoundID = nil, | |
1281 | SoundPitch = nil, | |
1282 | SoundVolume = nil | |
1283 | }) | |
1284 | end | |
1285 | LeftWing() | |
1286 | repeat | |
1287 | Swait() | |
1288 | until sick.TimePosition > 16 | |
1289 | for i = 1, 6 do | |
1290 | WACKYEFFECT({ | |
1291 | EffectType = "Sphere", | |
1292 | Size = VT(1.5, 1.5, 1.5), | |
1293 | Size2 = VT(4, 4, 4) * i, | |
1294 | Transparency = 0, | |
1295 | - | for T = 1, #TAIL do |
1295 | + | |
1296 | - | if TAIL[T] ~= nil then |
1296 | + | CFrame = Head.CFrame, |
1297 | - | TAIL[T].C1 = Clerp(TAIL[T].C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(3.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
1297 | + | |
1298 | RotationX = 0, | |
1299 | RotationY = 0, | |
1300 | RotationZ = 0, | |
1301 | Material = "Neon", | |
1302 | Color = C3(1, 0, 0), | |
1303 | - | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character) |
1303 | + | |
1304 | SoundPitch = nil, | |
1305 | - | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
1305 | + | |
1306 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1306 | + | |
1307 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1307 | + | |
1308 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), -0.125 * COS(SINE / WALKSPEEDVALUE) + 0.2 + 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1308 | + | Head.Transparency = 0 |
1309 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.125 * COS(SINE / WALKSPEEDVALUE) + 0.2 + -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1309 | + | Face() |
1310 | - | elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then |
1310 | + | |
1311 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1311 | + | for i = 1, 100 do |
1312 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1312 | + | |
1313 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1313 | + | Torso.Transparency = 1 - i / 100 |
1314 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1314 | + | LeftArm.Transparency = 1 - i / 100 |
1315 | RightArm.Transparency = 1 - i / 100 | |
1316 | - | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
1316 | + | LeftLeg.Transparency = 1 - i / 100 |
1317 | - | ANIM = "Jump" |
1317 | + | RightLeg.Transparency = 1 - i / 100 |
1318 | - | if ATTACK == false then |
1318 | + | |
1319 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1319 | + | FINISHEDINTRO = true |
1320 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1320 | + | |
1321 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
1321 | + | |
1322 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
1322 | + | |
1323 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
1323 | + | function Neck_Snap() |
1324 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) |
1324 | + | |
1325 | Rooted = false | |
1326 | - | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
1326 | + | local TARGET, HUM, WLD |
1327 | - | ANIM = "Fall" |
1327 | + | local HIT = RightArm.Touched:Connect(function(hit) |
1328 | - | if ATTACK == false then |
1328 | + | if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then |
1329 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1329 | + | local H = hit.Parent:FindFirstChildOfClass("Humanoid") |
1330 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1330 | + | if H.Health > 0 then |
1331 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
1331 | + | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") |
1332 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
1332 | + | if TORSO then |
1333 | HUM = H | |
1334 | TARGET = TORSO | |
1335 | H.PlatformStand = true | |
1336 | - | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
1336 | + | CreateSound("260411131", TORSO, 10, 1) |
1337 | - | ANIM = "Idle" |
1337 | + | WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1338 | - | if ATTACK == false then |
1338 | + | |
1339 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) |
1339 | + | |
1340 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) |
1340 | + | |
1341 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1341 | + | end) |
1342 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1342 | + | |
1343 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1343 | + | |
1344 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1344 | + | if TARGET ~= nil then |
1345 | break | |
1346 | - | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
1346 | + | |
1347 | - | ANIM = "Walk" |
1347 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) |
1348 | - | if ATTACK == false then |
1348 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) |
1349 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) |
1349 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1350 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) |
1350 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1351 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) |
1351 | + | if ANIM == "Idle" then |
1352 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.8 / Animation_Speed) |
1352 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1353 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) |
1353 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1354 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) |
1354 | + | elseif ANIM == "Walk" then |
1355 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1356 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1357 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1358 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1359 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1360 | end | |
1361 | end | |
1362 | HIT:disconnect() | |
1363 | if TARGET ~= nil then | |
1364 | if TARGET.Name == "Torso" then | |
1365 | for i = 0, 2, 0.1 / Animation_Speed do | |
1366 | Swait() | |
1367 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1368 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1369 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1370 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1371 | if ANIM == "Idle" then | |
1372 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1373 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1374 | - | sick.Volume = 1 |
1374 | + | elseif ANIM == "Walk" then |
1375 | - | sick.Pitch = 0.9 |
1375 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1376 | - | if Head:FindFirstChild("face") and ATTACK == false then |
1376 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1377 | - | Head.face.Texture = "rbxassetid://429340009" |
1377 | + | elseif ANIM == "Jump" or ANIM == "Fall" then |
1378 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1379 | - | Humanoid.Name = MRANDOM(100000000, 999999999) |
1379 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) |
1380 | end | |
1381 | end | |
1382 | WLD:remove() | |
1383 | local HEAD = TARGET.Parent:FindFirstChild("Head") | |
1384 | if HEAD then | |
1385 | UNANCHOR = false | |
1386 | RootPart.Anchored = true | |
1387 | local HD = HEAD:Clone() | |
1388 | HD.Name = "FakeHead" | |
1389 | for i = 1, 7 do | |
1390 | SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15) | |
1391 | end | |
1392 | local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0) | |
1393 | local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1394 | HD.Parent = RAGDOLL | |
1395 | CreateSound("264486467", RAGTORSO, 10, 1) | |
1396 | local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1397 | for i = 0, 2, 0.1 / Animation_Speed do | |
1398 | Swait() | |
1399 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1400 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1401 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1402 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1403 | if ANIM == "Idle" then | |
1404 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1405 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1406 | elseif ANIM == "Walk" then | |
1407 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1408 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1409 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1410 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1411 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1412 | end | |
1413 | end | |
1414 | HEADWELD:remove() | |
1415 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1416 | Swait() | |
1417 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1418 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1419 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1420 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1421 | if ANIM == "Idle" then | |
1422 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1423 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1424 | elseif ANIM == "Walk" then | |
1425 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1426 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1427 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1428 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1429 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1430 | end | |
1431 | end | |
1432 | CreateSound("907333406", Torso, 10, 1) | |
1433 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
1434 | Swait() | |
1435 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1436 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1437 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1438 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1439 | if ANIM == "Idle" then | |
1440 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1441 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1442 | elseif ANIM == "Walk" then | |
1443 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1444 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1445 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1446 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1447 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1448 | end | |
1449 | end | |
1450 | RAGWELD:remove() | |
1451 | local bv = Instance.new("BodyVelocity") | |
1452 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1453 | bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75 | |
1454 | bv.Parent = RAGTORSO | |
1455 | Debris:AddItem(bv, 0.05) | |
1456 | Debris:AddItem(RAGDOLL, 5) | |
1457 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
1458 | Swait() | |
1459 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1460 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1461 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1462 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1463 | if ANIM == "Idle" then | |
1464 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1465 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1466 | elseif ANIM == "Walk" then | |
1467 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1468 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1469 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1470 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1471 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1472 | end | |
1473 | end | |
1474 | UNANCHOR = true | |
1475 | RootPart.Anchored = false | |
1476 | end | |
1477 | else | |
1478 | UNANCHOR = false | |
1479 | RootPart.Anchored = true | |
1480 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1481 | Swait() | |
1482 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1483 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1484 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1485 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1486 | if ANIM == "Idle" then | |
1487 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1488 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1489 | elseif ANIM == "Walk" then | |
1490 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1491 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1492 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1493 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1494 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1495 | end | |
1496 | end | |
1497 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
1498 | Swait() | |
1499 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1500 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1501 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1502 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1503 | if ANIM == "Idle" then | |
1504 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1505 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1506 | elseif ANIM == "Walk" then | |
1507 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1508 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1509 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1510 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1511 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1512 | end | |
1513 | end | |
1514 | WLD:remove() | |
1515 | TARGET.Parent:BreakJoints() | |
1516 | for _, c in pairs(TARGET.Parent:GetChildren()) do | |
1517 | if c:IsA("BasePart") then | |
1518 | local bv = Instance.new("BodyVelocity") | |
1519 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1520 | bv.velocity = CF(Torso.Position, c.Position).lookVector * 75 | |
1521 | bv.Parent = c | |
1522 | Debris:AddItem(bv, 0.05) | |
1523 | end | |
1524 | end | |
1525 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
1526 | Swait() | |
1527 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1528 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1529 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1530 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1531 | if ANIM == "Idle" then | |
1532 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1534 | elseif ANIM == "Walk" then | |
1535 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1536 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1537 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1538 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1539 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1540 | end | |
1541 | end | |
1542 | UNANCHOR = true | |
1543 | RootPart.Anchored = false | |
1544 | end | |
1545 | end | |
1546 | ATTACK = false | |
1547 | Rooted = false | |
1548 | end | |
1549 | function Imperfect_Command() | |
1550 | ATTACK = true | |
1551 | Rooted = true | |
1552 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1553 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1554 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1555 | if TORSO then | |
1556 | local GYRO = IT("BodyGyro", RootPart) | |
1557 | GYRO.D = 750 | |
1558 | GYRO.P = 2000 | |
1559 | GYRO.MaxTorque = VT(0, 40000, 0) | |
1560 | CreateSound("907330103", Torso, 10, 1) | |
1561 | for i = 0, 1.6, 0.1 / Animation_Speed do | |
1562 | Swait() | |
1563 | WACKYEFFECT({ | |
1564 | Time = 5, | |
1565 | EffectType = "Round Slash", | |
1566 | Size = VT(0, 0, 0), | |
1567 | Size2 = VT(0.01, 0, 0.01), | |
1568 | Transparency = 0.5, | |
1569 | Transparency2 = 1, | |
1570 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1571 | MoveToPos = nil, | |
1572 | RotationX = MRANDOM(-50, 50) / 10, | |
1573 | RotationY = MRANDOM(-50, 50) / 10, | |
1574 | RotationZ = MRANDOM(-50, 50) / 10, | |
1575 | Material = "Neon", | |
1576 | Color = C3(1, 0, 0), | |
1577 | SoundID = nil, | |
1578 | SoundPitch = nil, | |
1579 | SoundVolume = nil | |
1580 | }) | |
1581 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
1582 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed) | |
1583 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed) | |
1584 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1585 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1586 | if ANIM == "Idle" then | |
1587 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1588 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1589 | elseif ANIM == "Walk" then | |
1590 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1591 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1592 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1593 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1594 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1595 | end | |
1596 | end | |
1597 | GYRO:remove() | |
1598 | for i = 1, 15 do | |
1599 | WACKYEFFECT({ | |
1600 | Time = MRANDOM(15, 85), | |
1601 | EffectType = "Round Slash", | |
1602 | Size = VT(0, 0, 0), | |
1603 | Size2 = VT(0.3, 0, 0.3), | |
1604 | Transparency = 0.5, | |
1605 | Transparency2 = 1, | |
1606 | CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1607 | MoveToPos = nil, | |
1608 | RotationX = MRANDOM(-50, 50) / 10, | |
1609 | RotationY = MRANDOM(-50, 50) / 10, | |
1610 | RotationZ = MRANDOM(-50, 50) / 10, | |
1611 | Material = "Neon", | |
1612 | Color = C3(1, 0, 0), | |
1613 | SoundID = nil, | |
1614 | SoundPitch = nil, | |
1615 | SoundVolume = nil | |
1616 | }) | |
1617 | end | |
1618 | local bv = Instance.new("BodyVelocity") | |
1619 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1620 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
1621 | bv.Parent = TORSO | |
1622 | Debris:AddItem(bv, 0.05) | |
1623 | CreateSound("1222405264", TORSO, 10, 1) | |
1624 | Petrify(HUM.Parent) | |
1625 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1626 | Swait() | |
1627 | WACKYEFFECT({ | |
1628 | Time = 5, | |
1629 | EffectType = "Round Slash", | |
1630 | Size = VT(0, 0, 0), | |
1631 | Size2 = VT(0.01, 0, 0.01), | |
1632 | Transparency = 0.5, | |
1633 | Transparency2 = 1, | |
1634 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1635 | MoveToPos = nil, | |
1636 | RotationX = MRANDOM(-50, 50) / 10, | |
1637 | RotationY = MRANDOM(-50, 50) / 10, | |
1638 | RotationZ = MRANDOM(-50, 50) / 10, | |
1639 | Material = "Neon", | |
1640 | Color = C3(1, 0, 0), | |
1641 | SoundID = nil, | |
1642 | SoundPitch = nil, | |
1643 | SoundVolume = nil | |
1644 | }) | |
1645 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
1646 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
1647 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed) | |
1648 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1649 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1650 | if ANIM == "Idle" then | |
1651 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1652 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1653 | elseif ANIM == "Walk" then | |
1654 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1655 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1656 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1657 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1658 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1659 | end | |
1660 | end | |
1661 | end | |
1662 | end | |
1663 | ATTACK = false | |
1664 | Rooted = false | |
1665 | end | |
1666 | function Fire_At_Will() | |
1667 | ATTACK = true | |
1668 | Rooted = false | |
1669 | local GYRO = IT("BodyGyro", RootPart) | |
1670 | GYRO.D = 750 | |
1671 | GYRO.P = 2000 | |
1672 | GYRO.MaxTorque = VT(0, 40000, 0) | |
1673 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
1674 | Swait() | |
1675 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
1676 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1677 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
1678 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1679 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1680 | if ANIM == "Idle" then | |
1681 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1682 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1683 | elseif ANIM == "Walk" then | |
1684 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1685 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1686 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1687 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1688 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1689 | end | |
1690 | end | |
1691 | local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "Burgundy", "Sphere", VT(1, 1, 1), false) | |
1692 | MakeForm(BOMB, "Ball") | |
1693 | BOMB.Mesh.Scale = VT(0.5, 0.5, 0.5) | |
1694 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BOMB, CF(0, -2, 0), CF(0, 0, 0)) | |
1695 | for i = 0, 1.5, 0.1 / Animation_Speed do | |
1696 | Swait() | |
1697 | if MRANDOM(1, 2) == 1 then | |
1698 | for E = 1, #EYES do | |
1699 | if EYES[E] ~= nil then | |
1700 | local EY = EYES[E] | |
1701 | local LIGHTNING = Zap({ | |
1702 | StartPosition = EY.Position, | |
1703 | TargetPosition = BOMB.Position, | |
1704 | Character = Character, | |
1705 | Color = "Burgundy", | |
1706 | Individual = false, | |
1707 | MaxRange = 7, | |
1708 | SegmentLength = 1, | |
1709 | Offset = 0.3, | |
1710 | SIZE = 0.05 | |
1711 | }) | |
1712 | Debris:AddItem(LIGHTNING.LightningModel, 0.05) | |
1713 | end | |
1714 | end | |
1715 | end | |
1716 | BOMB.Mesh.Scale = BOMB.Mesh.Scale + VT(0.1, 0.1, 0.1) | |
1717 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
1718 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1719 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
1720 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1721 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1722 | if ANIM == "Idle" then | |
1723 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1724 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1725 | elseif ANIM == "Walk" then | |
1726 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1727 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1728 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1729 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1730 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1731 | end | |
1732 | end | |
1733 | WACKYEFFECT({ | |
1734 | Time = 25, | |
1735 | EffectType = "Ring", | |
1736 | Size = VT(0, 0, 0), | |
1737 | Size2 = VT(3.75, 3.75, 0), | |
1738 | Transparency = 0.7, | |
1739 | Transparency2 = 1, | |
1740 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
1741 | MoveToPos = nil, | |
1742 | RotationX = 0, | |
1743 | RotationY = 0, | |
1744 | RotationZ = 0, | |
1745 | Material = "Neon", | |
1746 | Color = BOMB.Color, | |
1747 | SoundID = nil, | |
1748 | SoundPitch = nil, | |
1749 | SoundVolume = nil | |
1750 | }) | |
1751 | WACKYEFFECT({ | |
1752 | Time = 50, | |
1753 | EffectType = "Ring", | |
1754 | Size = VT(0, 0, 0), | |
1755 | Size2 = VT(15, 15, 0), | |
1756 | Transparency = 0.7, | |
1757 | Transparency2 = 1, | |
1758 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
1759 | MoveToPos = nil, | |
1760 | RotationX = 0, | |
1761 | RotationY = 0, | |
1762 | RotationZ = 0, | |
1763 | Material = "Neon", | |
1764 | Color = BOMB.Color, | |
1765 | SoundID = nil, | |
1766 | SoundPitch = nil, | |
1767 | SoundVolume = nil | |
1768 | }) | |
1769 | BOMB.Anchored = true | |
1770 | WELD:remove() | |
1771 | GYRO:remove() | |
1772 | coroutine.resume(coroutine.create(function() | |
1773 | BOMB.CFrame = CF(BOMB.Position, Mouse.Hit.p) | |
1774 | for i = 1, 500 do | |
1775 | Swait() | |
1776 | BOMB.CFrame = BOMB.CFrame * CF(0, 0, -2) | |
1777 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2.2, Character) | |
1778 | if HITFLOOR ~= nil then | |
1779 | break | |
1780 | end | |
1781 | end | |
1782 | ApplyAoE(BOMB.Position, 75, 0, 0, 0, true) | |
1783 | for i = 1, 3 do | |
1784 | WACKYEFFECT({ | |
1785 | Time = 35, | |
1786 | EffectType = "Swirl", | |
1787 | Size = VT(0, 0, 0), | |
1788 | Size2 = VT(150, 225, 150) + VT(5, 15, 5) * i, | |
1789 | Transparency = 0, | |
1790 | Transparency2 = 1, | |
1791 | CFrame = BOMB.CFrame, | |
1792 | MoveToPos = nil, | |
1793 | RotationX = 0, | |
1794 | RotationY = 5 * i, | |
1795 | RotationZ = 0, | |
1796 | Material = "Neon", | |
1797 | Color = BOMB.Color, | |
1798 | SoundID = nil, | |
1799 | SoundPitch = nil, | |
1800 | SoundVolume = nil | |
1801 | }) | |
1802 | end | |
1803 | for i = 1, 5 do | |
1804 | WACKYEFFECT({ | |
1805 | Time = 75, | |
1806 | EffectType = "Sphere", | |
1807 | Size = BOMB.Mesh.Scale, | |
1808 | Size2 = VT(25, 25, 25) * i, | |
1809 | Transparency = 0.5, | |
1810 | Transparency2 = 1, | |
1811 | CFrame = BOMB.CFrame, | |
1812 | MoveToPos = nil, | |
1813 | RotationX = 0, | |
1814 | RotationY = 0, | |
1815 | RotationZ = 0, | |
1816 | Material = "Neon", | |
1817 | Color = BOMB.Color, | |
1818 | SoundID = 1222405264, | |
1819 | SoundPitch = 1, | |
1820 | SoundVolume = 10 | |
1821 | }) | |
1822 | end | |
1823 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, CF(BOMB.Position + VT(0, 1, 0), BOMB.Position - VT(0, 1, 0)).lookVector, 15, Character) | |
1824 | if HITFLOOR then | |
1825 | CreateDebreeRing(HITFLOOR, HITPOS, 15, VT(8, 8, 8), 5) | |
1826 | end | |
1827 | BOMB.Transparency = 1 | |
1828 | for i = 1, 35 do | |
1829 | Swait() | |
1830 | CreateFlyingDebree(BOMB, CF(BOMB.Position), 1, VT(0.5, 0.5, 0.5), 5, 150) | |
1831 | end | |
1832 | BOMB:remove() | |
1833 | end)) | |
1834 | ATTACK = false | |
1835 | Rooted = false | |
1836 | end | |
1837 | function Imperfect_Storm() | |
1838 | ATTACK = true | |
1839 | Rooted = false | |
1840 | for i = 0, 1, 0.1 / Animation_Speed do | |
1841 | Swait() | |
1842 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1843 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1844 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1845 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1846 | if ANIM == "Idle" then | |
1847 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1848 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1849 | elseif ANIM == "Walk" then | |
1850 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1851 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1852 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1853 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1854 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1855 | end | |
1856 | end | |
1857 | ATTACK = false | |
1858 | Rooted = false | |
1859 | end | |
1860 | function MouseDown(Mouse) | |
1861 | if ATTACK == false then | |
1862 | end | |
1863 | end | |
1864 | function MouseUp(Mouse) | |
1865 | HOLD = false | |
1866 | end | |
1867 | function KeyDown(Key) | |
1868 | KEYHOLD = true | |
1869 | if FINISHEDINTRO == true then | |
1870 | if Key == "z" and ATTACK == false then | |
1871 | Neck_Snap() | |
1872 | end | |
1873 | if Key == "b" and ATTACK == false then | |
1874 | Imperfect_Command() | |
1875 | end | |
1876 | if Key == "c" and ATTACK == false then | |
1877 | Fire_At_Will() | |
1878 | end | |
1879 | if Key ~= "v" or ATTACK == false then | |
1880 | end | |
1881 | if Key ~= "x" or ATTACK == false then | |
1882 | end | |
1883 | end | |
1884 | end | |
1885 | function KeyUp(Key) | |
1886 | KEYHOLD = false | |
1887 | end | |
1888 | Mouse.Button1Down:connect(function(NEWKEY) | |
1889 | MouseDown(NEWKEY) | |
1890 | end) | |
1891 | Mouse.Button1Up:connect(function(NEWKEY) | |
1892 | MouseUp(NEWKEY) | |
1893 | end) | |
1894 | Mouse.KeyDown:connect(function(NEWKEY) | |
1895 | KeyDown(NEWKEY) | |
1896 | end) | |
1897 | Mouse.KeyUp:connect(function(NEWKEY) | |
1898 | KeyUp(NEWKEY) | |
1899 | end) | |
1900 | function unanchor() | |
1901 | if UNANCHOR == true then | |
1902 | RootPart.Anchored = false | |
1903 | end | |
1904 | local CHILDREN = Character:GetDescendants() | |
1905 | for index, CHILD in pairs(CHILDREN) do | |
1906 | if CHILD:IsA("BasePart") and CHILD ~= RootPart and CHILD.Parent ~= Effects and CHILD.Parent.Parent ~= Effects then | |
1907 | CHILD.Anchored = false | |
1908 | end | |
1909 | end | |
1910 | end | |
1911 | Humanoid.Changed:connect(function(Jump) | |
1912 | if Jump == "Jump" and Disable_Jump == true then | |
1913 | Humanoid.Jump = false | |
1914 | end | |
1915 | end) | |
1916 | while true do | |
1917 | Swait() | |
1918 | script.Parent = WEAPONGUI | |
1919 | ANIMATE.Parent = nil | |
1920 | if Humanoid then | |
1921 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1922 | IDLEANIMATION:Play() | |
1923 | end | |
1924 | for RW = 1, #RWINGS do | |
1925 | if RWINGS[RW] ~= nil then | |
1926 | RWINGS[RW].C1 = Clerp(RWINGS[RW].C1, CF(-0.25 + 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 + 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
1927 | end | |
1928 | end | |
1929 | for LW = 1, #LWINGS do | |
1930 | if LWINGS[LW] ~= nil then | |
1931 | LWINGS[LW].C1 = Clerp(LWINGS[LW].C1, CF(0.25 - 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 - 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
1932 | end | |
1933 | end | |
1934 | SINE = SINE + CHANGE | |
1935 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1936 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1937 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 + Humanoid.HipHeight, Character) | |
1938 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1939 | if FINISHEDINTRO == true then | |
1940 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1941 | ANIM = "Jump" | |
1942 | if ATTACK == false then | |
1943 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1944 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1945 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1946 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1947 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1948 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1949 | end | |
1950 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1951 | ANIM = "Fall" | |
1952 | if ATTACK == false then | |
1953 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1954 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1955 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1956 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1957 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1958 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1959 | end | |
1960 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1961 | ANIM = "Idle" | |
1962 | if ATTACK == false then | |
1963 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1964 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
1965 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1966 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1967 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1968 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1969 | end | |
1970 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1971 | ANIM = "Walk" | |
1972 | if ATTACK == false then | |
1973 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 22)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 22)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1974 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 22)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
1975 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 22)), RAD(15 + 7.5 * SIN(SINE / 22))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1976 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 22)), RAD(-15 - 7.5 * SIN(SINE / 22))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1977 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1978 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1979 | end | |
1980 | end | |
1981 | if TORSOVELOCITY > 1 then | |
1982 | Humanoid.HipHeight = 1 | |
1983 | else | |
1984 | Humanoid.HipHeight = 0 | |
1985 | end | |
1986 | elseif FINISHEDINTRO == false then | |
1987 | Humanoid.HipHeight = 0 | |
1988 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1989 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1990 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1991 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1992 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1993 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1994 | end | |
1995 | unanchor() | |
1996 | Humanoid.MaxHealth = "inf" | |
1997 | Humanoid.Health = "inf" | |
1998 | if Rooted == false then | |
1999 | Disable_Jump = false | |
2000 | Humanoid.WalkSpeed = Speed | |
2001 | elseif Rooted == true then | |
2002 | Disable_Jump = true | |
2003 | Humanoid.WalkSpeed = 0 | |
2004 | end | |
2005 | sick.Parent = Torso | |
2006 | sick.Playing = true | |
2007 | sick.Volume = 3 | |
2008 | sick.Pitch = 1 | |
2009 | BLINKLOOP = BLINKLOOP + 1 | |
2010 | if BLINKLOOP >= 650 then | |
2011 | BLINKLOOP = 0 | |
2012 | Blink() | |
2013 | end | |
2014 | if Character:FindFirstChildOfClass("Accessory") then | |
2015 | Character:FindFirstChildOfClass("Accessory"):remove() | |
2016 | end | |
2017 | if Head:FindFirstChildOfClass("Sound") then | |
2018 | Head:FindFirstChildOfClass("Sound"):remove() | |
2019 | end | |
2020 | if INTROING == false and FINISHEDINTRO == false then | |
2021 | if INSTANT == false then | |
2022 | Intro() | |
2023 | else | |
2024 | FINISHEDINTRO = true | |
2025 | Face() | |
2026 | RightWing() | |
2027 | LeftWing() | |
2028 | end | |
2029 | end | |
2030 | if Head:FindFirstChild("face") then | |
2031 | Head.face:remove() | |
2032 | end | |
2033 | refit() | |
2034 | Humanoid.PlatformStand = false | |
2035 | end |