SHOW:
|
|
- or go back to the newest paste.
1 | ----------------------- | |
2 | --MemeusV2-- | |
3 | ------------------------------------------------------- | |
4 | --A script By makhail07 | |
5 | ||
6 | --Discord Creterisk#2958 | |
7 | ------------------------------------------------------- | |
8 | ||
9 | local FavIDs = { | |
10 | 340106355, --Nefl Crystals | |
11 | 927529620, --Dimension | |
12 | 876981900, --Fantasy | |
13 | 398987889, --Ordinary Days | |
14 | 1117396305, --Oh wait, it's you. | |
15 | 885996042, --Action Winter Journey | |
16 | 919231299, --Sprawling Idiot Effigy | |
17 | 743466274, --Good Day Sunshine | |
18 | 727411183, --Knife Fight | |
19 | 1402748531, --The Earth Is Counting On You! | |
20 | 595230126 --Robot Language | |
21 | } | |
22 | ||
23 | ||
24 | ||
25 | --The reality of my life isn't real but a Universe -makhail07 | |
26 | wait() | |
27 | local plr = game:service'Players'.LocalPlayer | |
28 | print('Local User is '..plr.Name) | |
29 | local char = plr.Character | |
30 | local hum = char.Humanoid | |
31 | local ra = char["Right Arm"] | |
32 | local la= char["Left Arm"] | |
33 | local rl= char["Right Leg"] | |
34 | local ll = char["Left Leg"] | |
35 | local hed = char.Head | |
36 | local root = char.HumanoidRootPart | |
37 | local rootj = root.RootJoint | |
38 | local tors = char.Torso | |
39 | local mouse = plr:GetMouse() | |
40 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
41 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
42 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
43 | ||
44 | ||
45 | ------------------------------------------------------- | |
46 | --Start Good Stuff-- | |
47 | ------------------------------------------------------- | |
48 | CF = CFrame.new | |
49 | angles = CFrame.Angles | |
50 | attack = false | |
51 | Euler = CFrame.fromEulerAnglesXYZ | |
52 | Rad = math.rad | |
53 | IT = Instance.new | |
54 | BrickC = BrickColor.new | |
55 | Cos = math.cos | |
56 | Acos = math.acos | |
57 | Sin = math.sin | |
58 | Asin = math.asin | |
59 | Abs = math.abs | |
60 | Mrandom = math.random | |
61 | Floor = math.floor | |
62 | ------------------------------------------------------- | |
63 | --End Good Stuff-- | |
64 | ------------------------------------------------------- | |
65 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
66 | RSH, LSH = nil, nil | |
67 | RW = Instance.new("Weld") | |
68 | LW = Instance.new("Weld") | |
69 | RH = tors["Right Hip"] | |
70 | LH = tors["Left Hip"] | |
71 | RSH = tors["Right Shoulder"] | |
72 | LSH = tors["Left Shoulder"] | |
73 | RSH.Parent = nil | |
74 | LSH.Parent = nil | |
75 | RW.Name = "RW" | |
76 | RW.Part0 = tors | |
77 | RW.C0 = CF(1.5, 0.5, 0) | |
78 | RW.C1 = CF(0, 0.5, 0) | |
79 | RW.Part1 = ra | |
80 | RW.Parent = tors | |
81 | LW.Name = "LW" | |
82 | LW.Part0 = tors | |
83 | LW.C0 = CF(-1.5, 0.5, 0) | |
84 | LW.C1 = CF(0, 0.5, 0) | |
85 | LW.Part1 = la | |
86 | LW.Parent = tors | |
87 | Effects = {} | |
88 | ||
89 | ------------------------------------------------------- | |
90 | --Start HeartBeat-- | |
91 | ------------------------------------------------------- | |
92 | ArtificialHB = Instance.new("BindableEvent", script) | |
93 | ArtificialHB.Name = "Heartbeat" | |
94 | script:WaitForChild("Heartbeat") | |
95 | ||
96 | frame = 1 / 60 | |
97 | tf = 0 | |
98 | allowframeloss = false | |
99 | tossremainder = false | |
100 | ||
101 | ||
102 | lastframe = tick() | |
103 | script.Heartbeat:Fire() | |
104 | ||
105 | ||
106 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
107 | tf = tf + s | |
108 | if tf >= frame then | |
109 | if allowframeloss then | |
110 | script.Heartbeat:Fire() | |
111 | lastframe = tick() | |
112 | else | |
113 | for i = 1, math.floor(tf / frame) do | |
114 | script.Heartbeat:Fire() | |
115 | end | |
116 | lastframe = tick() | |
117 | end | |
118 | if tossremainder then | |
119 | tf = 0 | |
120 | else | |
121 | tf = tf - frame * math.floor(tf / frame) | |
122 | end | |
123 | end | |
124 | end) | |
125 | ------------------------------------------------------- | |
126 | --End HeartBeat-- | |
127 | ------------------------------------------------------- | |
128 | ||
129 | ------------------------------------------------------- | |
130 | --Start Kyu's shitty stuff-- | |
131 | ------------------------------------------------------- | |
132 | ||
133 | function ragdoll(model) | |
134 | local char = model | |
135 | torso = char.HumanoidRootPart | |
136 | torso2 = char.Torso | |
137 | LW.Parent = nil | |
138 | RW.Parent = nil | |
139 | LH.Parent = nil | |
140 | RH.Parent = nil | |
141 | if hum ~= nil then | |
142 | hum.PlatformStand = true | |
143 | end | |
144 | ||
145 | local Head = char:FindFirstChild("Head") | |
146 | if Head then | |
147 | local Neck = Instance.new("Weld") | |
148 | Neck.Name = "Neck" | |
149 | Neck.Part0 = torso | |
150 | Neck.Part1 = Head | |
151 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
152 | Neck.C1 = CFrame.new() | |
153 | Neck.Parent = torso | |
154 | end | |
155 | local Limb = char:FindFirstChild("Right Arm") | |
156 | if Limb then | |
157 | ||
158 | Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0) | |
159 | local Joint = Instance.new("Glue") | |
160 | Joint.Name = "RightShoulder" | |
161 | Joint.Part0 = torso | |
162 | Joint.Part1 = Limb | |
163 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
164 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
165 | Joint.Parent = torso | |
166 | ||
167 | local B = Instance.new("Part") | |
168 | B.TopSurface = 0 | |
169 | B.BottomSurface = 0 | |
170 | B.formFactor = "Symmetric" | |
171 | B.Size = Vector3.new(1, 1, 1) | |
172 | B.Transparency = 1 | |
173 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
174 | B.Parent = char | |
175 | local W = Instance.new("Weld") | |
176 | W.Part0 = Limb | |
177 | W.Part1 = B | |
178 | W.C0 = CFrame.new(0, -0.5, 0) | |
179 | W.Parent = Limb | |
180 | ||
181 | end | |
182 | local Limb = char:FindFirstChild("Left Arm") | |
183 | if Limb then | |
184 | ||
185 | Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0) | |
186 | local Joint = Instance.new("Glue") | |
187 | Joint.Name = "LeftShoulder" | |
188 | Joint.Part0 = torso | |
189 | Joint.Part1 = Limb | |
190 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
191 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
192 | Joint.Parent = torso | |
193 | ||
194 | local B = Instance.new("Part") | |
195 | B.TopSurface = 0 | |
196 | B.BottomSurface = 0 | |
197 | B.formFactor = "Symmetric" | |
198 | B.Size = Vector3.new(1, 1, 1) | |
199 | B.Transparency = 1 | |
200 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
201 | B.Parent = char | |
202 | local W = Instance.new("Weld") | |
203 | W.Part0 = Limb | |
204 | W.Part1 = B | |
205 | W.C0 = CFrame.new(0, -0.5, 0) | |
206 | W.Parent = Limb | |
207 | ||
208 | end | |
209 | local Limb = char:FindFirstChild("Right Leg") | |
210 | if Limb then | |
211 | ||
212 | Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0) | |
213 | local Joint = Instance.new("Glue") | |
214 | Joint.Name = "RightHip" | |
215 | Joint.Part0 = torso | |
216 | Joint.Part1 = Limb | |
217 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
218 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
219 | Joint.Parent = torso | |
220 | ||
221 | local B = Instance.new("Part") | |
222 | B.TopSurface = 0 | |
223 | B.BottomSurface = 0 | |
224 | B.formFactor = "Symmetric" | |
225 | B.Size = Vector3.new(1, 1, 1) | |
226 | B.Transparency = 1 | |
227 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
228 | B.Parent = char | |
229 | local W = Instance.new("Weld") | |
230 | W.Part0 = Limb | |
231 | W.Part1 = B | |
232 | W.C0 = CFrame.new(0, -0.5, 0) | |
233 | W.Parent = Limb | |
234 | ||
235 | end | |
236 | local Limb = char:FindFirstChild("Left Leg") | |
237 | if Limb then | |
238 | ||
239 | Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0) | |
240 | local Joint = Instance.new("Glue") | |
241 | Joint.Name = "LeftHip" | |
242 | Joint.Part0 = torso | |
243 | Joint.Part1 = Limb | |
244 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
245 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
246 | Joint.Parent = torso | |
247 | ||
248 | local B = Instance.new("Part") | |
249 | B.TopSurface = 0 | |
250 | B.BottomSurface = 0 | |
251 | B.formFactor = "Symmetric" | |
252 | B.Size = Vector3.new(1, 1, 1) | |
253 | B.Transparency = 1 | |
254 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
255 | B.Parent = char | |
256 | local W = Instance.new("Weld") | |
257 | W.Part0 = Limb | |
258 | W.Part1 = B | |
259 | W.C0 = CFrame.new(0, -0.5, 0) | |
260 | W.Parent = Limb | |
261 | ||
262 | end | |
263 | --[ | |
264 | local Bar = Instance.new("Part") | |
265 | Bar.TopSurface = 0 | |
266 | Bar.BottomSurface = 0 | |
267 | Bar.formFactor = "Symmetric" | |
268 | Bar.Size = Vector3.new(1, 1, 1) | |
269 | Bar.Transparency = 1 | |
270 | Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0) | |
271 | Bar.Parent = char | |
272 | local Weld = Instance.new("Weld") | |
273 | Weld.Part0 = torso | |
274 | Weld.Part1 = Bar | |
275 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
276 | Weld.Parent = torso | |
277 | --]] | |
278 | ||
279 | torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z)) | |
280 | ||
281 | end | |
282 | ||
283 | ------------------------------------------------------- | |
284 | --End Kyu's shitty stuff-- | |
285 | ------------------------------------------------------- | |
286 | ||
287 | ------------------------------------------------------- | |
288 | --Start Important Functions-- | |
289 | ------------------------------------------------------- | |
290 | function swait(num) | |
291 | if num == 0 or num == nil then | |
292 | game:service("RunService").Stepped:wait(0) | |
293 | else | |
294 | for i = 0, num do | |
295 | game:service("RunService").Stepped:wait(0) | |
296 | end | |
297 | end | |
298 | end | |
299 | function thread(f) | |
300 | coroutine.resume(coroutine.create(f)) | |
301 | end | |
302 | function clerp(a, b, t) | |
303 | local qa = { | |
304 | QuaternionFromCFrame(a) | |
305 | } | |
306 | local qb = { | |
307 | QuaternionFromCFrame(b) | |
308 | } | |
309 | local ax, ay, az = a.x, a.y, a.z | |
310 | local bx, by, bz = b.x, b.y, b.z | |
311 | local _t = 1 - t | |
312 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
313 | end | |
314 | function QuaternionFromCFrame(cf) | |
315 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
316 | local trace = m00 + m11 + m22 | |
317 | if trace > 0 then | |
318 | local s = math.sqrt(1 + trace) | |
319 | local recip = 0.5 / s | |
320 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
321 | else | |
322 | local i = 0 | |
323 | if m00 < m11 then | |
324 | i = 1 | |
325 | end | |
326 | if m22 > (i == 0 and m00 or m11) then | |
327 | i = 2 | |
328 | end | |
329 | if i == 0 then | |
330 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
331 | local recip = 0.5 / s | |
332 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
333 | elseif i == 1 then | |
334 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
335 | local recip = 0.5 / s | |
336 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
337 | elseif i == 2 then | |
338 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
339 | local recip = 0.5 / s | |
340 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
341 | end | |
342 | end | |
343 | end | |
344 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
345 | local xs, ys, zs = x + x, y + y, z + z | |
346 | local wx, wy, wz = w * xs, w * ys, w * zs | |
347 | local xx = x * xs | |
348 | local xy = x * ys | |
349 | local xz = x * zs | |
350 | local yy = y * ys | |
351 | local yz = y * zs | |
352 | local zz = z * zs | |
353 | 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)) | |
354 | end | |
355 | function QuaternionSlerp(a, b, t) | |
356 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
357 | local startInterp, finishInterp | |
358 | if cosTheta >= 1.0E-4 then | |
359 | if 1 - cosTheta > 1.0E-4 then | |
360 | local theta = math.acos(cosTheta) | |
361 | local invSinTheta = 1 / Sin(theta) | |
362 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
363 | finishInterp = Sin(t * theta) * invSinTheta | |
364 | else | |
365 | startInterp = 1 - t | |
366 | finishInterp = t | |
367 | end | |
368 | elseif 1 + cosTheta > 1.0E-4 then | |
369 | local theta = math.acos(-cosTheta) | |
370 | local invSinTheta = 1 / Sin(theta) | |
371 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
372 | finishInterp = Sin(t * theta) * invSinTheta | |
373 | else | |
374 | startInterp = t - 1 | |
375 | finishInterp = t | |
376 | end | |
377 | 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 | |
378 | end | |
379 | function rayCast(Position, Direction, Range, Ignore) | |
380 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
381 | end | |
382 | local RbxUtility = LoadLibrary("RbxUtility") | |
383 | local Create = RbxUtility.Create | |
384 | ||
385 | ------------------------------------------------------- | |
386 | --Start Damage Function-- | |
387 | ------------------------------------------------------- | |
388 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
389 | if hit.Parent == nil then | |
390 | return | |
391 | end | |
392 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
393 | for _, v in pairs(hit.Parent:children()) do | |
394 | if v:IsA("Humanoid") then | |
395 | h = v | |
396 | end | |
397 | end | |
398 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
399 | warn'No R15 allowed' | |
400 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
401 | end | |
402 | ||
403 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
404 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
405 | if hit.Parent.DebounceHit.Value == true then | |
406 | return | |
407 | end | |
408 | end | |
409 | if insta == true then | |
410 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
411 | end | |
412 | local c = Create("ObjectValue"){ | |
413 | Name = "creator", | |
414 | Value = game:service("Players").LocalPlayer, | |
415 | Parent = h, | |
416 | } | |
417 | game:GetService("Debris"):AddItem(c, .5) | |
418 | if HitSound ~= nil and HitPitch ~= nil then | |
419 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
420 | end | |
421 | local Damage = math.random(minim, maxim) | |
422 | local blocked = false | |
423 | local block = hit.Parent:findFirstChild("Block") | |
424 | if block ~= nil then | |
425 | if block.className == "IntValue" then | |
426 | if block.Value > 0 then | |
427 | blocked = true | |
428 | block.Value = block.Value - 1 | |
429 | print(block.Value) | |
430 | end | |
431 | end | |
432 | end | |
433 | if blocked == false then | |
434 | h.Health = h.Health - Damage | |
435 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
436 | else | |
437 | h.Health = h.Health - (Damage / 2) | |
438 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
439 | end | |
440 | if Type == "Knockdown" then | |
441 | local hum = hit.Parent.Humanoid | |
442 | hum.PlatformStand = true | |
443 | coroutine.resume(coroutine.create(function(HHumanoid) | |
444 | swait(1) | |
445 | HHumanoid.PlatformStand = false | |
446 | end), hum) | |
447 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
448 | local bodvol = Create("BodyVelocity"){ | |
449 | velocity = angle * knockback, | |
450 | P = 5000, | |
451 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
452 | Parent = hit, | |
453 | } | |
454 | local rl = Create("BodyAngularVelocity"){ | |
455 | P = 3000, | |
456 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
457 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
458 | Parent = hit, | |
459 | } | |
460 | game:GetService("Debris"):AddItem(bodvol, .5) | |
461 | game:GetService("Debris"):AddItem(rl, .5) | |
462 | elseif Type == "Normal" then | |
463 | local vp = Create("BodyVelocity"){ | |
464 | P = 500, | |
465 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
466 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
467 | } | |
468 | if knockback > 0 then | |
469 | vp.Parent = hit.Parent.Torso | |
470 | end | |
471 | game:GetService("Debris"):AddItem(vp, .5) | |
472 | elseif Type == "Up" then | |
473 | local bodyVelocity = Create("BodyVelocity"){ | |
474 | velocity = Vector3.new(0, 20, 0), | |
475 | P = 5000, | |
476 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
477 | Parent = hit, | |
478 | } | |
479 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
480 | elseif Type == "DarkUp" then | |
481 | coroutine.resume(coroutine.create(function() | |
482 | for i = 0, 1, 0.1 do | |
483 | swait() | |
484 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
485 | end | |
486 | end)) | |
487 | local bodyVelocity = Create("BodyVelocity"){ | |
488 | velocity = Vector3.new(0, 20, 0), | |
489 | P = 5000, | |
490 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
491 | Parent = hit, | |
492 | } | |
493 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
494 | elseif Type == "Snare" then | |
495 | local bp = Create("BodyPosition"){ | |
496 | P = 2000, | |
497 | D = 100, | |
498 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
499 | position = hit.Parent.Torso.Position, | |
500 | Parent = hit.Parent.Torso, | |
501 | } | |
502 | game:GetService("Debris"):AddItem(bp, 1) | |
503 | elseif Type == "Freeze" then | |
504 | local BodPos = Create("BodyPosition"){ | |
505 | P = 50000, | |
506 | D = 1000, | |
507 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
508 | position = hit.Parent.Torso.Position, | |
509 | Parent = hit.Parent.Torso, | |
510 | } | |
511 | local BodGy = Create("BodyGyro") { | |
512 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
513 | P = 20e+003, | |
514 | Parent = hit.Parent.Torso, | |
515 | cframe = hit.Parent.Torso.CFrame, | |
516 | } | |
517 | hit.Parent.Torso.Anchored = true | |
518 | coroutine.resume(coroutine.create(function(Part) | |
519 | swait(1.5) | |
520 | Part.Anchored = false | |
521 | end), hit.Parent.Torso) | |
522 | game:GetService("Debris"):AddItem(BodPos, 3) | |
523 | game:GetService("Debris"):AddItem(BodGy, 3) | |
524 | end | |
525 | local debounce = Create("BoolValue"){ | |
526 | Name = "DebounceHit", | |
527 | Parent = hit.Parent, | |
528 | Value = true, | |
529 | } | |
530 | game:GetService("Debris"):AddItem(debounce, Delay) | |
531 | c = Create("ObjectValue"){ | |
532 | Name = "creator", | |
533 | Value = Player, | |
534 | Parent = h, | |
535 | } | |
536 | game:GetService("Debris"):AddItem(c, .5) | |
537 | end | |
538 | end | |
539 | ------------------------------------------------------- | |
540 | --End Damage Function-- | |
541 | ------------------------------------------------------- | |
542 | ||
543 | ------------------------------------------------------- | |
544 | --Start Damage Function Customization-- | |
545 | ------------------------------------------------------- | |
546 | function ShowDamage(Pos, Text, Time, Color) | |
547 | local Rate = (1 / 30) | |
548 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
549 | local Text = (Text or "") | |
550 | local Time = (Time or 2) | |
551 | local Color = (Color or Color3.new(1, 0, 1)) | |
552 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
553 | EffectPart.Anchored = true | |
554 | local BillboardGui = Create("BillboardGui"){ | |
555 | Size = UDim2.new(3, 0, 3, 0), | |
556 | Adornee = EffectPart, | |
557 | Parent = EffectPart, | |
558 | } | |
559 | local TextLabel = Create("TextLabel"){ | |
560 | BackgroundTransparency = 1, | |
561 | Size = UDim2.new(1, 0, 1, 0), | |
562 | Text = Text, | |
563 | Font = "Highway", | |
564 | TextColor3 = Color, | |
565 | TextScaled = true, | |
566 | Parent = BillboardGui, | |
567 | } | |
568 | game.Debris:AddItem(EffectPart, (Time)) | |
569 | EffectPart.Parent = game:GetService("Workspace") | |
570 | delay(0, function() | |
571 | local Frames = (Time / Rate) | |
572 | for Frame = 1, Frames do | |
573 | wait(Rate) | |
574 | local Percent = (Frame / Frames) | |
575 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
576 | TextLabel.TextTransparency = Percent | |
577 | end | |
578 | if EffectPart and EffectPart.Parent then | |
579 | EffectPart:Destroy() | |
580 | end | |
581 | end) | |
582 | end | |
583 | ------------------------------------------------------- | |
584 | --End Damage Function Customization-- | |
585 | ------------------------------------------------------- | |
586 | ||
587 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
588 | for _, c in pairs(workspace:children()) do | |
589 | local hum = c:findFirstChild("Humanoid") | |
590 | if hum ~= nil then | |
591 | local head = c:findFirstChild("Head") | |
592 | if head ~= nil then | |
593 | local targ = head.Position - Part.Position | |
594 | local mag = targ.magnitude | |
595 | if magni >= mag and c.Name ~= plr.Name then | |
596 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2) | |
597 | end | |
598 | end | |
599 | end | |
600 | end | |
601 | end | |
602 | ||
603 | ||
604 | CFuncs = { | |
605 | Part = { | |
606 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
607 | local Part = Create("Part")({ | |
608 | Parent = Parent, | |
609 | Reflectance = Reflectance, | |
610 | Transparency = Transparency, | |
611 | CanCollide = false, | |
612 | Locked = true, | |
613 | BrickColor = BrickColor.new(tostring(BColor)), | |
614 | Name = Name, | |
615 | Size = Size, | |
616 | Material = Material | |
617 | }) | |
618 | RemoveOutlines(Part) | |
619 | return Part | |
620 | end | |
621 | }, | |
622 | Mesh = { | |
623 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
624 | local Msh = Create(Mesh)({ | |
625 | Parent = Part, | |
626 | Offset = OffSet, | |
627 | Scale = Scale | |
628 | }) | |
629 | if Mesh == "SpecialMesh" then | |
630 | Msh.MeshType = MeshType | |
631 | Msh.MeshId = MeshId | |
632 | end | |
633 | return Msh | |
634 | end | |
635 | }, | |
636 | Mesh = { | |
637 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
638 | local Msh = Create(Mesh)({ | |
639 | Parent = Part, | |
640 | Offset = OffSet, | |
641 | Scale = Scale | |
642 | }) | |
643 | if Mesh == "SpecialMesh" then | |
644 | Msh.MeshType = MeshType | |
645 | Msh.MeshId = MeshId | |
646 | end | |
647 | return Msh | |
648 | end | |
649 | }, | |
650 | Weld = { | |
651 | Create = function(Parent, Part0, Part1, C0, C1) | |
652 | local Weld = Create("Weld")({ | |
653 | Parent = Parent, | |
654 | Part0 = Part0, | |
655 | Part1 = Part1, | |
656 | C0 = C0, | |
657 | C1 = C1 | |
658 | }) | |
659 | return Weld | |
660 | end | |
661 | }, | |
662 | Sound = { | |
663 | Create = function(id, par, vol, pit) | |
664 | coroutine.resume(coroutine.create(function() | |
665 | local S = Create("Sound")({ | |
666 | Volume = vol, | |
667 | Pitch = pit or 1, | |
668 | SoundId = id, | |
669 | Parent = par or workspace | |
670 | }) | |
671 | wait() | |
672 | S:play() | |
673 | game:GetService("Debris"):AddItem(S, 6) | |
674 | end)) | |
675 | end | |
676 | }, | |
677 | ParticleEmitter = { | |
678 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
679 | local fp = Create("ParticleEmitter")({ | |
680 | Parent = Parent, | |
681 | Color = ColorSequence.new(Color1, Color2), | |
682 | LightEmission = LightEmission, | |
683 | Size = Size, | |
684 | Texture = Texture, | |
685 | Transparency = Transparency, | |
686 | ZOffset = ZOffset, | |
687 | Acceleration = Accel, | |
688 | Drag = Drag, | |
689 | LockedToPart = LockedToPart, | |
690 | VelocityInheritance = VelocityInheritance, | |
691 | EmissionDirection = EmissionDirection, | |
692 | Enabled = Enabled, | |
693 | Lifetime = LifeTime, | |
694 | Rate = Rate, | |
695 | Rotation = Rotation, | |
696 | RotSpeed = RotSpeed, | |
697 | Speed = Speed, | |
698 | VelocitySpread = VelocitySpread | |
699 | }) | |
700 | return fp | |
701 | end | |
702 | } | |
703 | } | |
704 | function RemoveOutlines(part) | |
705 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
706 | end | |
707 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
708 | local Part = Create("Part")({ | |
709 | formFactor = FormFactor, | |
710 | Parent = Parent, | |
711 | Reflectance = Reflectance, | |
712 | Transparency = Transparency, | |
713 | CanCollide = false, | |
714 | Locked = true, | |
715 | BrickColor = BrickColor.new(tostring(BColor)), | |
716 | Name = Name, | |
717 | Size = Size, | |
718 | Material = Material | |
719 | }) | |
720 | RemoveOutlines(Part) | |
721 | return Part | |
722 | end | |
723 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
724 | local Msh = Create(Mesh)({ | |
725 | Parent = Part, | |
726 | Offset = OffSet, | |
727 | Scale = Scale | |
728 | }) | |
729 | if Mesh == "SpecialMesh" then | |
730 | Msh.MeshType = MeshType | |
731 | Msh.MeshId = MeshId | |
732 | end | |
733 | return Msh | |
734 | end | |
735 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
736 | local Weld = Create("Weld")({ | |
737 | Parent = Parent, | |
738 | Part0 = Part0, | |
739 | Part1 = Part1, | |
740 | C0 = C0, | |
741 | C1 = C1 | |
742 | }) | |
743 | return Weld | |
744 | end | |
745 | ||
746 | ||
747 | ------------------------------------------------------- | |
748 | --Start Effect Function-- | |
749 | ------------------------------------------------------- | |
750 | EffectModel = Instance.new("Model", char) | |
751 | Effects = { | |
752 | Block = { | |
753 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
754 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
755 | prt.Anchored = true | |
756 | prt.CFrame = cframe | |
757 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
758 | game:GetService("Debris"):AddItem(prt, 10) | |
759 | if Type == 1 or Type == nil then | |
760 | table.insert(Effects, { | |
761 | prt, | |
762 | "Block1", | |
763 | delay, | |
764 | x3, | |
765 | y3, | |
766 | z3, | |
767 | msh | |
768 | }) | |
769 | elseif Type == 2 then | |
770 | table.insert(Effects, { | |
771 | prt, | |
772 | "Block2", | |
773 | delay, | |
774 | x3, | |
775 | y3, | |
776 | z3, | |
777 | msh | |
778 | }) | |
779 | else | |
780 | table.insert(Effects, { | |
781 | prt, | |
782 | "Block3", | |
783 | delay, | |
784 | x3, | |
785 | y3, | |
786 | z3, | |
787 | msh | |
788 | }) | |
789 | end | |
790 | end | |
791 | }, | |
792 | Sphere = { | |
793 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
794 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
795 | prt.Anchored = true | |
796 | prt.CFrame = cframe | |
797 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1)) | |
798 | game:GetService("Debris"):AddItem(prt, 10) | |
799 | table.insert(Effects, { | |
800 | prt, | |
801 | "Cylinder", | |
802 | delay, | |
803 | x3, | |
804 | y3, | |
805 | z3, | |
806 | msh | |
807 | }) | |
808 | end | |
809 | }, | |
810 | Cylinder = { | |
811 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
812 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
813 | prt.Anchored = true | |
814 | prt.CFrame = cframe | |
815 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
816 | game:GetService("Debris"):AddItem(prt, 10) | |
817 | table.insert(Effects, { | |
818 | prt, | |
819 | "Cylinder", | |
820 | delay, | |
821 | x3, | |
822 | y3, | |
823 | z3, | |
824 | msh | |
825 | }) | |
826 | end | |
827 | }, | |
828 | Wave = { | |
829 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
830 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
831 | prt.Anchored = true | |
832 | prt.CFrame = cframe | |
833 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
834 | game:GetService("Debris"):AddItem(prt, 10) | |
835 | table.insert(Effects, { | |
836 | prt, | |
837 | "Cylinder", | |
838 | delay, | |
839 | x3 / 60, | |
840 | y3 / 60, | |
841 | z3 / 60, | |
842 | msh | |
843 | }) | |
844 | end | |
845 | }, | |
846 | Ring = { | |
847 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
848 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
849 | prt.Anchored = true | |
850 | prt.CFrame = cframe | |
851 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
852 | game:GetService("Debris"):AddItem(prt, 10) | |
853 | table.insert(Effects, { | |
854 | prt, | |
855 | "Cylinder", | |
856 | delay, | |
857 | x3, | |
858 | y3, | |
859 | z3, | |
860 | msh | |
861 | }) | |
862 | end | |
863 | }, | |
864 | Break = { | |
865 | Create = function(brickcolor, cframe, x1, y1, z1) | |
866 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
867 | prt.Anchored = true | |
868 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
869 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
870 | local num = math.random(10, 50) / 1000 | |
871 | game:GetService("Debris"):AddItem(prt, 10) | |
872 | table.insert(Effects, { | |
873 | prt, | |
874 | "Shatter", | |
875 | num, | |
876 | prt.CFrame, | |
877 | math.random() - math.random(), | |
878 | 0, | |
879 | math.random(50, 100) / 100 | |
880 | }) | |
881 | end | |
882 | }, | |
883 | Spiral = { | |
884 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
885 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
886 | prt.Anchored = true | |
887 | prt.CFrame = cframe | |
888 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
889 | game:GetService("Debris"):AddItem(prt, 10) | |
890 | table.insert(Effects, { | |
891 | prt, | |
892 | "Cylinder", | |
893 | delay, | |
894 | x3, | |
895 | y3, | |
896 | z3, | |
897 | msh | |
898 | }) | |
899 | end | |
900 | }, | |
901 | Push = { | |
902 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
903 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
904 | prt.Anchored = true | |
905 | prt.CFrame = cframe | |
906 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
907 | game:GetService("Debris"):AddItem(prt, 10) | |
908 | table.insert(Effects, { | |
909 | prt, | |
910 | "Cylinder", | |
911 | delay, | |
912 | x3, | |
913 | y3, | |
914 | z3, | |
915 | msh | |
916 | }) | |
917 | end | |
918 | } | |
919 | } | |
920 | ------------------------------------------------------- | |
921 | --End Effect Function-- | |
922 | ------------------------------------------------------- | |
923 | ||
924 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
925 | local NSound = nil | |
926 | coroutine.resume(coroutine.create(function() | |
927 | NSound = Instance.new("Sound", PARENT) | |
928 | NSound.Volume = VOLUME | |
929 | NSound.Pitch = PITCH | |
930 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
931 | swait() | |
932 | NSound:play() | |
933 | game:GetService("Debris"):AddItem(NSound, 10) | |
934 | end)) | |
935 | return NSound | |
936 | end | |
937 | ||
938 | ||
939 | ||
940 | ||
941 | ||
942 | ------------------------------------------------------- | |
943 | --End Important Functions-- | |
944 | ------------------------------------------------------- | |
945 | ||
946 | ||
947 | ------------------------------------------------------- | |
948 | --Start Music Option-- | |
949 | ------------------------------------------------------- | |
950 | local Music = Instance.new("Sound",tors) | |
951 | Music.Volume = 2.5 | |
952 | Music.SoundId = "rbxassetid://" | |
953 | Music.Looped = true | |
954 | Music.Pitch = 1 --Pitcher | |
955 | Music:Play() | |
956 | ------------------------------------------------------- | |
957 | --End Music Option-- | |
958 | ------------------------------------------------------- | |
959 | ||
960 | ||
961 | ------------------------------------------------------- | |
962 | --Start Attacks N Stuff-- | |
963 | ------------------------------------------------------- | |
964 | local sine=0 | |
965 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
966 | local Hitboxpart = Instance.new("Part", EffectModel) | |
967 | RemoveOutlines(Hitboxpart) | |
968 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
969 | Hitboxpart.CanCollide = false | |
970 | Hitboxpart.Transparency = 1 | |
971 | Hitboxpart.Anchored = true | |
972 | Hitboxpart.CFrame = Pose | |
973 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
974 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
975 | end | |
976 | function GEtOuT() | |
977 | attack = true | |
978 | hum.WalkSpeed = 2.01 | |
979 | CreateSound("749031341", hed, 10, 1) | |
980 | for i = 0,2,0.1 do | |
981 | swait() | |
982 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(50), Rad(0), Rad(0)), 0.15) | |
983 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
984 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15) | |
985 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15) | |
986 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1) | |
987 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1) | |
988 | end | |
989 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 7, 10, 53, "Knockdown") | |
990 | for i = 0,4,0.1 do | |
991 | swait() | |
992 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(-50), Rad(0), Rad(0)), 0.15) | |
993 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
994 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15) | |
995 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15) | |
996 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1) | |
997 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1) | |
998 | end | |
999 | local Blobby = Instance.new("Part", char) | |
1000 | Blobby.Name = "Blob" | |
1001 | Blobby.CanCollide = false | |
1002 | Blobby.BrickColor = BrickColor.new("Really black") | |
1003 | Blobby.Transparency = 0 | |
1004 | Blobby.Material = "Plastic" | |
1005 | Blobby.Size = Vector3.new(1, 1, 2) | |
1006 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
1007 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
1008 | ||
1009 | local Weld = Instance.new("Weld", Blobby) | |
1010 | Weld.Part0 = ra | |
1011 | Weld.Part1 = Blobby | |
1012 | Weld.C1 = CFrame.new(0, -.3, 1.4) | |
1013 | Weld.C0 = CFrame.Angles(math.rad(-90),0,0) | |
1014 | ||
1015 | local M2 = Instance.new("SpecialMesh") | |
1016 | M2.Parent = Blobby | |
1017 | M2.MeshId = "http://www.roblox.com/asset/?id=491267221" | |
1018 | M2.TextureId = "http://www.roblox.com/asset/?id=491267267" | |
1019 | M2.Scale = Vector3.new(0.65, 0.65, 0.65) | |
1020 | for i = 0,6,0.1 do | |
1021 | swait() | |
1022 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1023 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1024 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1025 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1026 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1027 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1028 | end | |
1029 | Blobby.Transparency = 1 | |
1030 | Blobby:Destroy() | |
1031 | attack = false | |
1032 | hum.WalkSpeed = 16 | |
1033 | end | |
1034 | ||
1035 | function ShutTheHellUp() | |
1036 | attack = true | |
1037 | hum.WalkSpeed = 2.01 | |
1038 | CreateSound("336377340", hed, 10, 1) | |
1039 | for i = 0,3,0.1 do | |
1040 | swait() | |
1041 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1042 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1043 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1044 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1045 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1046 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1047 | end | |
1048 | for i = 0,1.2,0.1 do | |
1049 | swait() | |
1050 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1051 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1052 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1053 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1054 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1055 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1056 | end | |
1057 | for i = 0,1.2,0.1 do | |
1058 | swait() | |
1059 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1060 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1061 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1062 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1063 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1064 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1065 | end | |
1066 | for i = 0,1.2,0.1 do | |
1067 | swait() | |
1068 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1069 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1070 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1071 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1072 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1073 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1074 | end | |
1075 | for i = 0,1.2,0.1 do | |
1076 | swait() | |
1077 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1078 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1079 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1080 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1081 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1082 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1083 | end | |
1084 | for i = 0,2,0.1 do | |
1085 | swait() | |
1086 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1087 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1088 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1089 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1090 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(120), Rad(0), Rad(5)), 0.1) | |
1091 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1092 | end | |
1093 | for i = 0,2,0.1 do | |
1094 | swait() | |
1095 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1096 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1097 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1098 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1099 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1100 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1101 | end | |
1102 | hum.WalkSpeed = 16 | |
1103 | attack = false | |
1104 | end | |
1105 | ||
1106 | function SpinMeDad() | |
1107 | attack = true | |
1108 | hum.WalkSpeed = 1.01 | |
1109 | CreateSound("145799973", hed, 10, 1) | |
1110 | for i = 0,58,0.1 do | |
1111 | swait() | |
1112 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15) | |
1113 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1114 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1115 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1116 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
1117 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1) | |
1118 | end | |
1119 | hum.WalkSpeed = 16 | |
1120 | attack = false | |
1121 | end | |
1122 | ||
1123 | function EndMySufferingV2() | |
1124 | attack = true | |
1125 | hum.WalkSpeed = 1.01 | |
1126 | CreateSound("577475178", hed, 10, 1) | |
1127 | for i = 0,18,0.1 do | |
1128 | swait() | |
1129 | rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(-10),math.rad(0)),0.15) | |
1130 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
1131 | RH.C0=clerp(RH.C0,CF(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
1132 | LH.C0=clerp(LH.C0,CF(-1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(-20)),0.15) | |
1133 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5+0.1*math.sin(sine/30), -0.6) * angles(math.rad(-0), math.rad(10), math.rad(-110)), 0.1) | |
1134 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(-0), math.rad(-10), math.rad(-105)), 0.1) | |
1135 | end | |
1136 | attack = false | |
1137 | hum.WalkSpeed = 16 | |
1138 | end | |
1139 | ||
1140 | function MYSPAGHETTTTTTT() | |
1141 | attack = true | |
1142 | hum.WalkSpeed = 1.01 | |
1143 | CreateSound("1282149571", hed, 10, 1) | |
1144 | for i = 0,4,0.1 do | |
1145 | swait() | |
1146 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1147 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1148 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1149 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1150 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(5)), 0.1) | |
1151 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115 + 4), Rad(45), Rad(50)), 0.1) | |
1152 | end | |
1153 | for i = 0,5,0.1 do | |
1154 | swait() | |
1155 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1156 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1157 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1158 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1159 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1) | |
1160 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1) | |
1161 | end | |
1162 | for i = 0,6,0.1 do | |
1163 | swait() | |
1164 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1165 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1166 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1167 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1168 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(-10)), 0.1) | |
1169 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(10)), 0.1) | |
1170 | end | |
1171 | attack = false | |
1172 | hum.WalkSpeed = 16 | |
1173 | end | |
1174 | ||
1175 | function FINLAND() | |
1176 | attack = true | |
1177 | hum.WalkSpeed = 1.01 | |
1178 | CreateSound("313099773", hed, 10, 1) | |
1179 | for i = 0,6,0.1 do | |
1180 | swait() | |
1181 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1182 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-90), Rad(0), Rad(0)), 0.3) | |
1183 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1184 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1185 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
1186 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
1187 | end | |
1188 | attack = false | |
1189 | hum.WalkSpeed = 16 | |
1190 | end | |
1191 | ||
1192 | function NothingPersonal() | |
1193 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1194 | local HITBODY = mouse.Target.Parent | |
1195 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso") | |
1196 | local HEAD = HITBODY:FindFirstChild("Head") | |
1197 | local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1198 | if TORS ~= nil and HUMAN ~= nil then | |
1199 | attack = true | |
1200 | root.CFrame = TORS.CFrame * CFrame.new(-1,0,3) | |
1201 | TORS.Anchored = true | |
1202 | hum.WalkSpeed = 0 | |
1203 | CreateSound("1255922819", hed, 10, 1) | |
1204 | end | |
1205 | wait(3.5) | |
1206 | for i = 0,9,0.1 do | |
1207 | swait() | |
1208 | for i = 1,2 do | |
1209 | Effects.Sphere.Create(BrickColor.new("Really red"), TORS.CFrame*CFrame.new(math.random(-200,200)/100,math.random(-300,200)/100,math.random(-100,100)/100), 1, 1, 1, 15, 15, 15, 0.2) | |
1210 | end | |
1211 | end | |
1212 | wait(.5) | |
1213 | TORS.Anchored = false | |
1214 | attack = false | |
1215 | hum.WalkSpeed = 16 | |
1216 | end | |
1217 | end | |
1218 | ||
1219 | function VeryMuchWorrying() | |
1220 | attack = true | |
1221 | hum.WalkSpeed = 1.01 | |
1222 | CreateSound("1395854043", hed, 10, 1) | |
1223 | for i = 0,14,0.1 do | |
1224 | swait() | |
1225 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1226 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1227 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1228 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1229 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-145)), 0.1) | |
1230 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(145)), 0.1) | |
1231 | end | |
1232 | attack = false | |
1233 | hum.WalkSpeed = 16 | |
1234 | end | |
1235 | ||
1236 | function AnotherOne() | |
1237 | attack = true | |
1238 | hum.WalkSpeed = 1.01 | |
1239 | local icri = CreateSound("1205111204", hed, 10, 1) | |
1240 | swait(130) | |
1241 | local FRAME = tors.CFrame | |
1242 | repeat | |
1243 | swait() | |
1244 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1245 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1246 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1247 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
1248 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1) | |
1249 | tors.CFrame = FRAME * CF(0,1,0) | |
1250 | swait() | |
1251 | tors.CFrame = FRAME | |
1252 | until icri.Playing == false | |
1253 | attack = false | |
1254 | hum.WalkSpeed = 16 | |
1255 | end | |
1256 | ||
1257 | function kyu_will_break_your_neck_asdf_longest_function_name_ever_xd() | |
1258 | attack = true | |
1259 | print('Fun Fact : "kyu_will_break_your_neck_asdf_longest_function_name_ever_xd" is the name of this function') | |
1260 | for i = 0,6,0.1 do | |
1261 | swait() | |
1262 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1263 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1264 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1265 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1266 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(170), Rad(0), Rad(-15)), 0.1) | |
1267 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(15)), 0.1) | |
1268 | end | |
1269 | CreateSound("1093102664", hed, 10, 1) | |
1270 | for i = 0,4,0.1 do | |
1271 | swait() | |
1272 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(5), Rad(0), Rad(0)), 0.15) | |
1273 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(40), Rad(0)), 0.4) | |
1274 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1275 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1276 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-40)), 0.4) | |
1277 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(40)), 0.4) | |
1278 | end | |
1279 | hum.MaxHealth = 0 | |
1280 | ragdoll(char) | |
1281 | error("Seems like you just died.") | |
1282 | end | |
1283 | ||
1284 | MoreTaunts = false | |
1285 | mouse.KeyDown:connect(function(key) | |
1286 | if attack == false then | |
1287 | if MoreTaunts == false then | |
1288 | if key == 'q' then | |
1289 | GEtOuT() | |
1290 | elseif key == 'e' then | |
1291 | ShutTheHellUp() | |
1292 | elseif key == 'r' then | |
1293 | MYSPAGHETTTTTTT() | |
1294 | elseif key == 't' then | |
1295 | SpinMeDad() | |
1296 | elseif key == 'y' then | |
1297 | EndMySufferingV2() | |
1298 | elseif key == 'u' then | |
1299 | print'ur mom gey' | |
1300 | elseif key == 'f' then | |
1301 | FINLAND() | |
1302 | elseif key == 'z' then | |
1303 | NothingPersonal() | |
1304 | elseif key == 'v' then | |
1305 | VeryMuchWorrying() | |
1306 | end | |
1307 | end | |
1308 | if key == 'g' and MoreTaunts == false then | |
1309 | print'more tauntys yey' | |
1310 | MoreTaunts = true | |
1311 | elseif key == 'g' and MoreTaunts == true then | |
1312 | print'rip tauntys ;c' | |
1313 | MoreTaunts = false | |
1314 | end | |
1315 | if MoreTaunts == true then | |
1316 | if key == 'q' then | |
1317 | AnotherOne() | |
1318 | elseif key == 't' then | |
1319 | kyu_will_break_your_neck_asdf_longest_function_name_ever_xd() | |
1320 | end | |
1321 | end | |
1322 | end | |
1323 | end) | |
1324 | ||
1325 | ------------------------------------------------------- | |
1326 | --End Attacks N Stuff-- | |
1327 | ------------------------------------------------------- | |
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ------------------------------------------------------- | |
1339 | --Start Animations-- | |
1340 | ------------------------------------------------------- | |
1341 | local equipped = false | |
1342 | local idle = 0 | |
1343 | local change = 1 | |
1344 | local val = 0 | |
1345 | local toim = 0 | |
1346 | local idleanim = 0.4 | |
1347 | hum.Animator.Parent = nil | |
1348 | while true do | |
1349 | swait() | |
1350 | sine = sine + change | |
1351 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1352 | local velderp = root.Velocity.y | |
1353 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1354 | if equipped == true or equipped == false then | |
1355 | if attack == false then | |
1356 | idle = idle + 1 | |
1357 | else | |
1358 | idle = 0 | |
1359 | end | |
1360 | if 1 < root.Velocity.y and hitfloor == nil then | |
1361 | Anim = "Jump" | |
1362 | if attack == false then | |
1363 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
1364 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
1365 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
1366 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
1367 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15) | |
1368 | RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3) | |
1369 | end | |
1370 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1371 | Anim = "Fall" | |
1372 | if attack == false then | |
1373 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1374 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
1375 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
1376 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
1377 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
1378 | RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3) | |
1379 | end | |
1380 | elseif torvel < 1 and hitfloor ~= nil then | |
1381 | Anim = "Idle" | |
1382 | change = 1 | |
1383 | if attack == false then | |
1384 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1385 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3) | |
1386 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1387 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1388 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1) | |
1389 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1) | |
1390 | end | |
1391 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
1392 | Anim = "Walk" | |
1393 | change = 1 | |
1394 | if attack == false then | |
1395 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15) | |
1396 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1397 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 35 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
1398 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 35 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
1399 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(5)), 0.1) | |
1400 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0), Rad(-5)), 0.1) | |
1401 | end | |
1402 | end | |
1403 | end | |
1404 | if 0 < #Effects then | |
1405 | for e = 1, #Effects do | |
1406 | if Effects[e] ~= nil then | |
1407 | local Thing = Effects[e] | |
1408 | if Thing ~= nil then | |
1409 | local Part = Thing[1] | |
1410 | local Mode = Thing[2] | |
1411 | local Delay = Thing[3] | |
1412 | local IncX = Thing[4] | |
1413 | local IncY = Thing[5] | |
1414 | local IncZ = Thing[6] | |
1415 | if 1 >= Thing[1].Transparency then | |
1416 | if Thing[2] == "Block1" then | |
1417 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1418 | local Mesh = Thing[1].Mesh | |
1419 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1420 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1421 | elseif Thing[2] == "Block2" then | |
1422 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1423 | local Mesh = Thing[7] | |
1424 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1425 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1426 | elseif Thing[2] == "Block3" then | |
1427 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
1428 | local Mesh = Thing[7] | |
1429 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1430 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1431 | elseif Thing[2] == "Cylinder" then | |
1432 | local Mesh = Thing[1].Mesh | |
1433 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1434 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1435 | elseif Thing[2] == "Blood" then | |
1436 | local Mesh = Thing[7] | |
1437 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1438 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1439 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1440 | elseif Thing[2] == "Elec" then | |
1441 | local Mesh = Thing[1].Mesh | |
1442 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1443 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1444 | elseif Thing[2] == "Disappear" then | |
1445 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1446 | elseif Thing[2] == "Shatter" then | |
1447 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1448 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1449 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1450 | Thing[6] = Thing[6] + Thing[5] | |
1451 | end | |
1452 | else | |
1453 | Part.Parent = nil | |
1454 | table.remove(Effects, e) | |
1455 | end | |
1456 | end | |
1457 | end | |
1458 | end | |
1459 | end | |
1460 | end | |
1461 | ------------------------------------------------------- | |
1462 | --End Animations And Script-- | |
1463 | ------------------------------------------------------- |