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