forked from KaemeZere/ROBLOX-EXPLOIT-SCRIPTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Asgore.txt
538 lines (500 loc) · 21 KB
/
Asgore.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
--------------------------------------------------------
pls = game:GetService'Players'
rs = game:GetService'RunService'
uinps = game:GetService'UserInputService'
lp = pls.LocalPlayer
mouse = lp:GetMouse()
c = lp.Character
human = c.Humanoid
critTime = .27
--------------------------------------------------------
local h = Instance.new("Part",c)
h.Name = "Trident"
h.BrickColor = BrickColor.new(1,0,0)
h.Material = "Neon"
h.Size = Vector3.new(2,1,10)
h.Locked = true
h.CanCollide = false
h.Name = "Handle"
local m = Instance.new("SpecialMesh",h)
m.MeshType = "FileMesh"
m.Scale = Vector3.new(1.5,2.3,2.3)
m.MeshId = "http://www.roblox.com/asset/?id=30694864"
local hw = Instance.new("Motor",c.Torso)
hw.Name = "HandleWeld"
hw.Part0 = c.Torso
hw.Part1 = h
local l = Instance.new("PointLight",h)
l.Range = 15
l.Brightness = .6
l.Color = Color3.new(1,0,0)
--------------------------------------------------------
Debounces = {
FPS = 0;
Mode = "Still";
Debounce = false;
wasCrit = false;
SwitchingModes = false;
attackNumber = 0;
isAttacking = false;
isMoving = false;
isSprinting = false;
isJumping = false;
isPassive = false;
isTyping = false;
isAgg = false;
musicOn = false;
isCombo = 0;
}
--------------------------------------------------------
numLerp = function(start, goal, alpha)
return(((goal - start) * alpha) + start)
end
CFrameZero = function()
return CFrame.new(Vector3.new())
end
rad = function(value)
return math.rad(value)
end
CFAngles = function(Vector)
return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
end
--------------------------------------------------------
AnimStat = {
lerpSpeed = .2;
}
Joints = {
c.HumanoidRootPart.RootJoint;
c.Torso.Neck;
c.Torso['Left Shoulder'];
c.Torso['Right Shoulder'];
c.Torso['Left Hip'];
c.Torso['Right Hip'];
hw;
}
JointTargets = {
CFrameZero();
CFrameZero();
CFrameZero();
CFrameZero();
CFrameZero();
CFrameZero();
CFrameZero();
}
--------------------------------------------------------
prepareCharacter = function()
local music = Instance.new("Sound",c)
music.SoundId = "rbxassetid://311086301"
music.Looped = true
music.Volume = 1
fight = music
local music2 = Instance.new("Sound",c)
music2.SoundId = "rbxassetid://311086498"
music2.Looped = true
music2.Volume = 1
pass = music2
human.WalkSpeed = 0
human.JumpPower = 0
human.Animator:Destroy()
human.MaxHealth = 5500
c.Animate:Destroy()
wait()
human.Health = 5500
c.Health:Destroy()
end
uinps.InputBegan:connect(function(InputObject)
if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
Debounces.isPassive = not Debounces.isPassive
end
end)
uinps.InputBegan:connect(function(InputObject)
if InputObject.KeyCode == Enum.KeyCode.J and Debounces.isTyping == false then
Debounces.isAgg = not Debounces.isAgg
end
end)
uinps.InputBegan:connect(function(InputObject)
if InputObject.KeyCode == Enum.KeyCode.L and Debounces.isTyping == false then
Debounces.musicOn = not Debounces.musicOn
end
end)
setJointCFrames = function(table)
for i = 1,#table do
JointTargets[i] = table[i]
end
end
setLerp = function(speed)
AnimStat.lerpSpeed = speed
end
--------------------------------------------------------
prepareCharacter()
--------------------------------------------------------
spawn(function()
local sine = 0
while wait() do
Debounces.isCombo = Debounces.isCombo + 1/30
if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isJumping == false and Debounces.Debounce == false then
setLerp(.2)
if Debounces.isPassive == true then
setJointCFrames({
CFrame.new(Vector3.new(0, -1 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(-5, 0, 0));
CFrame.new(Vector3.new(0, 1.57 + math.sin(tick() * 1.8)/40, -0.18)) * CFAngles(Vector3.new(-13.501 + math.sin(tick() * 1.8 - 1) * 4, 3.663, 0.523));
CFrame.new(Vector3.new(-1.5, 0.069 + math.sin(tick() * 1.8 + 1)/37, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 3.289));
CFrame.new(Vector3.new(1.599, 0.109 + math.sin(tick() * 1.8 + 1)/37, 0.229)) * CFAngles(Vector3.new(-21.149, -1.645, 14.912));
CFrame.new(Vector3.new(-0.63, -1.141 - math.sin(tick() * 1.8)/40, -0.64)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
CFrame.new(Vector3.new(0.619, -1.20 - math.sin(tick() * 1.8)/40, 0.78)) * CFAngles(Vector3.new(-61.93, 0.603, 9.809));
CFrame.new(Vector3.new(-0.776, -1.416 + math.sin(tick() * 1.8 + 1)/37, 1.533)) * CFAngles(Vector3.new(11.916 + math.sin(tick() * 1.8) * .4, 15.785, -177.784));
})
else
setJointCFrames({
CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(0, 0, 0));
CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * 1.8)/60, -0.1)) * CFAngles(Vector3.new(-14.0871 + math.sin(tick() * 1.8 - 1) * 2, -4.516, -0.001));
CFrame.new(Vector3.new(-1.5, -0.001 + math.sin(tick() * 1.8 + 1)/37, -0.4)) * CFAngles(Vector3.new(44.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
CFrame.new(Vector3.new(1.599, 0.349 + math.sin(tick() * 1.8 + 1)/37, -0.401)) * CFAngles(Vector3.new(74.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
CFrame.new(Vector3.new(-0.63, -2.02 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
CFrame.new(Vector3.new(0.569, -2 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(2.093, -9.162, 2.619));
CFrame.new(Vector3.new(-1.586, -0.686 + math.sin(tick() * 1.8 - .3)/20, -1.387)) * CFAngles(Vector3.new(89.739, -74.514, -165.774));
})
end
elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isJumping == false and Debounces.Debounce == false then
sine = sine + math.rad(15)
human.WalkSpeed = 15
setLerp(.25)
setJointCFrames({
CFrame.new(Vector3.new(0, math.sin(sine * 2)/17, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * -1, -0.001));
CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0,math.sin(sine - 2) * 2 - 5));
CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, math.sin(sine - 2) * 2 + 5));
CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
CFrame.new(Vector3.new(-1.176, -.516 + math.sin(-sine)/2.2, 1.133 + math.sin(-sine)/1.6)) * CFAngles(Vector3.new(-22.916 + math.sin(sine) * 23, 11.785, -177.784));
})
elseif Debounces.isJumping == true and Debounces.Debounce == false then
setLerp(.14)
setJointCFrames({
CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
CFrame.new(Vector3.new(-1.466, -0.716, -1.287)) * CFAngles(Vector3.new(23.713, -68.012, 138.119));
})
end
end
end)
human.Changed:connect(function(prop)
if prop == "MoveDirection" then
if human.MoveDirection.magnitude > .02 then
Debounces.isMoving = true
else
Debounces.isMoving = false
end
end
end)
changeColor = function(mode)
Debounces.SwitchingModes = true
local color = Color3.new(0,0,0)
if mode == "Still" then
color = Color3.new(1,0,0)
elseif mode == "Blue" then
color = Color3.new(0,1,1)
elseif mode == "Orange" then
color = Color3.new(1,.5,1/5)
elseif mode == "Heal" then
color = Color3.new(.1,1,.1)
end
local s = Instance.new("Sound",h)
s.SoundId = "rbxassetid://262249260"
s.Volume = .5
s.Pitch = math.random(95,105)/100
s:Play()
h.BrickColor = BrickColor.new(color)
local e = Instance.new("Part",h)
e.Size = Vector3.new(1,1,1)
e.BrickColor = BrickColor.new(color)
e.Anchored = false
e.CanCollide = false
local rm = Instance.new("SpecialMesh",e)
rm.MeshType = "FileMesh"
rm.MeshId = "rbxassetid://3270017"
rm.Scale = Vector3.new(3.2,3.2,10)
local ew = Instance.new("Weld",e)
ew.Part0 = h
ew.Part1 = e
ew.C0 = CFrame.new(0,0,-5)
l.Color = color
local timer = 0
while rs.RenderStepped:wait() do
timer = timer + (1/60)/(Debounces.FPS/60)
ew.C0 = ew.C0:lerp(CFrame.new(0,0,5),.08/(Debounces.FPS/60))
e.Transparency = math.sin(ew.C0.p.z/2.5)
if e.Transparency >= .95 then break end
end
e:Destroy()
Debounces.Mode = mode
Debounces.SwitchingModes = false
wait(6)
s:Destroy()
end
uinps.InputBegan:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.Slash then
local finishEvent = nil
Debounces.isTyping = true
finishEvent = uinps.InputBegan:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
Debounces.isTyping = false
finishEvent:disconnect()
end
end)
end
end)
uinps.InputBegan:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.LeftShift then
Debounces.isSprinting = true
end
end)
uinps.InputEnded:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.LeftShift then
Debounces.isSprinting = false
end
end)
uinps.InputBegan:connect(function(InputObj)
local e = nil
local e2 = nil
if InputObj.UserInputType == Enum.UserInputType.MouseButton1 and Debounces.isJumping == false and Debounces.isAttacking == false then
if Debounces.isCombo <= critTime then
Debounces.wasCrit = true
else
Debounces.wasCrit = false
end
Debounces.attackNumber = Debounces.attackNumber + 1
Debounces.isCombo = 0
Debounces.isAttacking = true
setLerp(.23)
local playAnim = (Debounces.attackNumber)%3 + 1
local frame1 = {
{
CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
};
{
CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
};
{
CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
};
}
local frame2 = {
{
CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
};
{
CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
};
{
CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
};
}
if Debounces.wasCrit == false then
local e = Instance.new("Sound",c.Head)
e.Volume = .5
e.SoundId = "rbxassetid://145486992"
e.Pitch = math.random(110,130)/100
e:Play()
setJointCFrames(frame1[playAnim])
setLerp(.35)
wait(.07)
setJointCFrames(frame2[playAnim])
wait(.05)
else
local e = Instance.new("Sound",c.Head)
e.Volume = .5
e.SoundId = "rbxassetid://181894961"
e.Pitch = math.random(130,160)/100
e:Play()
local e2 = Instance.new("Sound",c.Head)
e2.Volume = .6
e2.Pitch = math.random(110,130)/100
e2.SoundId = "rbxassetid://200632875"
e2:Play()
setLerp(.6)
setJointCFrames(frame1[playAnim])
setLerp(.7)
wait(.02)
setJointCFrames(frame2[playAnim])
wait(.01)
end
Debounces.isAttacking = false
end
wait(5)
if e then
e:Destroy()
e2:Destroy()
end
end)
uinps.InputBegan:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
Debounces.Debounce = true
human.WalkSpeed = 0
setLerp(.2)
setJointCFrames({
CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
})
wait(.25)
human.JumpPower = 60
human.Jump = true
Debounces.Debounce = false
human.WalkSpeed = 35
Debounces.isJumping = true
wait()
human.JumpPower = 0
end
end)
uinps.InputBegan:connect(function(InputObj)
if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
Debounces.Debounce = true
human.WalkSpeed = 0
setLerp(.2)
setJointCFrames({
CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
})
wait(.25)
human.JumpPower = 150
local e = Instance.new("Sound",c.Head)
e.SoundId = "rbxassetid://180204603"
e.Pitch = math.random(90,110)/100
e.Volume = 1
e:Play()
local e2 = Instance.new("Part",h)
e2.Size = Vector3.new(1,1,1)
e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
e2.BrickColor = h.BrickColor
e2.Anchored = true
e2.CanCollide = false
local rm = Instance.new("SpecialMesh",e2)
rm.MeshType = "FileMesh"
rm.MeshId = "rbxassetid://3270017"
rm.Scale = Vector3.new(1,1,6)
human.Jump = true
Debounces.Debounce = false
Debounces.isJumping = true
human.WalkSpeed = 75
wait()
human.JumpPower = 0
while rs.RenderStepped:wait() do
rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
if e2.Transparency >= .98 then
break
end
end
e2:Destroy()
end
end)
uinps.InputBegan:connect(function(InputObj)
if Debounces.isTyping == false then
if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.SwitchingModes == false then
changeColor("Still")
elseif InputObj.KeyCode == Enum.KeyCode.X and Debounces.SwitchingModes == false then
changeColor("Blue")
elseif InputObj.KeyCode == Enum.KeyCode.C and Debounces.SwitchingModes == false then
changeColor("Orange")
elseif InputObj.KeyCode == Enum.KeyCode.V and Debounces.SwitchingModes == false then
changeColor("Heal")
end
end
end)
h.Touched:connect(function(part)
local h2 = part.Parent:FindFirstChild("Humanoid")
if h2 then
canAttack = "false"
if Debounces.Mode == "Still" then canAttack = "true" end
if Debounces.Mode == "Blue" and part.Velocity.magnitude > 2 then canAttack = "true" end
if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
if Debounces.Mode == "Heal" then canAttack = "heal" end
if canAttack == "true" then
if Debounces.isCombo <= critTime then
h2:TakeDamage(math.random(3,7))
else
h2:TakeDamage(math.random(1,4))
end
elseif canAttack == "heal" then
h2:TakeDamage(math.random(-4,-1))
end
end
end)
human.StateChanged:connect(function(os,ns)
if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
Debounces.isJumping = false
end
end)
rs.RenderStepped:connect(function()
Debounces.FPS = 1/rs.RenderStepped:wait()
if Debounces.isAgg == true then
fight:Resume()
pass:Pause()
else
fight:Pause()
pass:Resume()
end
if Debounces.musicOn == true then
pass.Volume = 1
fight.Volume = 1
else
pass.Volume = 0
fight.Volume = 0
end
l.Range = math.sin(tick() * 1.8) * 8 + 5
local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
for i = 1,#Joints do
Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
Joints[i].C1 = CFrameZero()
end
end)