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