SHOW:
|
|
- or go back to the newest paste.
1 | --Move & Ultimate Names | |
2 | ||
3 | local player = game.Players.LocalPlayer | |
4 | ||
5 | local playerGui = player.PlayerGui | |
6 | ||
7 | local hotbar = playerGui:FindFirstChild("Hotbar") | |
8 | ||
9 | local backpack = hotbar:FindFirstChild("Backpack") | |
10 | ||
11 | local hotbarFrame = backpack:FindFirstChild("Hotbar") | |
12 | ||
13 | local baseButton = hotbarFrame:FindFirstChild("1").Base | |
14 | ||
15 | local ToolName = baseButton.ToolName | |
16 | ||
17 | ||
18 | - | ToolName.Text = "Move1" |
18 | + | ToolName.Text = "Revenge Strike" |
19 | ||
20 | ||
21 | local player = game.Players.LocalPlayer | |
22 | ||
23 | local playerGui = player.PlayerGui | |
24 | ||
25 | local hotbar = playerGui:FindFirstChild("Hotbar") | |
26 | ||
27 | local backpack = hotbar:FindFirstChild("Backpack") | |
28 | ||
29 | local hotbarFrame = backpack:FindFirstChild("Hotbar") | |
30 | ||
31 | local baseButton = hotbarFrame:FindFirstChild("2").Base | |
32 | ||
33 | local ToolName = baseButton.ToolName | |
34 | ||
35 | ||
36 | - | ToolName.Text = "Move2" |
36 | + | ToolName.Text = "Hateful Fury" |
37 | ||
38 | ||
39 | local player = game.Players.LocalPlayer | |
40 | ||
41 | local playerGui = player.PlayerGui | |
42 | ||
43 | local hotbar = playerGui:FindFirstChild("Hotbar") | |
44 | ||
45 | local backpack = hotbar:FindFirstChild("Backpack") | |
46 | ||
47 | local hotbarFrame = backpack:FindFirstChild("Hotbar") | |
48 | ||
49 | local baseButton = hotbarFrame:FindFirstChild("3").Base | |
50 | ||
51 | local ToolName = baseButton.ToolName | |
52 | ||
53 | ||
54 | - | ToolName.Text = "Move3" |
54 | + | ToolName.Text = "Clean Strike" |
55 | ||
56 | ||
57 | local player = game.Players.LocalPlayer | |
58 | ||
59 | local playerGui = player.PlayerGui | |
60 | ||
61 | local hotbar = playerGui:FindFirstChild("Hotbar") | |
62 | ||
63 | local backpack = hotbar:FindFirstChild("Backpack") | |
64 | ||
65 | local hotbarFrame = backpack:FindFirstChild("Hotbar") | |
66 | ||
67 | local baseButton = hotbarFrame:FindFirstChild("4").Base | |
68 | ||
69 | local ToolName = baseButton.ToolName | |
70 | ||
71 | ||
72 | - | ToolName.Text = "Move4" |
72 | + | ToolName.Text = "Vengeful Smash" |
73 | ||
74 | ||
75 | local Players = game:GetService("Players") | |
76 | ||
77 | local player = Players.LocalPlayer | |
78 | ||
79 | local playerGui = player:WaitForChild("PlayerGui") | |
80 | ||
81 | ||
82 | local function findGuiAndSetText() | |
83 | ||
84 | local screenGui = playerGui:FindFirstChild("ScreenGui") | |
85 | ||
86 | if screenGui then | |
87 | ||
88 | local magicHealthFrame = screenGui:FindFirstChild("MagicHealth") | |
89 | ||
90 | if magicHealthFrame then | |
91 | ||
92 | local textLabel = magicHealthFrame:FindFirstChild("TextLabel") | |
93 | ||
94 | if textLabel then | |
95 | ||
96 | - | textLabel.Text = "UltimateName" |
96 | + | textLabel.Text = "Vengeful Hatred" |
97 | ||
98 | end | |
99 | ||
100 | end | |
101 | ||
102 | end | |
103 | ||
104 | end | |
105 | ||
106 | ||
107 | playerGui.DescendantAdded:Connect(findGuiAndSetText) | |
108 | ||
109 | findGuiAndSetText() | |
110 | ||
111 | --[[Animations]] | |
112 | ||
113 | --[[Move 1]] | |
114 | ||
115 | local animationId = 10468665991 | |
116 | ||
117 | ||
118 | local player = game.Players.LocalPlayer | |
119 | ||
120 | local character = player.Character or player.CharacterAdded:Wait() | |
121 | ||
122 | local humanoid = character:WaitForChild("Humanoid") | |
123 | ||
124 | ||
125 | local function onAnimationPlayed(animationTrack) | |
126 | ||
127 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
128 | ||
129 | ||
130 | local p = game.Players.LocalPlayer | |
131 | ||
132 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
133 | ||
134 | ||
135 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
136 | ||
137 | animTrack:Stop() | |
138 | ||
139 | end | |
140 | ||
141 | ||
142 | local AnimAnim = Instance.new("Animation") | |
143 | ||
144 | - | AnimAnim.AnimationId = "rbxassetid://17838006839" |
144 | + | AnimAnim.AnimationId = "rbxassetid://18440406788" |
145 | ||
146 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
147 | ||
148 | ||
149 | local startTime = 1.1 | |
150 | ||
151 | ||
152 | Anim:Play() | |
153 | ||
154 | ||
155 | ||
156 | Anim:AdjustSpeed(0.1) | |
157 | ||
158 | - | Anim:AdjustSpeed(0.9) |
158 | + | |
159 | ||
160 | Anim:AdjustSpeed(1) | |
161 | ||
162 | delay(.88, function() | |
163 | ||
164 | Anim:Stop(.75) | |
165 | ||
166 | end) | |
167 | ||
168 | local message = "Dodge this." | |
169 | local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
170 | ||
171 | local function sendMessage(text) | |
172 | ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(text, "All") | |
173 | end | |
174 | ||
175 | ||
176 | sendMessage(message) | |
177 | ||
178 | end | |
179 | ||
180 | end | |
181 | ||
182 | --[[END OF MOVE 1 ANIM]] | |
183 | ||
184 | --[[Move 2]] | |
185 | ||
186 | ||
187 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
188 | ||
189 | ||
190 | local animationId = 10466974800 | |
191 | ||
192 | ||
193 | local player = game.Players.LocalPlayer | |
194 | ||
195 | local character = player.Character or player.CharacterAdded:Wait() | |
196 | ||
197 | local humanoid = character:WaitForChild("Humanoid") | |
198 | ||
199 | ||
200 | local function onAnimationPlayed(animationTrack) | |
201 | ||
202 | - | AnimAnim.AnimationId = "rbxassetid://18181589384" |
202 | + | |
203 | ||
204 | ||
205 | local p = game.Players.LocalPlayer | |
206 | ||
207 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
208 | ||
209 | ||
210 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
211 | ||
212 | animTrack:Stop() | |
213 | ||
214 | end | |
215 | ||
216 | ||
217 | local AnimAnim = Instance.new("Animation") | |
218 | ||
219 | AnimAnim.AnimationId = "rbxassetid://16945550029" | |
220 | ||
221 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
222 | ||
223 | ||
224 | local startTime = 1.56 | |
225 | ||
226 | ||
227 | Anim:Play() | |
228 | ||
229 | Anim:AdjustSpeed(1) | |
230 | ||
231 | Anim.TimePosition = startTime | |
232 | ||
233 | Anim:AdjustSpeed(1.4) | |
234 | ||
235 | delay(1.5, function() | |
236 | ||
237 | Anim:Stop(.45) | |
238 | ||
239 | end) | |
240 | end | |
241 | ||
242 | end | |
243 | ||
244 | --[[END OF MOVE 2 ANIM]] | |
245 | ||
246 | --[[Move 3]] | |
247 | ||
248 | ||
249 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
250 | ||
251 | ||
252 | local animationId = 10471336737 | |
253 | ||
254 | ||
255 | local player = game.Players.LocalPlayer | |
256 | ||
257 | local character = player.Character or player.CharacterAdded:Wait() | |
258 | ||
259 | local humanoid = character:WaitForChild("Humanoid") | |
260 | ||
261 | ||
262 | local function onAnimationPlayed(animationTrack) | |
263 | ||
264 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
265 | ||
266 | ||
267 | local p = game.Players.LocalPlayer | |
268 | ||
269 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
270 | ||
271 | ||
272 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
273 | ||
274 | animTrack:Stop() | |
275 | ||
276 | end | |
277 | ||
278 | ||
279 | local AnimAnim = Instance.new("Animation") | |
280 | ||
281 | AnimAnim.AnimationId = "rbxassetid://17838619895" | |
282 | ||
283 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
284 | ||
285 | ||
286 | local startTime = 0.3 | |
287 | ||
288 | ||
289 | Anim:Play() | |
290 | ||
291 | Anim:AdjustSpeed(0) | |
292 | ||
293 | Anim.TimePosition = startTime | |
294 | ||
295 | Anim:AdjustSpeed(1) | |
296 | ||
297 | ||
298 | delay(1.8, function() | |
299 | ||
300 | Anim:Stop() | |
301 | ||
302 | end) | |
303 | ||
304 | ||
305 | end | |
306 | ||
307 | end | |
308 | ||
309 | --[[END OF MOVE 3 ANIM]] | |
310 | ||
311 | --[[Move 4]] | |
312 | ||
313 | ||
314 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
315 | ||
316 | ||
317 | local animationId = 12510170988 | |
318 | ||
319 | ||
320 | local player = game.Players.LocalPlayer | |
321 | ||
322 | local character = player.Character or player.CharacterAdded:Wait() | |
323 | ||
324 | local humanoid = character:WaitForChild("Humanoid") | |
325 | ||
326 | ||
327 | local function onAnimationPlayed(animationTrack) | |
328 | ||
329 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
330 | ||
331 | local p = game.Players.LocalPlayer | |
332 | ||
333 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
334 | ||
335 | ||
336 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
337 | ||
338 | animTrack:Stop() | |
339 | ||
340 | end | |
341 | ||
342 | ||
343 | local AnimAnim = Instance.new("Animation") | |
344 | ||
345 | AnimAnim.AnimationId = "rbxassetid://16515850153" | |
346 | ||
347 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
348 | ||
349 | ||
350 | local startTime = 0 | |
351 | ||
352 | ||
353 | Anim:Play() | |
354 | ||
355 | Anim:AdjustSpeed(0) | |
356 | ||
357 | Anim.TimePosition = startTime | |
358 | ||
359 | Anim:AdjustSpeed(1) | |
360 | ||
361 | ||
362 | end | |
363 | ||
364 | end | |
365 | ||
366 | --[[END OF MOVE 4 ANIM]] | |
367 | ||
368 | --[[Wall combo]] | |
369 | ||
370 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
371 | ||
372 | local animationId = 15955393872 | |
373 | ||
374 | ||
375 | local player = game.Players.LocalPlayer | |
376 | ||
377 | local character = player.Character or player.CharacterAdded:Wait() | |
378 | ||
379 | local humanoid = character:WaitForChild("Humanoid") | |
380 | ||
381 | ||
382 | local function onAnimationPlayed(animationTrack) | |
383 | ||
384 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
385 | ||
386 | local p = game.Players.LocalPlayer | |
387 | ||
388 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
389 | ||
390 | ||
391 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
392 | ||
393 | animTrack:Stop() | |
394 | ||
395 | end | |
396 | ||
397 | ||
398 | local AnimAnim = Instance.new("Animation") | |
399 | ||
400 | AnimAnim.AnimationId = "rbxassetid://15943915877" | |
401 | ||
402 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
403 | ||
404 | ||
405 | local startTime = 0.05 | |
406 | ||
407 | ||
408 | Anim:Play() | |
409 | ||
410 | Anim:AdjustSpeed(0) | |
411 | ||
412 | Anim.TimePosition = startTime | |
413 | ||
414 | Anim:AdjustSpeed(1) | |
415 | ||
416 | ||
417 | end | |
418 | ||
419 | end | |
420 | ||
421 | --[[END OF WALL COMBO ANIM]] | |
422 | ||
423 | --[[Ult Activation]] | |
424 | ||
425 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
426 | ||
427 | ||
428 | local animationId = 12447707844 | |
429 | ||
430 | ||
431 | local player = game.Players.LocalPlayer | |
432 | ||
433 | local character = player.Character or player.CharacterAdded:Wait() | |
434 | ||
435 | local humanoid = character:WaitForChild("Humanoid") | |
436 | ||
437 | ||
438 | local function onAnimationPlayed(animationTrack) | |
439 | ||
440 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
441 | ||
442 | local p = game.Players.LocalPlayer | |
443 | ||
444 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
445 | ||
446 | ||
447 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
448 | ||
449 | animTrack:Stop() | |
450 | ||
451 | end | |
452 | ||
453 | ||
454 | local AnimAnim = Instance.new("Animation") | |
455 | ||
456 | AnimAnim.AnimationId = "rbxassetid://17106858586 " | |
457 | ||
458 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
459 | ||
460 | ||
461 | local startTime = 0 | |
462 | ||
463 | ||
464 | Anim:Play() | |
465 | ||
466 | Anim:AdjustSpeed(0) | |
467 | ||
468 | Anim.TimePosition = startTime | |
469 | ||
470 | Anim:AdjustSpeed(1) | |
471 | ||
472 | end | |
473 | ||
474 | end | |
475 | --[[END OF ULT ACTIVATION ANIM]] | |
476 | ||
477 | --[[Dash]] | |
478 | ||
479 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
480 | ||
481 | ||
482 | local animationId = 10479335397 | |
483 | ||
484 | ||
485 | local player = game.Players.LocalPlayer | |
486 | ||
487 | local character = player.Character or player.CharacterAdded:Wait() | |
488 | ||
489 | local humanoid = character:WaitForChild("Humanoid") | |
490 | ||
491 | ||
492 | local function onAnimationPlayed(animationTrack) | |
493 | ||
494 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
495 | ||
496 | local p = game.Players.LocalPlayer | |
497 | ||
498 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
499 | ||
500 | ||
501 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
502 | ||
503 | animTrack:Stop() | |
504 | ||
505 | end | |
506 | ||
507 | ||
508 | local AnimAnim = Instance.new("Animation") | |
509 | ||
510 | AnimAnim.AnimationId = "rbxassetid://13294790250" | |
511 | ||
512 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
513 | ||
514 | ||
515 | local startTime = 0 | |
516 | ||
517 | ||
518 | Anim:Play() | |
519 | ||
520 | Anim:AdjustSpeed(0) | |
521 | ||
522 | Anim.TimePosition = startTime | |
523 | ||
524 | Anim:AdjustSpeed(1.3) | |
525 | ||
526 | ||
527 | delay(1.8, function() | |
528 | ||
529 | Anim:Stop() | |
530 | ||
531 | end) | |
532 | ||
533 | ||
534 | end | |
535 | ||
536 | end | |
537 | ||
538 | --[[END OF DASH ANIM]] | |
539 | ||
540 | --[[Uppercut]] | |
541 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
542 | ||
543 | ||
544 | local animationId = 10503381238 | |
545 | ||
546 | ||
547 | local player = game.Players.LocalPlayer | |
548 | ||
549 | local character = player.Character or player.CharacterAdded:Wait() | |
550 | ||
551 | local humanoid = character:WaitForChild("Humanoid") | |
552 | ||
553 | ||
554 | local function onAnimationPlayed(animationTrack) | |
555 | ||
556 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
557 | ||
558 | local p = game.Players.LocalPlayer | |
559 | ||
560 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
561 | ||
562 | ||
563 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
564 | ||
565 | animTrack:Stop() | |
566 | ||
567 | end | |
568 | ||
569 | ||
570 | local AnimAnim = Instance.new("Animation") | |
571 | ||
572 | AnimAnim.AnimationId = "rbxassetid://14900168720" | |
573 | ||
574 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
575 | ||
576 | ||
577 | local startTime = 1.3 | |
578 | ||
579 | ||
580 | Anim:Play() | |
581 | ||
582 | Anim:AdjustSpeed(0) | |
583 | ||
584 | Anim.TimePosition = startTime | |
585 | ||
586 | Anim:AdjustSpeed(0.7) | |
587 | ||
588 | ||
589 | end | |
590 | ||
591 | end | |
592 | ||
593 | --[[END OF UPPERCUT ANIM]] | |
594 | ||
595 | --[[Downslam]] | |
596 | ||
597 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
598 | ||
599 | ||
600 | local animationId = 10470104242 | |
601 | ||
602 | ||
603 | local player = game.Players.LocalPlayer | |
604 | ||
605 | local character = player.Character or player.CharacterAdded:Wait() | |
606 | ||
607 | local humanoid = character:WaitForChild("Humanoid") | |
608 | ||
609 | ||
610 | local function onAnimationPlayed(animationTrack) | |
611 | ||
612 | if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then | |
613 | ||
614 | local p = game.Players.LocalPlayer | |
615 | ||
616 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
617 | ||
618 | ||
619 | for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do | |
620 | ||
621 | animTrack:Stop() | |
622 | ||
623 | end | |
624 | ||
625 | ||
626 | local AnimAnim = Instance.new("Animation") | |
627 | ||
628 | AnimAnim.AnimationId = "rbxassetid://12447247483" | |
629 | ||
630 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
631 | ||
632 | ||
633 | local startTime = 0 | |
634 | ||
635 | ||
636 | wait(0.2) | |
637 | ||
638 | Anim:Play() | |
639 | ||
640 | Anim:AdjustSpeed(0) | |
641 | ||
642 | Anim.TimePosition = startTime | |
643 | ||
644 | Anim:AdjustSpeed(6) | |
645 | ||
646 | ||
647 | end | |
648 | ||
649 | end | |
650 | ||
651 | --[[END OF DOWNSLAM ANIM]] | |
652 | ||
653 | --[[Punch anims]] | |
654 | ||
655 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
656 | ||
657 | ||
658 | local Players = game:GetService("Players") | |
659 | ||
660 | local player = Players.LocalPlayer | |
661 | ||
662 | local character = player.Character or player.CharacterAdded:Wait() | |
663 | ||
664 | local humanoid = character:WaitForChild("Humanoid") | |
665 | ||
666 | ||
667 | local animationIdsToStop = { | |
668 | ||
669 | [17859015788] = true, --downslam finisher | |
670 | ||
671 | [10469493270] = true, --punch1 | |
672 | ||
673 | [10469630950] = true, --punch2 | |
674 | ||
675 | [10469639222] = true, --punch3 | |
676 | ||
677 | [10469643643] = true, --punch4 | |
678 | ||
679 | } | |
680 | ||
681 | ||
682 | local replacementAnimations = { | |
683 | ||
684 | ["10469493270"] = "rbxassetid://17889458563", --punch1 | |
685 | ||
686 | ["10469630950"] = "rbxassetid://17889461810", --punch2 | |
687 | ||
688 | ["10469639222"] = "rbxassetid://17889471098", --punch3 | |
689 | ||
690 | ["10469643643"] = "rbxassetid://17889290569", --punch4 | |
691 | ||
692 | ["17859015788"] = "rbxassetid://12684185971", --downslam finisher | |
693 | ||
694 | ["11365563255"] = "rbxassetid://14516273501" --punch idk | |
695 | ||
696 | } | |
697 | ||
698 | ||
699 | local queue = {} | |
700 | ||
701 | local isAnimating = false | |
702 | ||
703 | ||
704 | local function playReplacementAnimation(animationId) | |
705 | ||
706 | if isAnimating then | |
707 | ||
708 | table.insert(queue, animationId) | |
709 | ||
710 | return | |
711 | ||
712 | end | |
713 | ||
714 | ||
715 | ||
716 | isAnimating = true | |
717 | ||
718 | local replacementAnimationId = replacementAnimations[tostring(animationId)] | |
719 | ||
720 | if replacementAnimationId then | |
721 | ||
722 | local AnimAnim = Instance.new("Animation") | |
723 | ||
724 | AnimAnim.AnimationId = replacementAnimationId | |
725 | ||
726 | local Anim = humanoid:LoadAnimation(AnimAnim) | |
727 | ||
728 | Anim:Play() | |
729 | ||
730 | ||
731 | ||
732 | Anim.Stopped:Connect(function() | |
733 | ||
734 | isAnimating = false | |
735 | ||
736 | if #queue > 0 then | |
737 | ||
738 | local nextAnimationId = table.remove(queue, 1) | |
739 | ||
740 | playReplacementAnimation(nextAnimationId) | |
741 | ||
742 | end | |
743 | ||
744 | end) | |
745 | ||
746 | else | |
747 | ||
748 | isAnimating = false | |
749 | ||
750 | end | |
751 | ||
752 | end | |
753 | ||
754 | ||
755 | local function stopSpecificAnimations() | |
756 | ||
757 | for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do | |
758 | ||
759 | local animationId = tonumber(track.Animation.AnimationId:match("%d+")) | |
760 | ||
761 | if animationIdsToStop[animationId] then | |
762 | ||
763 | track:Stop() | |
764 | ||
765 | end | |
766 | ||
767 | end | |
768 | ||
769 | end | |
770 | ||
771 | ||
772 | local function onAnimationPlayed(animationTrack) | |
773 | ||
774 | local animationId = tonumber(animationTrack.Animation.AnimationId:match("%d+")) | |
775 | ||
776 | if animationIdsToStop[animationId] then | |
777 | ||
778 | stopSpecificAnimations() | |
779 | ||
780 | animationTrack:Stop() | |
781 | ||
782 | ||
783 | ||
784 | local replacementAnimationId = replacementAnimations[tostring(animationId)] | |
785 | ||
786 | if replacementAnimationId then | |
787 | ||
788 | playReplacementAnimation(animationId) | |
789 | ||
790 | end | |
791 | ||
792 | end | |
793 | ||
794 | end | |
795 | ||
796 | ||
797 | humanoid.AnimationPlayed:Connect(onAnimationPlayed) | |
798 | ||
799 | ||
800 | local player = game.Players.LocalPlayer | |
801 | ||
802 | local character = player.Character or player.CharacterAdded:Wait() | |
803 | ||
804 | local humanoidRootPart = character:WaitForChild("HumanoidRootPart") | |
805 | ||
806 | ||
807 | local function onBodyVelocityAdded(bodyVelocity) | |
808 | ||
809 | if bodyVelocity:IsA("BodyVelocity") then | |
810 | ||
811 | bodyVelocity.Velocity = Vector3.new(bodyVelocity.Velocity.X, 0, bodyVelocity.Velocity.Z) | |
812 | ||
813 | end | |
814 | ||
815 | end | |
816 | ||
817 | ||
818 | character.DescendantAdded:Connect(onBodyVelocityAdded) | |
819 | ||
820 | ||
821 | for _, descendant in pairs(character:GetDescendants()) do | |
822 | ||
823 | onBodyVelocityAdded(descendant) | |
824 | ||
825 | end | |
826 | ||
827 | ||
828 | player.CharacterAdded:Connect(function(newCharacter) | |
829 | ||
830 | character = newCharacter | |
831 | ||
832 | humanoidRootPart = character:WaitForChild("HumanoidRootPart") | |
833 | ||
834 | character.DescendantAdded:Connect(onBodyVelocityAdded) | |
835 | ||
836 | ||
837 | ||
838 | for _, descendant in pairs(character:GetDescendants()) do | |
839 | ||
840 | onBodyVelocityAdded(descendant) | |
841 | ||
842 | end | |
843 | ||
844 | end) | |
845 | ||
846 | --[[Adding Quote or Message when Executed]] | |
847 | - | --[[Idle Animation]] |
847 | + | |
848 | local player = game.Players.LocalPlayer | |
849 | - | local animationId = "rbxassetid://15099756132" -- Replace with your animation ID |
849 | + | |
850 | local character = player.Character or player.CharacterAdded:Wait() | |
851 | local humanoid = character:WaitForChild("Humanoid") | |
852 | local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
853 | - | local animator = humanoid:FindFirstChildOfClass("Animator") or humanoid:WaitForChild("Animator") |
853 | + | |
854 | -- Messages to send | |
855 | - | local animation = Instance.new("Animation") |
855 | + | |
856 | - | animation.AnimationId = animationId |
856 | + | |
857 | - | local animationTrack = animator:LoadAnimation(animation) |
857 | + | |
858 | ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(text, "All") | |
859 | - | local function isMoving() |
859 | + | |
860 | - | local velocity = humanoid.MoveDirection.Magnitude |
860 | + | |
861 | - | return velocity > 0 |
861 | + | |
862 | sendMessage(message) | |
863 | wait(1.7) -- Wait time for each message | |
864 | - | while true do |
864 | + | |
865 | - | if not isMoving() then |
865 | + | |
866 | - | if not animationTrack.IsPlaying then |
866 | + | |
867 | - | animationTrack:Play() |
867 | + | |
868 | ||
869 | --[[Execute Anims (Animations when you execute script]] | |
870 | - | if animationTrack.IsPlaying then |
870 | + | |
871 | - | animationTrack:Stop() |
871 | + | |
872 | local Humanoid = p.Character:WaitForChild("Humanoid") | |
873 | ||
874 | - | wait(0.1) |
874 | + | |
875 | animTrack:Stop() | |
876 | end | |
877 | ||
878 | - | --[[END OF IDLE ANIM]] |
878 | + | |
879 | AnimAnim.AnimationId = "rbxassetid://14611879113" -- Replace with your animation ID | |
880 | - | --[[Run Anim]] |
880 | + | |
881 | local Anim = Humanoid:LoadAnimation(AnimAnim) | |
882 | ||
883 | local startTime = 0.05 | |
884 | ||
885 | - | local animator = humanoid:WaitForChild("Animator") |
885 | + | |
886 | Anim:AdjustSpeed(0) | |
887 | - | local animationId = "rbxassetid://15962326593" -- Replace with your animation ID |
887 | + | |
888 | - | local animation = Instance.new("Animation") |
888 | + | |
889 | - | animation.AnimationId = animationId |
889 | + | |
890 | --[[END OF EXECUTE ANIMS]] | |
891 | - | local animationTrack |
891 | + | |
892 | - | local isMoving = false |
892 | + | |
893 | ||
894 | - | local function playAnimation() |
894 | + | |
895 | - | if not animationTrack then |
895 | + | |
896 | - | animationTrack = animator:LoadAnimation(animation) |
896 | + | |
897 | getgenv().LArmCol = char['Left Arm'].ChildAdded:Connect(function(pp) | |
898 | - | |
898 | + | |
899 | - | if not isMoving then |
899 | + | |
900 | - | isMoving = true |
900 | + | |
901 | - | animationTrack:Play() |
901 | + | |
902 | Color3.fromRGB(255, 0, 0)), -- Change Color (Red, Green, Blue) | |
903 | ColorSequenceKeypoint.new(1.00, | |
904 | Color3.fromRGB(0, 0, 255))} -- Change Color (Red, Green, Blue) | |
905 | - | local function stopAnimation() |
905 | + | |
906 | - | if isMoving and animationTrack then |
906 | + | |
907 | - | isMoving = false |
907 | + | |
908 | ColorSequence.new{ColorSequenceKeypoint.new(0.00, | |
909 | Color3.fromRGB(255, 0, 0)), -- Change Color (Red, Green, Blue) | |
910 | ColorSequenceKeypoint.new(1.00, | |
911 | Color3.fromRGB(0, 0, 255))} -- Change Color (Red, Green, Blue) | |
912 | - | local function onHumanoidChanged() |
912 | + | |
913 | - | if humanoid.MoveDirection.Magnitude > 0 then |
913 | + | |
914 | - | playAnimation() |
914 | + | |
915 | ||
916 | - | stopAnimation() |
916 | + | |
917 | if pp.Name == 'WaterPalm' then | |
918 | for i,v in pairs(pp:WaitForChild('ConstantEmit'):GetChildren()) do | |
919 | v.Color = | |
920 | - | humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(onHumanoidChanged) |
920 | + | |
921 | Color3.fromRGB(255, 0, 0)), -- Change Color (Red, Green, Blue) | |
922 | - | onHumanoidChanged() |
922 | + | |
923 | Color3.fromRGB(0, 0, 255))} -- Change Color (Red, Green, Blue) | |
924 | end | |
925 | pp:WaitForChild('WaterTrail').Color = | |
926 | ColorSequence.new{ColorSequenceKeypoint.new(0.00, | |
927 | - | local animator = humanoid:WaitForChild("Animator") |
927 | + | |
928 | ColorSequenceKeypoint.new(1.00, | |
929 | - | local animationId = "rbxassetid://15962326593" -- Replace with your animation ID |
929 | + | |
930 | - | local animation = Instance.new("Animation") |
930 | + | |
931 | - | animation.AnimationId = animationId |
931 | + | |
932 | ||
933 | - | local animationTrack |
933 | + | |
934 | - | local isMoving = false |
934 | + | |
935 |