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 | FacialShadow() | |
6 | Player = game:GetService("Players").LocalPlayer | |
7 | PlayerGui = Player.PlayerGui | |
8 | Cam = workspace.CurrentCamera | |
9 | Backpack = Player.Backpack | |
10 | Character = Player.Character | |
11 | Humanoid = Character.Humanoid | |
12 | Mouse = Player:GetMouse() | |
13 | RootPart = Character.HumanoidRootPart | |
14 | Torso = Character.Torso | |
15 | Head = Character.Head | |
16 | RightArm = Character["Right Arm"] | |
17 | LeftArm = Character["Left Arm"] | |
18 | RightLeg = Character["Right Leg"] | |
19 | LeftLeg = Character["Left Leg"] | |
20 | RootJoint = RootPart.RootJoint | |
21 | Neck = Torso.Neck | |
22 | RightShoulder = Torso["Right Shoulder"] | |
23 | LeftShoulder = Torso["Left Shoulder"] | |
24 | RightHip = Torso["Right Hip"] | |
25 | LeftHip = Torso["Left Hip"] | |
26 | local sick = Instance.new("Sound", Character) | |
27 | IT = Instance.new | |
28 | CF = CFrame.new | |
29 | VT = Vector3.new | |
30 | RAD = math.rad | |
31 | C3 = Color3.new | |
32 | UD2 = UDim2.new | |
33 | BRICKC = BrickColor.new | |
34 | ANGLES = CFrame.Angles | |
35 | EULER = CFrame.fromEulerAnglesXYZ | |
36 | COS = math.cos | |
37 | ACOS = math.acos | |
38 | SIN = math.sin | |
39 | ASIN = math.asin | |
40 | ABS = math.abs | |
41 | MRANDOM = math.random | |
42 | FLOOR = math.floor | |
43 | Animation_Speed = 3 | |
44 | Frame_Speed = 0.016666666666666666 | |
45 | local Speed = 16 | |
46 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
47 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
48 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
49 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
50 | local DAMAGEMULTIPLIER = 1 | |
51 | local ANIM = "Idle" | |
52 | local ATTACK = false | |
53 | local EQUIPPED = false | |
54 | local HOLD = false | |
55 | local COMBO = 1 | |
56 | local Rooted = false | |
57 | local SINE = 0 | |
58 | local KEYHOLD = false | |
59 | local CHANGE = 2 / Animation_Speed | |
60 | local WALKINGANIM = false | |
61 | local VALUE1 = false | |
62 | local VALUE2 = false | |
63 | local ROBLOXIDLEANIMATION = IT("Animation") | |
64 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
65 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
66 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
67 | WEAPONGUI.Name = "Weapon GUI" | |
68 | script.Parent = WEAPONGUI | |
69 | Character.Archivable = true | |
70 | local SHADOW = Character:Clone() | |
71 | SHADOW.Parent = nil | |
72 | RootPart2 = SHADOW.HumanoidRootPart | |
73 | Torso2 = SHADOW.Torso | |
74 | Head2 = SHADOW.Head | |
75 | RightArm2 = SHADOW["Right Arm"] | |
76 | LeftArm2 = SHADOW["Left Arm"] | |
77 | RightLeg2 = SHADOW["Right Leg"] | |
78 | LeftLeg2 = SHADOW["Left Leg"] | |
79 | RootJoint2 = RootPart2.RootJoint | |
80 | Neck2 = Torso2.Neck | |
81 | RightShoulder2 = Torso2["Right Shoulder"] | |
82 | LeftShoulder2 = Torso2["Left Shoulder"] | |
83 | RightHip2 = Torso2["Right Hip"] | |
84 | LeftHip2 = Torso2["Left Hip"] | |
85 | SHADOW.PrimaryPart = RootPart2 | |
86 | Character.Archivable = false | |
87 | SHADOW.Name = Player.Name .. "'s War" | |
88 | local Effects = IT("Folder", Character) | |
89 | Effects.Name = "Effects" | |
90 | local ANIMATOR = Humanoid.Animator | |
91 | local ANIMATE = Character.Animate | |
92 | local UNANCHOR = true | |
93 | local ROAR = 528589078 | |
94 | local E = 1.32 | |
95 | local PLAYSONG = true | |
96 | local REPLAY = false | |
97 | ArtificialHB = Instance.new("BindableEvent", script) | |
98 | ArtificialHB.Name = "ArtificialHB" | |
99 | script:WaitForChild("ArtificialHB") | |
100 | frame = Frame_Speed | |
101 | tf = 0 | |
102 | allowframeloss = false | |
103 | tossremainder = false | |
104 | lastframe = tick() | |
105 | script.ArtificialHB:Fire() | |
106 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
107 | tf = tf + s | |
108 | if tf >= frame then | |
109 | if allowframeloss then | |
110 | script.ArtificialHB:Fire() | |
111 | lastframe = tick() | |
112 | else | |
113 | for i = 1, math.floor(tf / frame) do | |
114 | script.ArtificialHB:Fire() | |
115 | end | |
116 | lastframe = tick() | |
117 | end | |
118 | if tossremainder then | |
119 | tf = 0 | |
120 | else | |
121 | tf = tf - frame * math.floor(tf / frame) | |
122 | end | |
123 | end | |
124 | end) | |
125 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
126 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
127 | end | |
128 | function PositiveAngle(NUMBER) | |
129 | if NUMBER >= 0 then | |
130 | NUMBER = 0 | |
131 | end | |
132 | return NUMBER | |
133 | end | |
134 | function NegativeAngle(NUMBER) | |
135 | if NUMBER <= 0 then | |
136 | NUMBER = 0 | |
137 | end | |
138 | return NUMBER | |
139 | end | |
140 | function Swait(NUMBER) | |
141 | if NUMBER == 0 or NUMBER == nil then | |
142 | ArtificialHB.Event:wait() | |
143 | else | |
144 | for i = 1, NUMBER do | |
145 | ArtificialHB.Event:wait() | |
146 | end | |
147 | end | |
148 | end | |
149 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
150 | local NEWMESH = IT(MESH) | |
151 | if MESH == "SpecialMesh" then | |
152 | NEWMESH.MeshType = MESHTYPE | |
153 | if MESHID ~= "nil" and MESHID ~= "" then | |
154 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
155 | end | |
156 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
157 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
158 | end | |
159 | end | |
160 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
161 | NEWMESH.Scale = SCALE | |
162 | NEWMESH.Parent = PARENT | |
163 | return NEWMESH | |
164 | end | |
165 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
166 | local NEWPART = IT("Part") | |
167 | NEWPART.formFactor = FORMFACTOR | |
168 | NEWPART.Reflectance = REFLECTANCE | |
169 | NEWPART.Transparency = TRANSPARENCY | |
170 | NEWPART.CanCollide = false | |
171 | NEWPART.Locked = true | |
172 | NEWPART.Anchored = true | |
173 | if ANCHOR == false then | |
174 | NEWPART.Anchored = false | |
175 | end | |
176 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
177 | NEWPART.Name = NAME | |
178 | NEWPART.Size = SIZE | |
179 | NEWPART.Position = Torso.Position | |
180 | NEWPART.Material = MATERIAL | |
181 | NEWPART:BreakJoints() | |
182 | NEWPART.Parent = PARENT | |
183 | return NEWPART | |
184 | end | |
185 | local weldBetween = function(a, b) | |
186 | local weldd = Instance.new("ManualWeld") | |
187 | weldd.Part0 = a | |
188 | weldd.Part1 = b | |
189 | weldd.C0 = CFrame.new() | |
190 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
191 | weldd.Parent = a | |
192 | return weldd | |
193 | end | |
194 | function QuaternionFromCFrame(cf) | |
195 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
196 | local trace = m00 + m11 + m22 | |
197 | if trace > 0 then | |
198 | local s = math.sqrt(1 + trace) | |
199 | local recip = 0.5 / s | |
200 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
201 | else | |
202 | local i = 0 | |
203 | if m00 < m11 then | |
204 | i = 1 | |
205 | end | |
206 | if m22 > (i == 0 and m00 or m11) then | |
207 | i = 2 | |
208 | end | |
209 | if i == 0 then | |
210 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
211 | local recip = 0.5 / s | |
212 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
213 | elseif i == 1 then | |
214 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
215 | local recip = 0.5 / s | |
216 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
217 | elseif i == 2 then | |
218 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
219 | local recip = 0.5 / s | |
220 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
221 | end | |
222 | end | |
223 | end | |
224 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
225 | local xs, ys, zs = x + x, y + y, z + z | |
226 | local wx, wy, wz = w * xs, w * ys, w * zs | |
227 | local xx = x * xs | |
228 | local xy = x * ys | |
229 | local xz = x * zs | |
230 | local yy = y * ys | |
231 | local yz = y * zs | |
232 | local zz = z * zs | |
233 | 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)) | |
234 | end | |
235 | function QuaternionSlerp(a, b, t) | |
236 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
237 | local startInterp, finishInterp | |
238 | if cosTheta >= 1.0E-4 then | |
239 | if 1 - cosTheta > 1.0E-4 then | |
240 | local theta = ACOS(cosTheta) | |
241 | local invSinTheta = 1 / SIN(theta) | |
242 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
243 | finishInterp = SIN(t * theta) * invSinTheta | |
244 | else | |
245 | startInterp = 1 - t | |
246 | finishInterp = t | |
247 | end | |
248 | elseif 1 + cosTheta > 1.0E-4 then | |
249 | local theta = ACOS(-cosTheta) | |
250 | local invSinTheta = 1 / SIN(theta) | |
251 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
252 | finishInterp = SIN(t * theta) * invSinTheta | |
253 | else | |
254 | startInterp = t - 1 | |
255 | finishInterp = t | |
256 | end | |
257 | 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 | |
258 | end | |
259 | function Clerp(a, b, t) | |
260 | local qa = { | |
261 | QuaternionFromCFrame(a) | |
262 | } | |
263 | local qb = { | |
264 | QuaternionFromCFrame(b) | |
265 | } | |
266 | local ax, ay, az = a.x, a.y, a.z | |
267 | local bx, by, bz = b.x, b.y, b.z | |
268 | local _t = 1 - t | |
269 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
270 | end | |
271 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
272 | local frame = IT("Frame") | |
273 | frame.BackgroundTransparency = TRANSPARENCY | |
274 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
275 | frame.Position = POSITION | |
276 | frame.Size = SIZE | |
277 | frame.BackgroundColor3 = COLOR | |
278 | frame.BorderColor3 = BORDERCOLOR | |
279 | frame.Name = NAME | |
280 | frame.Parent = PARENT | |
281 | return frame | |
282 | end | |
283 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
284 | local label = IT("TextLabel") | |
285 | label.BackgroundTransparency = 1 | |
286 | label.Size = UD2(1, 0, 1, 0) | |
287 | label.Position = UD2(0, 0, 0, 0) | |
288 | label.TextColor3 = TEXTCOLOR | |
289 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
290 | label.TextTransparency = TRANSPARENCY | |
291 | label.FontSize = TEXTFONTSIZE | |
292 | label.Font = TEXTFONT | |
293 | label.BorderSizePixel = BORDERSIZEPIXEL | |
294 | label.TextScaled = false | |
295 | label.Text = TEXT | |
296 | label.Name = NAME | |
297 | label.Parent = PARENT | |
298 | return label | |
299 | end | |
300 | function NoOutlines(PART) | |
301 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
302 | end | |
303 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
304 | local NEWWELD = IT(TYPE) | |
305 | NEWWELD.Part0 = PART0 | |
306 | NEWWELD.Part1 = PART1 | |
307 | NEWWELD.C0 = C0 | |
308 | NEWWELD.C1 = C1 | |
309 | NEWWELD.Parent = PARENT | |
310 | return NEWWELD | |
311 | end | |
312 | local S = IT("Sound") | |
313 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
314 | local NEWSOUND | |
315 | coroutine.resume(coroutine.create(function() | |
316 | NEWSOUND = S:Clone() | |
317 | NEWSOUND.EmitterSize = VOLUME * 5 | |
318 | NEWSOUND.Parent = PARENT | |
319 | NEWSOUND.Volume = VOLUME | |
320 | NEWSOUND.Pitch = PITCH | |
321 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
322 | NEWSOUND:play() | |
323 | if DOESLOOP == true then | |
324 | NEWSOUND.Looped = true | |
325 | else | |
326 | repeat | |
327 | wait(1) | |
328 | until NEWSOUND.Playing == false | |
329 | NEWSOUND:remove() | |
330 | end | |
331 | end)) | |
332 | return NEWSOUND | |
333 | end | |
334 | function CFrameFromTopBack(at, top, back) | |
335 | local right = top:Cross(back) | |
336 | 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) | |
337 | end | |
338 | function WACKYEFFECT(Table) | |
339 | local TYPE = Table.EffectType or "Sphere" | |
340 | local SIZE = Table.Size or VT(1, 1, 1) | |
341 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
342 | local TRANSPARENCY = Table.Transparency or 0 | |
343 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
344 | local CFRAME = Table.CFrame or Torso.CFrame | |
345 | local MOVEDIRECTION = Table.MoveToPos or nil | |
346 | local ROTATION1 = Table.RotationX or 0 | |
347 | local ROTATION2 = Table.RotationY or 0 | |
348 | local ROTATION3 = Table.RotationZ or 0 | |
349 | local MATERIAL = Table.Material or "Neon" | |
350 | local COLOR = Table.Color or C3(1, 1, 1) | |
351 | local TIME = Table.Time or 45 | |
352 | local SOUNDID = Table.SoundID or nil | |
353 | local SOUNDPITCH = Table.SoundPitch or nil | |
354 | local SOUNDVOLUME = Table.SoundVolume or nil | |
355 | coroutine.resume(coroutine.create(function() | |
356 | local PLAYSSOUND = false | |
357 | local SOUND | |
358 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
359 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
360 | PLAYSSOUND = true | |
361 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
362 | end | |
363 | EFFECT.Color = COLOR | |
364 | local MSH | |
365 | if TYPE == "Sphere" then | |
366 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
367 | elseif TYPE == "Block" or TYPE == "Box" then | |
368 | MSH = IT("BlockMesh", EFFECT) | |
369 | MSH.Scale = SIZE | |
370 | elseif TYPE == "Wave" then | |
371 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
372 | elseif TYPE == "Ring" then | |
373 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
374 | elseif TYPE == "Slash" then | |
375 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
376 | elseif TYPE == "Round Slash" then | |
377 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
378 | elseif TYPE == "Swirl" then | |
379 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
380 | elseif TYPE == "Skull" then | |
381 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
382 | elseif TYPE == "Crystal" then | |
383 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
384 | end | |
385 | if MSH ~= nil then | |
386 | local MOVESPEED | |
387 | if MOVEDIRECTION ~= nil then | |
388 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
389 | end | |
390 | local GROWTH = SIZE - ENDSIZE | |
391 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
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 = CFRAME | |
396 | end | |
397 | for LOOP = 1, TIME + 1 do | |
398 | Swait() | |
399 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
400 | if TYPE == "Wave" then | |
401 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
402 | end | |
403 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
404 | if TYPE == "Block" then | |
405 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
406 | else | |
407 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
408 | end | |
409 | if MOVEDIRECTION ~= nil then | |
410 | local ORI = EFFECT.Orientation | |
411 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
412 | EFFECT.Orientation = ORI | |
413 | end | |
414 | end | |
415 | if PLAYSSOUND == false then | |
416 | EFFECT:remove() | |
417 | else | |
418 | repeat | |
419 | Swait() | |
420 | until SOUND.Playing == false | |
421 | EFFECT:remove() | |
422 | end | |
423 | elseif PLAYSSOUND == false then | |
424 | EFFECT:remove() | |
425 | else | |
426 | repeat | |
427 | Swait() | |
428 | until SOUND.Playing == false | |
429 | EFFECT:remove() | |
430 | end | |
431 | end)) | |
432 | end | |
433 | function MakeForm(PART, TYPE) | |
434 | if TYPE == "Cyl" then | |
435 | local MSH = IT("CylinderMesh", PART) | |
436 | elseif TYPE == "Ball" then | |
437 | local MSH = IT("SpecialMesh", PART) | |
438 | MSH.MeshType = "Sphere" | |
439 | elseif TYPE == "Wedge" then | |
440 | local MSH = IT("SpecialMesh", PART) | |
441 | MSH.MeshType = "Wedge" | |
442 | end | |
443 | end | |
444 | Debris = game:GetService("Debris") | |
445 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
446 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
447 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
448 | end | |
449 | function GetRoot(MODEL, ROOT) | |
450 | if ROOT == true then | |
451 | return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso") | |
452 | else | |
453 | return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso") | |
454 | end | |
455 | end | |
456 | function FacialShadow() | |
457 | local SHADOWS = {} | |
458 | for i = 1, 16 do | |
459 | local FACE = CreatePart(3, Effects, "Fabric", 0, 0 + (i - 1) / 16.2, "Dark stone grey", "FaceGradient", VT(1.01, 0.65, 1.01), false) | |
460 | FACE.Color = C3(0, 0, 0) | |
461 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
462 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0, 0.45 - (i - 1) / 25, 0), CF(0, 0, 0)) | |
463 | table.insert(SHADOWS, FACE) | |
464 | end | |
465 | local function UNDO() | |
466 | for i = 1, #SHADOWS do | |
467 | SHADOWS[i]:remove() | |
468 | end | |
469 | end | |
470 | return UNDO | |
471 | end | |
472 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH) | |
473 | if FLOOR ~= nil then | |
474 | for i = 1, AMOUNT do | |
475 | do | |
476 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
477 | DEBREE.Material = FLOOR.Material | |
478 | DEBREE.Color = FLOOR.Color | |
479 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
480 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH)) | |
481 | coroutine.resume(coroutine.create(function() | |
482 | Swait(15) | |
483 | DEBREE.Parent = workspace | |
484 | DEBREE.CanCollide = true | |
485 | Debris:AddItem(DEBREE, SWAIT) | |
486 | end)) | |
487 | end | |
488 | end | |
489 | end | |
490 | end | |
491 | local SIZE = 2 | |
492 | RootPart2.Size = RootPart.Size * SIZE | |
493 | Torso2.Size = Torso.Size * SIZE | |
494 | RightArm2.Size = RightArm.Size * SIZE | |
495 | RightLeg2.Size = RightLeg.Size * SIZE | |
496 | LeftArm2.Size = LeftArm.Size * SIZE | |
497 | LeftLeg2.Size = LeftLeg.Size * SIZE | |
498 | RootJoint2.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
499 | RootJoint2.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
500 | Neck2.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
501 | Neck2.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
502 | RightShoulder2.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
503 | LeftShoulder2.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
504 | RightHip2.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
505 | LeftHip2.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
506 | RightHip2.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
507 | LeftHip2.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
508 | Head2.Size = VT(1, 1, 1) * SIZE | |
509 | RootJoint2.Parent = RootPart | |
510 | Neck2.Parent = Torso | |
511 | RightShoulder2.Parent = Torso | |
512 | LeftShoulder2.Parent = Torso | |
513 | RightHip2.Parent = Torso | |
514 | LeftHip2.Parent = Torso | |
515 | local SKILLTEXTCOLOR = C3(1, 1, 1) | |
516 | local SKILLFONT = "Fantasy" | |
517 | local SKILLTEXTSIZE = 6 | |
518 | local ATTACKS = { | |
519 | "Z-Tremor Punch", | |
520 | "E-Meteor Impact", | |
521 | "R-Uppercut" | |
522 | } | |
523 | local GUIS = {} | |
524 | for i = 1, #ATTACKS do | |
525 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.05, 0, 0.9 - 0.04 * i, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Frame") | |
526 | local SKILLTEXT = CreateLabel(SKILLFRAME, "[" .. ATTACKS[i] .. "]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
527 | SKILLTEXT.TextXAlignment = "Left" | |
528 | table.insert(GUIS, SKILLTEXT) | |
529 | end | |
530 | function ApplyDamage(Humanoid, Damage) | |
531 | Damage = Damage * DAMAGEMULTIPLIER | |
532 | if Humanoid.Health < 2000 then | |
533 | if Humanoid.Health - Damage > 0 then | |
534 | Humanoid.Health = Humanoid.Health - Damage | |
535 | else | |
536 | Humanoid.Parent:BreakJoints() | |
537 | end | |
538 | else | |
539 | Humanoid.Parent:BreakJoints() | |
540 | end | |
541 | end | |
542 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) | |
543 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
544 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
545 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
546 | if HUM then | |
547 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
548 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
549 | if INSTAKILL == true then | |
550 | CHILD:BreakJoints() | |
551 | else | |
552 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
553 | ApplyDamage(HUM, DMG) | |
554 | end | |
555 | if FLING > 0 then | |
556 | for _, c in pairs(CHILD:GetChildren()) do | |
557 | if c:IsA("BasePart") then | |
558 | local bv = Instance.new("BodyVelocity") | |
559 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
560 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
561 | bv.Parent = c | |
562 | Debris:AddItem(bv, 0.05) | |
563 | end | |
564 | end | |
565 | end | |
566 | end | |
567 | end | |
568 | end | |
569 | end | |
570 | end | |
571 | function Intro() | |
572 | EQUIPPED = true | |
573 | ATTACK = true | |
574 | Rooted = true | |
575 | if Rooted == false then | |
576 | Disable_Jump = false | |
577 | Humanoid.WalkSpeed = Speed | |
578 | elseif Rooted == true then | |
579 | Disable_Jump = true | |
580 | Humanoid.WalkSpeed = 0 | |
581 | end | |
582 | coroutine.resume(coroutine.create(function() | |
583 | repeat | |
584 | Swait() | |
585 | RootPart2.Anchored = true | |
586 | for _, c in pairs(SHADOW:GetChildren()) do | |
587 | if c:IsA("Part") then | |
588 | c.Color = C3(1, 1, 1) | |
589 | if c ~= RootPart2 then | |
590 | c.Transparency = E + 0.15 * SIN(SINE / 12) | |
591 | end | |
592 | if c:FindFirstChildOfClass("Decal") then | |
593 | c:ClearAllChildren() | |
594 | end | |
595 | c.CanCollide = false | |
596 | c.Material = "Neon" | |
597 | else | |
598 | c:remove() | |
599 | end | |
600 | end | |
601 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
602 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
603 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
604 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
605 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
606 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
607 | until ATTACK == false | |
608 | end)) | |
609 | wait(1) | |
610 | SHADOW.Parent = Character | |
611 | SHADOW:SetPrimaryPartCFrame(RootPart.CFrame * CF(0, -20, 5)) | |
612 | local HIT, POS = Raycast(RootPart.CFrame * CF(0, 0, 5).p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character) | |
613 | for i = 1, 250 do | |
614 | Swait() | |
615 | E = E - 0.0032 | |
616 | local AREA = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(2, 18)) | |
617 | local TIMER = MRANDOM(20, 80) | |
618 | WACKYEFFECT({ | |
619 | Time = TIMER, | |
620 | EffectType = "Sphere", | |
621 | Size = VT(1, 1, 1), | |
622 | Size2 = VT(0, 45, 0), | |
623 | Transparency = 0, | |
624 | Transparency2 = 0, | |
625 | CFrame = AREA, | |
626 | MoveToPos = AREA.p + VT(0, MRANDOM(35, 160), 0), | |
627 | RotationX = 0, | |
628 | RotationY = 0, | |
629 | RotationZ = 0, | |
630 | Material = "Neon", | |
631 | Color = C3(1, 1, 1), | |
632 | SoundID = nil, | |
633 | SoundPitch = 0.8, | |
634 | SoundVolume = 5 | |
635 | }) | |
636 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.01) | |
637 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
638 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
639 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-15), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
640 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-15), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
641 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
642 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
643 | end | |
644 | for i = 0, 0.6, 0.1 / Animation_Speed do | |
645 | Swait() | |
646 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
647 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
648 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
649 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(140), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
650 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(140), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
651 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
652 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
653 | end | |
654 | CreateSound(ROAR, Head2, 10, 1, false) | |
655 | for i = 0, 4, 0.1 / Animation_Speed do | |
656 | Swait() | |
657 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
658 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
659 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
660 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
661 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
662 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
663 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
664 | end | |
665 | ATTACK = false | |
666 | Rooted = false | |
667 | end | |
668 | function Roar(TABLE) | |
669 | ATTACK = true | |
670 | Rooted = true | |
671 | local E = false | |
672 | coroutine.resume(coroutine.create(function() | |
673 | repeat | |
674 | Swait() | |
675 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 8, 0), 0.1) | |
676 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
677 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
678 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.65, 0) * ANGLES(RAD(170), RAD(0), RAD(-22)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
679 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.65, 0) * ANGLES(RAD(170), RAD(0), RAD(22)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
680 | 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) | |
681 | 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) | |
682 | until E == true | |
683 | end)) | |
684 | for i = 0, 1, 0.1 / Animation_Speed do | |
685 | Swait() | |
686 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
687 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
688 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.15 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(140), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
689 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.15 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(140), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
690 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
691 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
692 | end | |
693 | CreateSound(ROAR, Effects, 4, 1, false) | |
694 | if TABLE then | |
695 | for E = 1, #TABLE do | |
696 | if TABLE[E]:FindFirstChildOfClass("Humanoid") then | |
697 | local ROOT = GetRoot(TABLE[E], true) | |
698 | if ROOT then | |
699 | ApplyDamage(TABLE[E]:FindFirstChildOfClass("Humanoid"), MRANDOM(25, 50)) | |
700 | local bv = Instance.new("BodyVelocity") | |
701 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
702 | bv.velocity = CF(RootPart.Position, ROOT.Position).lookVector * 150 | |
703 | bv.Parent = ROOT | |
704 | Debris:AddItem(bv, 0.05) | |
705 | end | |
706 | end | |
707 | end | |
708 | end | |
709 | for i = 0, 6, 0.1 / Animation_Speed do | |
710 | Swait() | |
711 | local HITFLOOR, HITPOS = Raycast(RootPart2.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character) | |
712 | if HITFLOOR then | |
713 | CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(1, 1, 1) * MRANDOM(7, 15) / 10, 5, 60) | |
714 | end | |
715 | WACKYEFFECT({ | |
716 | EffectType = "Wave", | |
717 | Size = VT(20, 1, 20), | |
718 | Size2 = VT(25 + MRANDOM(0, 8), 7, 25 + MRANDOM(0, 8)), | |
719 | Transparency = 0.9, | |
720 | Transparency2 = 1, | |
721 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
722 | MoveToPos = nil, | |
723 | RotationX = 0, | |
724 | RotationY = 5, | |
725 | RotationZ = 0, | |
726 | Material = "Neon", | |
727 | Color = C3(1, 1, 1), | |
728 | SoundID = nil, | |
729 | SoundPitch = nil, | |
730 | SoundVolume = nil | |
731 | }) | |
732 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
733 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-3, 3)), RAD(MRANDOM(-3, 3))), 1 / Animation_Speed) | |
734 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
735 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
736 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
737 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
738 | end | |
739 | E = true | |
740 | if TABLE then | |
741 | CreateSound(1535995263, Head, 10, 1, false) | |
742 | for i = 0, 2.2, 0.1 / Animation_Speed do | |
743 | Swait() | |
744 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
745 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(-5 + 2 * SIN(SINE / 12)), RAD(15), RAD(35)), 0.5 / Animation_Speed) | |
746 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
747 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
748 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
749 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
750 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.3 * SIZE, -0.6 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
751 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
752 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), 0.15 / Animation_Speed) | |
753 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
754 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
755 | 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) | |
756 | 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) | |
757 | end | |
758 | end | |
759 | ATTACK = false | |
760 | Rooted = false | |
761 | end | |
762 | function Punch() | |
763 | ATTACK = true | |
764 | Rooted = false | |
765 | local HITS = {} | |
766 | Speed = 12 | |
767 | for i = 0, 1, 0.1 / Animation_Speed do | |
768 | Swait() | |
769 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
770 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
771 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
772 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
773 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
774 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
775 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
776 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
777 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
778 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
779 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
780 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
781 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
782 | end | |
783 | CreateSound(588693579, RightArm2, 6, MRANDOM(8, 12) / 10, false) | |
784 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
785 | Swait() | |
786 | WACKYEFFECT({ | |
787 | EffectType = "Box", | |
788 | Size = RightArm2.Size, | |
789 | Size2 = RightArm2.Size, | |
790 | Transparency = RightArm2.Transparency, | |
791 | Transparency2 = 1, | |
792 | CFrame = RightArm2.CFrame, | |
793 | MoveToPos = nil, | |
794 | RotationX = 0, | |
795 | RotationY = 0, | |
796 | RotationZ = 0, | |
797 | Material = "Neon", | |
798 | Color = C3(1, 1, 1), | |
799 | SoundID = nil, | |
800 | SoundPitch = nil, | |
801 | SoundVolume = nil | |
802 | }) | |
803 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.4) | |
804 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
805 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
806 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(135), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
807 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
808 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
809 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
810 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
811 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
812 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
813 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
814 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
815 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
816 | end | |
817 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
818 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
819 | do | |
820 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
821 | if HUM then | |
822 | do | |
823 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
824 | if TORSO and (TORSO.Position - RightArm2.CFrame * CF(0, -2, 0).p).Magnitude <= 15 then | |
825 | table.insert(HITS, CHILD) | |
826 | coroutine.resume(coroutine.create(function() | |
827 | CreateSound(260430117, TORSO, 3, MRANDOM(8, 12) / 10, false) | |
828 | TORSO.Anchored = true | |
829 | local POS = TORSO.CFrame | |
830 | for i = 1, 35 do | |
831 | Swait() | |
832 | ApplyDamage(HUM, MRANDOM(1, 1)) | |
833 | TORSO.CFrame = POS * CF(MRANDOM(-2, 2) / 10, MRANDOM(-2, 2) / 10, MRANDOM(-2, 2) / 10) | |
834 | end | |
835 | TORSO.Anchored = false | |
836 | end)) | |
837 | end | |
838 | end | |
839 | end | |
840 | end | |
841 | end | |
842 | end | |
843 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
844 | Swait() | |
845 | WACKYEFFECT({ | |
846 | EffectType = "Box", | |
847 | Size = RightArm2.Size, | |
848 | Size2 = RightArm2.Size, | |
849 | Transparency = RightArm2.Transparency, | |
850 | Transparency2 = 1, | |
851 | CFrame = RightArm2.CFrame, | |
852 | MoveToPos = nil, | |
853 | RotationX = 0, | |
854 | RotationY = 0, | |
855 | RotationZ = 0, | |
856 | Material = "Neon", | |
857 | Color = C3(1, 1, 1), | |
858 | SoundID = nil, | |
859 | SoundPitch = nil, | |
860 | SoundVolume = nil | |
861 | }) | |
862 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.5) | |
863 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
864 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
865 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(135), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
866 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
867 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
868 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
869 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
870 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
871 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
872 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
873 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
874 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
875 | end | |
876 | if #HITS > 0 then | |
877 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
878 | Swait() | |
879 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.5) | |
880 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
881 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
882 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(135), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
883 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
884 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
885 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
886 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
887 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
888 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
889 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
890 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
891 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
892 | end | |
893 | Roar(HITS) | |
894 | end | |
895 | Speed = 16 | |
896 | ATTACK = false | |
897 | Rooted = false | |
898 | end | |
899 | function Throw() | |
900 | ATTACK = true | |
901 | Rooted = false | |
902 | local DEBREE = {} | |
903 | for i = 0, 1, 0.1 / Animation_Speed do | |
904 | Swait() | |
905 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 1, 2), 0.2) | |
906 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
907 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
908 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
909 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
910 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
911 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
912 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
913 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
914 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
915 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
916 | 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 / Animation_Speed) | |
917 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
918 | end | |
919 | local CFRAME = RootPart2.CFrame * CF(0, 50, 0) | |
920 | Humanoid.PlatformStand = true | |
921 | UNANCHOR = false | |
922 | for i = 0, 1, 0.1 / Animation_Speed do | |
923 | Swait() | |
924 | RootPart2.CFrame = Clerp(RootPart2.CFrame, CF(CFRAME.p, VT(Mouse.Hit.p.X, RootPart2.Position.Y, Mouse.Hit.p.Z)), 0.2) | |
925 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
926 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
927 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
928 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
929 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
930 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
931 | RootPart.CFrame = RootPart2.CFrame * CF(0, -1, -2) | |
932 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
933 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
934 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
935 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
936 | 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 / Animation_Speed) | |
937 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
938 | end | |
939 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm2, RightArm2, Torso, CF(0, -2, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
940 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
941 | Swait() | |
942 | RootPart2.CFrame = Clerp(RootPart2.CFrame, CF(CFRAME.p, VT(Mouse.Hit.p.X, RootPart2.Position.Y, Mouse.Hit.p.Z)), 0.2) | |
943 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
944 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
945 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
946 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
947 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
948 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
949 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
950 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
951 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
952 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, -0.3) * ANGLES(RAD(80), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
953 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
954 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.4, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
955 | end | |
956 | local IMPACT = false | |
957 | WELD:remove() | |
958 | RootPart.CFrame = CF(RightArm2.CFrame * CF(0, -3, 0).p, Mouse.Hit.p) | |
959 | CreateSound(588693579, RightArm2, 6, MRANDOM(8, 12) / 10, false) | |
960 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
961 | Swait() | |
962 | WACKYEFFECT({ | |
963 | EffectType = "Box", | |
964 | Size = RightArm2.Size, | |
965 | Size2 = RightArm2.Size, | |
966 | Transparency = RightArm2.Transparency, | |
967 | Transparency2 = 1, | |
968 | CFrame = RightArm2.CFrame, | |
969 | MoveToPos = nil, | |
970 | RotationX = 0, | |
971 | RotationY = 0, | |
972 | RotationZ = 0, | |
973 | Material = "Neon", | |
974 | Color = C3(1, 1, 1), | |
975 | SoundID = nil, | |
976 | SoundPitch = nil, | |
977 | SoundVolume = nil | |
978 | }) | |
979 | RootPart2.CFrame = Clerp(RootPart2.CFrame, CF(CFRAME.p, VT(Mouse.Hit.p.X, RootPart2.Position.Y, Mouse.Hit.p.Z)), 0.2) | |
980 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
981 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
982 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
983 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
984 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
985 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
986 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
987 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
988 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
989 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, -0.3) * ANGLES(RAD(80), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
990 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
991 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.4, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
992 | end | |
993 | coroutine.resume(coroutine.create(function() | |
994 | repeat | |
995 | Swait() | |
996 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
997 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
998 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
999 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1000 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1001 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1002 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1003 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1004 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1005 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, -0.3) * ANGLES(RAD(80), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1006 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1007 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.4, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1008 | until IMPACT == true or ATTACK == false | |
1009 | end)) | |
1010 | local FLOOR | |
1011 | for i = 1, 80 do | |
1012 | Swait() | |
1013 | local HIT, POS = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 6, Character) | |
1014 | if HIT then | |
1015 | FLOOR = HIT | |
1016 | IMPACT = true | |
1017 | local ORI = VT(0, RootPart.Orientation.Y, 0) | |
1018 | RootPart.CFrame = CF(POS + VT(0, 3.5, 0)) | |
1019 | RootPart.Orientation = ORI | |
1020 | RootJoint.Parent = RootPart | |
1021 | break | |
1022 | else | |
1023 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -6) | |
1024 | end | |
1025 | end | |
1026 | UNANCHOR = true | |
1027 | if FLOOR then | |
1028 | do | |
1029 | local PLAYING = false | |
1030 | Humanoid.PlatformStand = false | |
1031 | local REPLAY = true | |
1032 | local FLING = false | |
1033 | coroutine.resume(coroutine.create(function() | |
1034 | local ROCKS = MRANDOM(8, 13) | |
1035 | for i = 1, ROCKS do | |
1036 | local DEBREEPART = CreatePart(3, Effects, FLOOR.Material, 0, 0, FLOOR.BrickColor, "Debree", VT(1, 1, 1) * MRANDOM(2, 7), true) | |
1037 | DEBREEPART.CFrame = CF(RootPart.Position - VT(0, 7, 0)) * ANGLES(RAD(0), RAD(360 / ROCKS * i), RAD(0)) * CF(0, 0, MRANDOM(20, 28)) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
1038 | table.insert(DEBREE, { | |
1039 | DEBREEPART, | |
1040 | DEBREEPART.Orientation, | |
1041 | CF(DEBREEPART.Position + VT(0, MRANDOM(3, 7) + 8, 0)) | |
1042 | }) | |
1043 | end | |
1044 | repeat | |
1045 | Swait() | |
1046 | for E = 1, #DEBREE do | |
1047 | local ROCK = DEBREE[E][1] | |
1048 | ROCK.CFrame = Clerp(ROCK.CFrame, DEBREE[E][3], 0.3) | |
1049 | ROCK.Orientation = DEBREE[E][2] | |
1050 | end | |
1051 | until FLING == true or ATTACK == false | |
1052 | if FLING == false then | |
1053 | for E = 1, #DEBREE do | |
1054 | local ROCK = DEBREE[E][1] | |
1055 | ROCK.Anchored = false | |
1056 | Debris:AddItem(ROCK, 4) | |
1057 | end | |
1058 | else | |
1059 | for E = 1, #DEBREE do | |
1060 | do | |
1061 | local ROCK = DEBREE[E][1] | |
1062 | ROCK.CFrame = CF(ROCK.Position, Mouse.Hit.p) | |
1063 | coroutine.resume(coroutine.create(function() | |
1064 | for i = 1, 150 do | |
1065 | Swait() | |
1066 | local HIT, POS, NORMAL = Raycast(ROCK.Position, ROCK.CFrame.lookVector, 3, Character) | |
1067 | if HIT then | |
1068 | break | |
1069 | else | |
1070 | ROCK.CFrame = ROCK.CFrame * CF(0, 0, -3) | |
1071 | end | |
1072 | end | |
1073 | ApplyAoE(ROCK.Position, 22, 10, 15, 70, false) | |
1074 | WACKYEFFECT({ | |
1075 | EffectType = "Box", | |
1076 | Size = ROCK.Size, | |
1077 | Size2 = ROCK.Size * 1.2, | |
1078 | Transparency = 0, | |
1079 | Transparency2 = 1, | |
1080 | CFrame = ROCK.CFrame, | |
1081 | MoveToPos = nil, | |
1082 | RotationX = 0, | |
1083 | RotationY = 0, | |
1084 | RotationZ = 0, | |
1085 | Material = "Neon", | |
1086 | Color = C3(1, 1, 1), | |
1087 | SoundID = nil, | |
1088 | SoundPitch = nil, | |
1089 | SoundVolume = nil | |
1090 | }) | |
1091 | WACKYEFFECT({ | |
1092 | Time = 15, | |
1093 | EffectType = "Sphere", | |
1094 | Size = ROCK.Size, | |
1095 | Size2 = VT(35, 35, 35), | |
1096 | Transparency = 0.8, | |
1097 | Transparency2 = 1, | |
1098 | CFrame = CF(ROCK.Position), | |
1099 | MoveToPos = nil, | |
1100 | RotationX = 0, | |
1101 | RotationY = 0, | |
1102 | RotationZ = 0, | |
1103 | Material = "Neon", | |
1104 | Color = C3(1, 1, 1), | |
1105 | SoundID = 174580476, | |
1106 | SoundPitch = 1, | |
1107 | SoundVolume = 3 | |
1108 | }) | |
1109 | ROCK:remove() | |
1110 | end)) | |
1111 | Swait(5) | |
1112 | end | |
1113 | end | |
1114 | end | |
1115 | end)) | |
1116 | local UNDO = FacialShadow() | |
1117 | CreateSound(765590102, Torso, 2, MRANDOM(8, 12) / 10, false) | |
1118 | KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1119 | if NEWKEY == "e" then | |
1120 | KEY:Disconnect() | |
1121 | PLAYING = true | |
1122 | end | |
1123 | end) | |
1124 | for i = 0, 2, 0.1 / Animation_Speed do | |
1125 | Swait() | |
1126 | if PLAYING == true then | |
1127 | break | |
1128 | end | |
1129 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1130 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(-5 + 2 * SIN(SINE / 12)), RAD(15), RAD(35)), 0.5 / Animation_Speed) | |
1131 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1132 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1133 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1134 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1135 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.3 * SIZE, -0.6 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1136 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1137 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1138 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1139 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1140 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1141 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1142 | end | |
1143 | if KEY then | |
1144 | KEY:Disconnect() | |
1145 | end | |
1146 | if PLAYING == true then | |
1147 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1148 | Swait() | |
1149 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1150 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
1151 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1152 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1153 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1154 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1155 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1156 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1157 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1158 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1159 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1160 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1161 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1162 | end | |
1163 | FLING = true | |
1164 | for i = 0, 1, 0.1 / Animation_Speed do | |
1165 | Swait() | |
1166 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1167 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 2 / Animation_Speed) | |
1168 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 2 / Animation_Speed) | |
1169 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1170 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1171 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1172 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1173 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1174 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1175 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1176 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1177 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1178 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1179 | end | |
1180 | end | |
1181 | UNDO() | |
1182 | end | |
1183 | end | |
1184 | REPLAY = false | |
1185 | ATTACK = false | |
1186 | Rooted = false | |
1187 | end | |
1188 | function Uppercut() | |
1189 | ATTACK = true | |
1190 | Rooted = false | |
1191 | local HITS = {} | |
1192 | Speed = 12 | |
1193 | for i = 0, 1, 0.1 / Animation_Speed do | |
1194 | Swait() | |
1195 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1196 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
1197 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
1198 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1199 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1200 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1201 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1202 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1203 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1204 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1205 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1206 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1207 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1208 | end | |
1209 | CreateSound(588693579, RightArm2, 6, MRANDOM(8, 12) / 10, false) | |
1210 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1211 | Swait() | |
1212 | WACKYEFFECT({ | |
1213 | EffectType = "Box", | |
1214 | Size = RightArm2.Size, | |
1215 | Size2 = RightArm2.Size, | |
1216 | Transparency = RightArm2.Transparency, | |
1217 | Transparency2 = 1, | |
1218 | CFrame = RightArm2.CFrame, | |
1219 | MoveToPos = nil, | |
1220 | RotationX = 0, | |
1221 | RotationY = 0, | |
1222 | RotationZ = 0, | |
1223 | Material = "Neon", | |
1224 | Color = C3(1, 1, 1), | |
1225 | SoundID = nil, | |
1226 | SoundPitch = nil, | |
1227 | SoundVolume = nil | |
1228 | }) | |
1229 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.4) | |
1230 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
1231 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
1232 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1233 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1234 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1235 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1236 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1237 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1238 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1239 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1240 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1241 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1242 | end | |
1243 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
1244 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1245 | do | |
1246 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1247 | if HUM then | |
1248 | do | |
1249 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1250 | if TORSO and (TORSO.Position - RightArm2.CFrame * CF(0, -2, 0).p).Magnitude <= 15 then | |
1251 | coroutine.resume(coroutine.create(function() | |
1252 | CreateSound(260430117, TORSO, 3, MRANDOM(8, 12) / 10, false) | |
1253 | local grav = Instance.new("BodyPosition", TORSO) | |
1254 | grav.D = 1500 | |
1255 | grav.P = 20000 | |
1256 | grav.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1257 | grav.position = TORSO.Position + VT(0, 25, 0) | |
1258 | TORSO.RotVelocity = VT(MRANDOM(-25, 25), MRANDOM(-25, 25), MRANDOM(-25, 25)) | |
1259 | table.insert(HITS, {CHILD, grav}) | |
1260 | ApplyDamage(HUM, MRANDOM(12, 22)) | |
1261 | end)) | |
1262 | end | |
1263 | end | |
1264 | end | |
1265 | end | |
1266 | end | |
1267 | end | |
1268 | if #HITS > 0 then | |
1269 | coroutine.resume(coroutine.create(function() | |
1270 | repeat | |
1271 | Swait() | |
1272 | until ATTACK == false | |
1273 | for E = 1, #HITS do | |
1274 | HITS[E][2]:remove() | |
1275 | end | |
1276 | end)) | |
1277 | end | |
1278 | REPLAY = true | |
1279 | local PLAYING = false | |
1280 | local WHACK = false | |
1281 | local HITTING = 0 | |
1282 | local PAYDOWN = 200 | |
1283 | local UNDO = FacialShadow() | |
1284 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1285 | Swait() | |
1286 | if PLAYING == true then | |
1287 | break | |
1288 | end | |
1289 | WACKYEFFECT({ | |
1290 | EffectType = "Box", | |
1291 | Size = RightArm2.Size, | |
1292 | Size2 = RightArm2.Size, | |
1293 | Transparency = RightArm2.Transparency, | |
1294 | Transparency2 = 1, | |
1295 | CFrame = RightArm2.CFrame, | |
1296 | MoveToPos = nil, | |
1297 | RotationX = 0, | |
1298 | RotationY = 0, | |
1299 | RotationZ = 0, | |
1300 | Material = "Neon", | |
1301 | Color = C3(1, 1, 1), | |
1302 | SoundID = nil, | |
1303 | SoundPitch = nil, | |
1304 | SoundVolume = nil | |
1305 | }) | |
1306 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.5) | |
1307 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
1308 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
1309 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(185), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1310 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1311 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1312 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1313 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1314 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1315 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1316 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1317 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1318 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1319 | end | |
1320 | if #HITS > 0 then | |
1321 | KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1322 | if NEWKEY == "r" and WHACK == false then | |
1323 | if PLAYING == false then | |
1324 | PLAYING = true | |
1325 | end | |
1326 | WHACK = true | |
1327 | PAYDOWN = 70 | |
1328 | HITTING = HITTING + 1 | |
1329 | for E = 1, #HITS do | |
1330 | if HITS[E][1] then | |
1331 | local ROOT = GetRoot(HITS[E][1], true) | |
1332 | if ROOT then | |
1333 | local HUM = HITS[E][1]:FindFirstChildOfClass("Humanoid") | |
1334 | if HUM and HUM.Health > 0 then | |
1335 | HUM.PlatformStand = true | |
1336 | CreateSound(260430117, ROOT, 3, MRANDOM(8, 12) / 10, false) | |
1337 | local HIT, POS = Raycast(ROOT.Position + VT(0, 5, 0), CF(RootPart.Position, RootPart.Position - VT(0, 5, 0)).lookVector, 60, HITS[E][1]) | |
1338 | ROOT.CFrame = CF(POS) | |
1339 | ApplyDamage(HUM, MRANDOM(12, 18)) | |
1340 | ROOT.RotVelocity = VT(MRANDOM(-25, 25), MRANDOM(-25, 25), MRANDOM(-25, 25)) * 4 | |
1341 | if HIT then | |
1342 | CreateFlyingDebree(HIT, CF(POS), 5, VT(1, 1, 1) * MRANDOM(7, 15) / 20, 5, 30) | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | CreateSound(217767125, RightArm, 10, 1, false) | |
1349 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
1350 | Swait() | |
1351 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1352 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1353 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1354 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1355 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-15 - 1 * SIN(SINE / 6))) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1356 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1357 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1358 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1359 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1360 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1361 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.4) * ANGLES(RAD(-25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1362 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1363 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1364 | end | |
1365 | WHACK = false | |
1366 | end | |
1367 | end) | |
1368 | end | |
1369 | for i = 0, 1, 0.1 / Animation_Speed do | |
1370 | Swait() | |
1371 | if PLAYING == true then | |
1372 | break | |
1373 | end | |
1374 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 3, -5), 0.5) | |
1375 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
1376 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
1377 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.25 * SIZE, 0.5 * SIZE, -0.25 * SIZE) * ANGLES(RAD(185), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1378 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1379 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(50 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1380 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1381 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1382 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1383 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1384 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1385 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1386 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1387 | end | |
1388 | if PLAYING == true then | |
1389 | Rooted = true | |
1390 | repeat | |
1391 | Swait() | |
1392 | if WHACK == false then | |
1393 | PAYDOWN = PAYDOWN - 1 | |
1394 | if PAYDOWN <= 0 then | |
1395 | PLAYING = false | |
1396 | end | |
1397 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1398 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1399 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1400 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(120)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1401 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-15 - 1 * SIN(SINE / 6))) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1402 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1403 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1404 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1405 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1406 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(120)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1407 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.4) * ANGLES(RAD(-25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1408 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1409 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1410 | end | |
1411 | until PLAYING == false | |
1412 | end | |
1413 | if KEY then | |
1414 | KEY:Disconnect() | |
1415 | end | |
1416 | if HITTING > 4 then | |
1417 | CreateSound(1535994137, Head, 10, 1, false) | |
1418 | for i = 0, 2.4, 0.1 / Animation_Speed do | |
1419 | Swait() | |
1420 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1421 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(-5 + 2 * SIN(SINE / 12)), RAD(15), RAD(35)), 0.5 / Animation_Speed) | |
1422 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1423 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1424 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1425 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1426 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.3 * SIZE, -0.6 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1427 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1428 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(15), RAD(15)), 1 / Animation_Speed) | |
1429 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(170), RAD(0), RAD(-13)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1430 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1431 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1432 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1433 | end | |
1434 | end | |
1435 | UNDO() | |
1436 | Speed = 16 | |
1437 | REPLAY = false | |
1438 | ATTACK = false | |
1439 | Rooted = false | |
1440 | end | |
1441 | function TakeOn() | |
1442 | ATTACK = true | |
1443 | Rooted = true | |
1444 | coroutine.resume(coroutine.create(function() | |
1445 | repeat | |
1446 | Swait() | |
1447 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(-5 + 2 * SIN(SINE / 12)), RAD(15), RAD(35)), 0.5 / Animation_Speed) | |
1448 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1449 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1450 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1451 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1452 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.3 * SIZE, -0.6 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1453 | until ATTACK == false | |
1454 | end)) | |
1455 | CreateSound(1535994669, Head, 10, 1, false) | |
1456 | for i = 0, 1, 0.1 / Animation_Speed do | |
1457 | Swait() | |
1458 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1459 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1460 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, 0.2) * ANGLES(RAD(-25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1462 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1464 | end | |
1465 | for i = 0, 1, 0.1 / Animation_Speed do | |
1466 | Swait() | |
1467 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1468 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1469 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1470 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, 0.2) * ANGLES(RAD(-25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1471 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1472 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1473 | end | |
1474 | ATTACK = false | |
1475 | Rooted = false | |
1476 | end | |
1477 | function MouseDown(Mouse) | |
1478 | if ATTACK == false then | |
1479 | end | |
1480 | end | |
1481 | function MouseUp(Mouse) | |
1482 | HOLD = false | |
1483 | end | |
1484 | function KeyDown(Key) | |
1485 | KEYHOLD = true | |
1486 | if Key == "z" and ATTACK == false then | |
1487 | Punch() | |
1488 | end | |
1489 | if Key == "e" and ATTACK == false and REPLAY == false then | |
1490 | Throw() | |
1491 | end | |
1492 | if Key == "r" and ATTACK == false and REPLAY == false then | |
1493 | Uppercut() | |
1494 | end | |
1495 | if Key == "t" and ATTACK == false then | |
1496 | Roar() | |
1497 | end | |
1498 | if Key == "y" and ATTACK == false then | |
1499 | TakeOn() | |
1500 | end | |
1501 | end | |
1502 | function KeyUp(Key) | |
1503 | KEYHOLD = false | |
1504 | end | |
1505 | Mouse.Button1Down:connect(function(NEWKEY) | |
1506 | MouseDown(NEWKEY) | |
1507 | end) | |
1508 | Mouse.Button1Up:connect(function(NEWKEY) | |
1509 | MouseUp(NEWKEY) | |
1510 | end) | |
1511 | Mouse.KeyDown:connect(function(NEWKEY) | |
1512 | KeyDown(NEWKEY) | |
1513 | end) | |
1514 | Mouse.KeyUp:connect(function(NEWKEY) | |
1515 | KeyUp(NEWKEY) | |
1516 | end) | |
1517 | function unanchor() | |
1518 | for _, c in pairs(Character:GetChildren()) do | |
1519 | if c:IsA("BasePart") and c ~= RootPart then | |
1520 | c.Anchored = false | |
1521 | end | |
1522 | end | |
1523 | if UNANCHOR == true then | |
1524 | RootPart.Anchored = false | |
1525 | else | |
1526 | RootPart.Anchored = true | |
1527 | end | |
1528 | end | |
1529 | Humanoid.Changed:connect(function(Jump) | |
1530 | if Jump == "Jump" and Disable_Jump == true then | |
1531 | Humanoid.Jump = false | |
1532 | end | |
1533 | end) | |
1534 | coroutine.resume(coroutine.create(function() | |
1535 | while true do | |
1536 | Swait() | |
1537 | SINE = SINE + CHANGE | |
1538 | end | |
1539 | end)) | |
1540 | while true do | |
1541 | Swait() | |
1542 | script.Parent = WEAPONGUI | |
1543 | ANIMATE.Parent = nil | |
1544 | for _, v in next, Humanoid:GetPlayingAnimationTracks() do | |
1545 | v:Stop() | |
1546 | end | |
1547 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1548 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1549 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character) | |
1550 | local WALKSPEEDVALUE = 4 | |
1551 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1552 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1553 | 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) | |
1554 | 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.4 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1555 | 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.4 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1556 | elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then | |
1557 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1558 | 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) | |
1559 | 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) | |
1560 | 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) | |
1561 | end | |
1562 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1563 | ANIM = "Jump" | |
1564 | if ATTACK == false then | |
1565 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1566 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1567 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1568 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1569 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.4 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1570 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.4 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1571 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1572 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1573 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1574 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1575 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1576 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1577 | end | |
1578 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1579 | ANIM = "Fall" | |
1580 | if ATTACK == false then | |
1581 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1582 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1583 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1584 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1585 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -0.4 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1586 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.4 * SIZE, -0.5 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1587 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1588 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1589 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1590 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1591 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1592 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1593 | end | |
1594 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1595 | ANIM = "Idle" | |
1596 | if ATTACK == false then | |
1597 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(-5 + 2 * SIN(SINE / 12)), RAD(15), RAD(35)), 0.5 / Animation_Speed) | |
1598 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1599 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1600 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1601 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1602 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.3 * SIZE, -0.6 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1603 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1604 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1605 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1606 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, 0.2) * ANGLES(RAD(-25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1607 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1, -1 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1608 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(-2), RAD(0)), 1 / Animation_Speed) | |
1609 | end | |
1610 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1611 | ANIM = "Walk" | |
1612 | if ATTACK == false then | |
1613 | RootJoint2.C0 = Clerp(RootJoint2.C0, ROOTC0 * CF(0, 0, 0.25 * COS(SINE / 12)) * ANGLES(RAD(35 + 2 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.5 / Animation_Speed) | |
1614 | Neck2.C0 = Clerp(Neck2.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-25 - 2 * SIN(SINE / 12)), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1615 | RightShoulder2.C0 = Clerp(RightShoulder2.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1616 | LeftShoulder2.C0 = Clerp(LeftShoulder2.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0) * ANGLES(RAD(-35 + 15 * SIN(SINE / 12)), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1617 | RightHip2.C0 = Clerp(RightHip2.C0, CF(1 * SIZE, -1 * SIZE, 0) * ANGLES(RAD(0), RAD(80 - 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1618 | LeftHip2.C0 = Clerp(LeftHip2.C0, CF(-1 * SIZE, -0.5 * SIZE, -0.3 * SIZE) * ANGLES(RAD(-25), RAD(-80 + 1 * SIN(SINE / 6)), RAD(0)) * ANGLES(RAD(-3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1619 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1620 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1621 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1622 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1623 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1624 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1625 | end | |
1626 | end | |
1627 | if ATTACK == false then | |
1628 | RootPart2.CFrame = Clerp(RootPart2.CFrame, RootPart.CFrame * CF(0, 6, 5), 0.1) | |
1629 | end | |
1630 | unanchor() | |
1631 | RootPart2.Anchored = true | |
1632 | Humanoid.MaxHealth = 200 | |
1633 | Humanoid.Health = 200 | |
1634 | if Rooted == false then | |
1635 | Disable_Jump = false | |
1636 | Humanoid.WalkSpeed = Speed | |
1637 | elseif Rooted == true then | |
1638 | Disable_Jump = true | |
1639 | Humanoid.WalkSpeed = 0 | |
1640 | end | |
1641 | for _, c in pairs(SHADOW:GetChildren()) do | |
1642 | if c:IsA("Part") then | |
1643 | c.Color = C3(1, 1, 1) | |
1644 | if c ~= RootPart2 then | |
1645 | c.Transparency = E + 0.15 * SIN(SINE / 12) | |
1646 | end | |
1647 | if c:FindFirstChildOfClass("Decal") then | |
1648 | c:ClearAllChildren() | |
1649 | end | |
1650 | c.CanCollide = false | |
1651 | c.Material = "Neon" | |
1652 | else | |
1653 | c:remove() | |
1654 | end | |
1655 | end | |
1656 | sick.SoundId = "rbxassetid://2785302328" | |
1657 | sick.Looped = true | |
1658 | sick.Pitch = 1 | |
1659 | sick.Volume = 1.5 | |
1660 | sick.Parent = Character | |
1661 | sick.Playing = PLAYSONG | |
1662 | if EQUIPPED == false then | |
1663 | Intro() | |
1664 | end | |
1665 | end |