0% found this document useful (0 votes)
156 views29 pages

Roblox Sound and Animation Script

The document contains a Lua script for a game that implements sound effects, character animations, and visual effects. It includes functions to create and manage a sword model, play animations, and create a fading black screen effect. Additionally, it sets up a hotbar with tool names for player interactions.

Uploaded by

jp5811543
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views29 pages

Roblox Sound and Animation Script

The document contains a Lua script for a game that implements sound effects, character animations, and visual effects. It includes functions to create and manage a sword model, play animations, and create a fading black screen effect. Additionally, it sets up a hotbar with tool names for player interactions.

Uploaded by

jp5811543
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

writefile("cruelangel.mp3", game:HttpGet("[Link]

com/RuMinGay/Ai-are-so-
fucking-and-no-mom-they-suck/raw/refs/heads/main/cruelangel.mp3"))
local sound = nil
sound = [Link]("Sound")
[Link] = getcustomasset("cruelangel.mp3")
[Link] = 3
[Link] = true
[Link] = [Link]
sound:Play()
local Players = game:GetService("Players")
local LocalPlayer = [Link]

local ANIMATION_SOUND_MAP = {
["rbxassetid://13370310513"] = "rbxassetid://18511965048",
["rbxassetid://13390230973"] = "rbxassetid://7118966167"
}

local function setupCharacter(character)


local humanoid = character:WaitForChild("Humanoid", 10)
local animator = humanoid and humanoid:WaitForChild("Animator", 10)
if not animator then
return
end

local connection
connection = [Link]:Connect(function(animationTrack)
local animationId = [Link]
local soundId = ANIMATION_SOUND_MAP[animationId]
if soundId then
local sound = [Link]("Sound")
[Link] = soundId
[Link] = character
[Link] = 2
sound:Play()

[Link]:Connect(function()
sound:Destroy()
end)
end
end)

[Link]:Connect(function()
if not character:IsDescendantOf(game) then
connection:Disconnect()
end
end)
end

if [Link] then
[Link](function()
setupCharacter([Link])
end)
end

[Link]:Connect(function(character)
[Link](function()
setupCharacter(character)
end)
end)
[Link](2)
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local Character = [Link] or [Link]:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Debris = game:GetService("Debris")

local function createShinjiEffect()


local effectPart = [Link]("Part")
[Link] = [Link](5, 5, 5)
[Link] = 1
[Link] = false
[Link] = false
[Link] = [Link]
[Link] = workspace

local particleEmitter = [Link]("ParticleEmitter")


[Link] = [Link]([Link](255, 0, 0),
[Link](255, 100, 100))
[Link] = 500
[Link] = [Link](0.5, 1.5)
[Link] = [Link](5, 10)
[Link] = [Link](360, 360)
[Link] = [Link](0, 0.5, 1)
[Link] = [Link](0.5, 1)
[Link] = effectPart

local camera = [Link]


local originalCFrame = [Link]
local shakeIntensity = 0.2
local shakeDuration = 1.0

for i = 1, [Link](shakeDuration * 60) do


local offsetX = [Link]() * shakeIntensity * 2 - shakeIntensity
local offsetY = [Link]() * shakeIntensity * 2 - shakeIntensity
local offsetZ = [Link]() * shakeIntensity * 2 - shakeIntensity
[Link] = originalCFrame * [Link](offsetX, offsetY, offsetZ)
[Link]()
end
[Link] = originalCFrame

Debris:AddItem(effectPart, 6)
end

createShinjiEffect()

[Link]:Connect(function(newCharacter)
Character = newCharacter
HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
end)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local LocalPlayer = [Link]

function enabledpart1()
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = [Link]
local character = [Link]
if not character or not [Link] then
return
end

local targetLimb = character:FindFirstChild("RightHand")


if not targetLimb then
targetLimb = character:FindFirstChild("Right Arm")
end

if not targetLimb then


targetLimb = character:WaitForChild("RightHand", 0.5) or
character:WaitForChild("Right Arm", 0.5)
end

if not targetLimb then


return
end

local existingSword = character:FindFirstChild("PlayerSwordModel")


if existingSword then existingSword:Destroy() end

local swordModel = [Link]("Model")


[Link] = "PlayerSwordModel"
[Link] = character

local blade = [Link]("Part")


[Link] = "Blade"
[Link] = [Link](0.3, 3, 0.1)
[Link] = [Link](180, 180, 180)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel

local guard = [Link]("Part")


[Link] = "Guard"
[Link] = [Link](0.5, 0.2, 0.8)
[Link] = [Link](120, 120, 120)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel
[Link] = [Link](0, -1.5, 0)

local handle = [Link]("Part")


[Link] = "Handle"
[Link] = [Link](0.2, 1.5, 0.2)
[Link] = [Link](50, 50, 50)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel
[Link] = [Link](0, -2.25, 0)

local bladeWeldGuard = [Link]("Weld")


bladeWeldGuard.Part0 = blade
bladeWeldGuard.Part1 = guard
bladeWeldGuard.C0 = [Link](0, -1.5, 0)
[Link] = blade

local bladeWeldHandle = [Link]("Weld")


bladeWeldHandle.Part0 = blade
bladeWeldHandle.Part1 = handle
bladeWeldHandle.C0 = [Link](0, -2.25, 0)
[Link] = blade

[Link] = blade

local mainWeld = [Link]("Weld")


[Link] = "MainSwordWeld"
mainWeld.Part0 = targetLimb
mainWeld.Part1 = [Link]

if [Link] == "RightHand" then


mainWeld.C1 = [Link](0.3, 0.0, 11) * [Link]([Link](-90),
[Link](-180), [Link](180))
else
mainWeld.C1 = [Link](0, -2.7, 1) * [Link]([Link](-90),
[Link](-180), [Link](180))
end
[Link] = [Link]
end

local Players = game:GetService("Players")


local TweenService = game:GetService("TweenService")
local LocalPlayer = [Link]

function enabledpart()

local targetLimb = character:FindFirstChild("RightHand")


if not targetLimb then
targetLimb = character:FindFirstChild("Right Arm")
end

if not targetLimb then


targetLimb = character:WaitForChild("RightHand", 0.5) or
character:WaitForChild("Right Arm", 0.5)
end

if not targetLimb then


return
end

local existingSword = character:FindFirstChild("PlayerSwordModel")


if existingSword then existingSword:Destroy() end

local swordModel = [Link]("Model")


[Link] = "PlayerSwordModel"
[Link] = character

local blade = [Link]("Part")


[Link] = "Blade"
[Link] = [Link](0.3, 3, 0.1)
[Link] = [Link](180, 180, 180)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel

local guard = [Link]("Part")


[Link] = "Guard"
[Link] = [Link](0.5, 0.2, 0.8)
[Link] = [Link](120, 120, 120)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel
[Link] = [Link](0, -1.5, 0)

local handle = [Link]("Part")


[Link] = "Handle"
[Link] = [Link](0.2, 1.5, 0.2)
[Link] = [Link](50, 50, 50)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = swordModel
[Link] = [Link](0, -2.25, 0)

local bladeWeldGuard = [Link]("Weld")


bladeWeldGuard.Part0 = blade
bladeWeldGuard.Part1 = guard
bladeWeldGuard.C0 = [Link](0, -1.5, 0)
[Link] = blade

local bladeWeldHandle = [Link]("Weld")


bladeWeldHandle.Part0 = blade
bladeWeldHandle.Part1 = handle
bladeWeldHandle.C0 = [Link](0, -2.25, 0)
[Link] = blade

[Link] = blade

local mainWeld = [Link]("Weld")


[Link] = "MainSwordWeld"
mainWeld.Part0 = targetLimb
mainWeld.Part1 = [Link]

if [Link] == "RightHand" then


mainWeld.C1 = [Link](0.3, 0.0, 11) * [Link]([Link](-90),
[Link](-180), [Link](180))
else
mainWeld.C1 = [Link](0, -2.7, 1) * [Link]([Link](-90),
[Link](-180), [Link](180))
end
[Link] = [Link]
end

function disabledpart1()
local character = [Link] or [Link]:Wait()
local humanoid = character:WaitForChild("Humanoid")
local AnimAnim = [Link]("Animation")
[Link] = "rbxassetid://13377153603"

local animator = humanoid:FindFirstChildOfClass("Animator") or


[Link]("Animator")
[Link] = humanoid

local Anim = animator:LoadAnimation(AnimAnim)


[Link] = false
[Link] = [Link]

Anim:Play()
Anim:AdjustSpeed(0.899)
[Link] = 0.05

local soundId = "rbxassetid://481731911"


local head = character:WaitForChild("Head")
local boomSound = [Link]("Sound")
[Link] = soundId
[Link] = head
[Link] = 1
boomSound:Play()

[Link]:Connect(function()
boomSound:Destroy()
end)
[Link](0.56)

local swordModel = character:FindFirstChild("PlayerSwordModel")


if not swordModel then return end

local torso = character:FindFirstChild("Torso")


if not torso then
swordModel:Destroy()
return
end

local mainWeld = [Link]:FindFirstChild("MainSwordWeld")


if not mainWeld then
swordModel:Destroy()
return
end

mainWeld:Destroy()

local backWeld = [Link]("Weld")


[Link] = "BackSwordWeld"
backWeld.Part0 = torso
backWeld.Part1 = [Link]

backWeld.C1 = [Link](-0.5, -0, 0) *


[Link](
[Link](0),
[Link](90),
[Link](-135)
)
[Link] = [Link]
end
enabledpart1()
[Link]()
disabledpart1()
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local TweenService = game:GetService("TweenService")

local FADE_IN_DURATION = 2

local BLACK_SCREEN_HOLD_DURATION = 3

local FADE_OUT_DURATION = 2

if not LocalPlayer then


return
end

local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local function createFadingBlackScreen()

for _, gui in ipairs(PlayerGui:GetChildren()) do


if gui:IsA("ScreenGui") and [Link] == "FadingBlackScreen" then
gui:Destroy()
end
end

local blackScreen = [Link]("ScreenGui")


[Link] = "FadingBlackScreen"
[Link] = PlayerGui

local blackFrame = [Link]("Frame")


[Link] = "BlackFrame"
[Link] = [Link](1, 0, 1, 0)
blackFrame.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 1
[Link] = 100
[Link] = blackScreen

local fadeInTweenInfo = [Link](FADE_IN_DURATION, [Link],


[Link])
local fadeInGoal = {BackgroundTransparency = 0}
local fadeInTween = TweenService:Create(blackFrame, fadeInTweenInfo,
fadeInGoal)

fadeInTween:Play()

[Link]:Wait()

[Link](BLACK_SCREEN_HOLD_DURATION)

local fadeOutTweenInfo = [Link](FADE_OUT_DURATION,


[Link], [Link])
local fadeOutGoal = {BackgroundTransparency = 1}
local fadeOutTween = TweenService:Create(blackFrame, fadeOutTweenInfo,
fadeOutGoal)

fadeOutTween:Play()
local player = [Link]
local playerGui = [Link]

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("1").Base

local ToolName = [Link]

[Link] = "Sword crusher"

local player = [Link]

local playerGui = [Link]

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("2").Base

local ToolName = [Link]

[Link] = "Run Smash"

local player = [Link]

local playerGui = [Link]

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("3").Base

local ToolName = [Link]

[Link] = "Wood smash"

local player = [Link]

local playerGui = [Link]

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")


local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("4").Base

local ToolName = [Link]

[Link] = "Berserk mode"

local Players = game:GetService("Players")

local player = [Link]

local playerGui = player:WaitForChild("PlayerGui")

local function findGuiAndSetText()

local screenGui = playerGui:FindFirstChild("ScreenGui")

if screenGui then

local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")

if magicHealthFrame then

local textLabel = magicHealthFrame:FindFirstChild("TextLabel")

if textLabel then

[Link] = "「少年よ、神話になれ」"

end

end

end

end

[Link]:Connect(findGuiAndSetText)

findGuiAndSetText()

--[[Animations]]

--[[Move 3 nv]]

local Players = game:GetService("Players")


local LocalPlayer = [Link]

local animationId = 109617620932970

local character = [Link] or [Link]:Wait()


local humanoid = character:WaitForChild("Humanoid")
local isAbilityActive = false
local function onAnimationPlayed(animationTrack)
if [Link] == "rbxassetid://" .. animationId and
not isAbilityActive then
isAbilityActive = true
for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
animTrack:Stop()
end
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local LocalPlayer = [Link]

function enabledpart()
local character = [Link] or [Link]:Wait()
local targetLimb = character:FindFirstChild("RightHand") or
character:FindFirstChild("Right Arm")
if not targetLimb then return end

local existingSword = character:FindFirstChild("PlayerSword")


if existingSword then existingSword:Destroy() end

local sword = [Link]("Part")


[Link] = "PlayerSword"
[Link] = [Link](0.5, 4, 0.5)
[Link] = [Link](139, 69, 19)
[Link] = [Link]
[Link] = false
[Link] = false
[Link] = true
[Link] = 0
[Link] = character

local weld = [Link]("Weld")


[Link] = "SwordWeld"
weld.Part0 = targetLimb
weld.Part1 = sword
weld.C1 = [Link] == "RightHand" and [Link](0, 2, -0.8) *
[Link]([Link](-90), 0, 0) or [Link](0, 2, -0.5) *
[Link]([Link](-90), 0, 0)
[Link] = sword
end

function disabledpart()
local character = [Link]
if not character then return end
local sword = character:FindFirstChild("PlayerSword")
if not sword then return end

local tweenInfo = [Link](1, [Link])


local tween = TweenService:Create(sword, tweenInfo, {Transparency = 1})
tween:Play()
[Link]:Connect(function()
sword:Destroy()
end)
end

enabledpart()

local AnimAnim = [Link]("Animation")


[Link] = "rbxassetid://17325254223"

local animator = humanoid:FindFirstChildOfClass("Animator") or


[Link]("Animator")
[Link] = humanoid

local Anim = animator:LoadAnimation(AnimAnim)


[Link] = false
[Link] = [Link]

Anim:Play()
Anim:AdjustSpeed(1.6)
[Link] = 0.6

[Link]:Connect(function()
isAbilityActive = false
end)
[Link](1.4)
disabledpart()
end
end

[Link]:Connect(onAnimationPlayed)

--[[ END OF MOVE 1 ANIM]]

--[[Move 2(start)]]
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local TweenService = game:GetService("TweenService")

local TRIGGER_ANIMATION_ID = 94638356008696


local EXECUTE_ANIMATION_ID = "rbxassetid://18464362124"

local TOTAL_MOVE_DURATION = 3
local MOVE_INTERVAL = 0.03
local EXECUTE_ANIM_SPEED = 0.882

local isAbilityActive = false


local lastTriggerTime = 0

local function activateSpecialAbility()


if isAbilityActive then return end

local character = [Link]


if not character then return end

local humanoid = character:FindFirstChildOfClass("Humanoid")


local rootPart = character:FindFirstChild("HumanoidRootPart")
if not humanoid or not rootPart then return end

isAbilityActive = true

for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do


animTrack:Stop()
end

local savedPosition = [Link]


local executeAnimation = [Link]("Animation")
[Link] = EXECUTE_ANIMATION_ID

local animator = humanoid:FindFirstChildOfClass("Animator")


if not animator then
animator = [Link]("Animator")
[Link] = humanoid
end

local executeAnimTrack = animator:LoadAnimation(executeAnimation)


[Link] = false
[Link] = [Link]

executeAnimTrack:Play()
executeAnimTrack:AdjustSpeed(EXECUTE_ANIM_SPEED)

local startTime = tick()


local diedConnection
local animStoppedConnection

animStoppedConnection = [Link]:Connect(function()
isAbilityActive = false
if animStoppedConnection then animStoppedConnection:Disconnect() end
end)

diedConnection = [Link]:Connect(function()
isAbilityActive = false
if diedConnection then diedConnection:Disconnect() end
if animStoppedConnection then animStoppedConnection:Disconnect() end
end)

[Link](function()
while tick() - startTime < TOTAL_MOVE_DURATION and isAbilityActive do
local tweenInfo = [Link](MOVE_INTERVAL, [Link],
[Link])
local tween = TweenService:Create(rootPart, tweenInfo, {CFrame =
savedPosition})

tween:Play()
[Link]:Wait()
end

isAbilityActive = false
end)
end

local function onAnimationPlayed(animationTrack)


local playedAnimId =
tonumber([Link]:match("rbxassetid://(%d+)") or "0")

if playedAnimId == TRIGGER_ANIMATION_ID and not isAbilityActive then


animationTrack:Stop()
local currentTime = tick()
if currentTime - lastTriggerTime > 5 then
lastTriggerTime = currentTime
activateSpecialAbility()
end
end
end
local function setupAnimationDetector(character)
local humanoid = character:WaitForChild("Humanoid")
[Link]:Connect(onAnimationPlayed)
end

[Link]:Connect(setupAnimationDetector)

if [Link] then
setupAnimationDetector([Link])
end

--[[END OF MOVE 2 ANIM]]

--[[Move 1 fns]]

local Players = game:GetService("Players")


local LocalPlayer = [Link]

local animationId = 77891041839483

local character = [Link] or [Link]:Wait()


local humanoid = character:WaitForChild("Humanoid")
local isAbilityActive = false

local function onAnimationPlayed(animationTrack)


if [Link] == "rbxassetid://" .. animationId and
not isAbilityActive then
isAbilityActive = true
for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
animTrack:Stop()
end
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local Debris = game:GetService("Debris")
local player = [Link]
local character = [Link] or [Link]:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")
local function createSlashEffect(position, direction)
local part = [Link]("Part")
[Link] = [Link](1, 8, 0.2)
[Link] = true
[Link] = false
[Link] = 0.2
[Link] = [Link]
[Link] = [Link]()
[Link] = [Link](position, position + direction) * [Link](0,
0, [Link](90))
[Link] = workspace
local tween = TweenService:Create(part, [Link](0.3), {
Size = [Link](0.5, 20, 0.2),
Transparency = 1
})
tween:Play()
Debris:AddItem(part, 0.4)
end
local function createBurstEffect(position)
local part = [Link]("Part")
[Link] = [Link]
[Link] = [Link](1, 1, 1)
[Link] = true
[Link] = false
[Link] = [Link]
[Link] = [Link]()
[Link] = 0.3
[Link] = position
[Link] = workspace
local tween = TweenService:Create(part, [Link](0.3), {
Size = [Link](15, 15, 15),
Transparency = 1
})
tween:Play()

Debris:AddItem(part, 0.4)
end
local function playUltimateEffect()
local pos = [Link] + [Link](0, 2, 0)
createBurstEffect(pos)
for i = 1, 5 do
local angle = [Link]((360 / 5) * i)
local dir = [Link]([Link](angle), 0, [Link](angle))
createSlashEffect(pos + dir * 2, dir)
end
end

playUltimateEffect()
enabledpart1()
local AnimAnim = [Link]("Animation")
[Link] = "rbxassetid://89951386537089"

local animator = humanoid:FindFirstChildOfClass("Animator") or


[Link]("Animator")
[Link] = humanoid

local Anim = animator:LoadAnimation(AnimAnim)


[Link] = false
[Link] = [Link]

Anim:Play()
Anim:AdjustSpeed(1.6)
[Link] = 0.6
[Link](2.97)
local Players = game:GetService("Players")
local LocalPlayer = [Link]

local character = [Link] or [Link]:Wait()


local rootPart = character:WaitForChild("HumanoidRootPart")

[Link] = [Link] * [Link](0, 0, 40)

[Link]:Connect(function()
isAbilityActive = false
end)
[Link](4.15)
disabledpart1()
end
end
[Link]:Connect(onAnimationPlayed)

--[[ END OF MOVE 4 fns ANIM]]

--[[Move 4]]

[Link]:Connect(onAnimationPlayed)

local animationId = 16597912086

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://13071982935"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 2.9

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(2)

end

end
--[[ END OF MOVE 4 ANIM]]

--[[Wall combo]]

[Link]:Connect(onAnimationPlayed)

local animationId = 16311141574

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://13560306510"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0.05

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(1.6)

end

end

--[[ END OF WALL COMBO ANIM]]

--[[Ult Activation]]
[Link]:Connect(onAnimationPlayed)

local animationId = 16734584478

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://15121659862"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(0.38)

end

end
--[[ END OF ULT ACTIVATION ANIM]]

--[[1-vr3]]
[Link]:Connect(onAnimationPlayed)

local animationId = 82365328621192


local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end
enabledpart1()

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://15295336270"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0.43

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(1.71)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = [Link]

local MAIN_DETECT_SOUND_ID = "rbxassetid://481731911"

local MOTION_TO_REPLACE_IDS = {
["1"] = "rbxassetid://13532562418",
["2"] = "rbxassetid://13532600125",
["4"] = "rbxassetid://13294471966"
}
local REPLACEMENT_ANIM_IDS = {
["1"] = "rbxassetid://13370310513",
["2"] = "rbxassetid://13390230973",
["4"] = "rbxassetid://13378708199"
}

local activeReplacementTracks = {}
local trackStoppedConnections = {}
local currentHeartbeatConnection = nil
local activeSoundConnections = {}
local isSoundDetectedAndActive = false
local WARN_COOLDOWN = 0.1
local lastWarnTime = 0

local function safeWarn(message)


local currentTime = tick()
if currentTime - lastWarnTime >= WARN_COOLDOWN then
lastWarnTime = currentTime
end
end

local function setupAnimationReplacementLogic(character)


local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local head = character:WaitForChild("Head")

if currentHeartbeatConnection then
currentHeartbeatConnection:Disconnect()
currentHeartbeatConnection = nil
end

for animName, track in pairs(activeReplacementTracks) do


if track and [Link] then
track:Stop()
track:Destroy()
end
end
activeReplacementTracks = {}
for animName, conn in pairs(trackStoppedConnections) do
if conn then conn:Disconnect() end
end
trackStoppedConnections = {}

isSoundDetectedAndActive = false
for _, conn in pairs(activeSoundConnections) do
if conn then conn:Disconnect() end
end
activeSoundConnections = {}

[Link]:Connect(function(child)
if child:IsA("Sound") and [Link] == MAIN_DETECT_SOUND_ID then
isSoundDetectedAndActive = true

for animName, track in pairs(activeReplacementTracks) do


if track and [Link] then
track:Stop()
track:Destroy()
end
activeReplacementTracks[animName] = nil
if trackStoppedConnections[animName] then
trackStoppedConnections[animName]:Disconnect()
trackStoppedConnections[animName] = nil
end
end

local soundConnection = [Link]:Connect(function()


isSoundDetectedAndActive = false
activeSoundConnections[child] = nil
end)
activeSoundConnections[child] = soundConnection
end
end)

currentHeartbeatConnection = [Link]:Connect(function()
if isSoundDetectedAndActive then
return
end

local playingTracks = animator:GetPlayingAnimationTracks()

for _, track in ipairs(playingTracks) do


local originalAnimId = [Link]

for animName, replaceId in pairs(MOTION_TO_REPLACE_IDS) do


if originalAnimId == replaceId and [Link] then
if not activeReplacementTracks[animName] then
local replacementId = REPLACEMENT_ANIM_IDS[animName]

if replacementId then
track:Stop()
track:Destroy()

local replacementAnim = [Link]("Animation")


[Link] = replacementId

local newTrack =
animator:LoadAnimation(replacementAnim)
[Link] = false
[Link] = [Link]
newTrack:Play()

if trackStoppedConnections[animName] then
trackStoppedConnections[animName]:Disconnect()
trackStoppedConnections[animName] = nil
end

trackStoppedConnections[animName] =
[Link]:Connect(function()
if activeReplacementTracks[animName] == newTrack
then
activeReplacementTracks[animName] = nil
end
if trackStoppedConnections[animName] then
trackStoppedConnections[animName]:Disconnect()
trackStoppedConnections[animName] = nil
end
end)
activeReplacementTracks[animName] = newTrack
end
end
break
end
end
end
end)
[Link]:Connect(function()
if currentHeartbeatConnection then
currentHeartbeatConnection:Disconnect()
currentHeartbeatConnection = nil
end
for _, conn in pairs(activeSoundConnections) do
if conn then conn:Disconnect() end
end
activeSoundConnections = {}
for animName, track in pairs(activeReplacementTracks) do
if track then
track:Stop()
track:Destroy()
end
if trackStoppedConnections[animName] then
trackStoppedConnections[animName]:Disconnect()
end
end
activeReplacementTracks = {}
trackStoppedConnections = {}
isSoundDetectedAndActive = false
end)
end

[Link]:Connect(function(character)
setupAnimationReplacementLogic(character)
end)

if [Link] then
setupAnimationReplacementLogic([Link])
end
end

end

--[[END OF 1-vr3 ANIM]]

--[[Uppercut]]
[Link]:Connect(onAnimationPlayed)

local animationId = 10503381238

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")


for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://14900168720"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 1.3

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(1)

end

end

--[[END OF UPPERCUT ANIM]]

--[[Downslam]]

[Link]:Connect(onAnimationPlayed)

local animationId = 10470104242

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if [Link] == "rbxassetid://" .. animationId then

local p = [Link]

local Humanoid = [Link]:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do


animTrack:Stop()

end

local AnimAnim = [Link]("Animation")

[Link] = "rbxassetid://93546004428904"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 4.46

Anim:Play()

Anim:AdjustSpeed(0)

[Link] = startTime

Anim:AdjustSpeed(1)
[Link](1.1)
Anim:Stop()

end

end

--[[END OF DOWNSLAM ANIM]]

--[[Punch anims]]

[Link]:Connect(onAnimationPlayed)

local Players = game:GetService("Players")

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoid = character:WaitForChild("Humanoid")

local animationIdsToStop = {

[178590788] = true, --downslam finisher

[178890495] = true, --punch1

[174644182] = true, --punch2

[167355386] = true, --punch3

[104643643] = true, --punch4

}
local replacementAnimations = {

["104693270"] = "rbxassetid://17889458563", --punch1

["1744182"] = "rbxassetid://75547590335774", --punch2

["16735386"] = "rbxassetid://13071982935", --punch3

["10443643"] = "rbxassetid://14374357351", --punch4

["17855788"] = "rbxassetid://12684185971", --downslam finisher

["17880495"] = "rbxassetid://14374357351", -- ult move

["11363255"] = "rbxassetid://13073745835", -- ult move

["129833733"] = "rbxassetid://12832505612", -- ult move

["13922951"] = "rbxassetid://15121659862", -- ult move

local queue = {}

local isAnimating = false

local function playReplacementAnimation(animationId)

if isAnimating then

[Link](queue, animationId)

return

end

isAnimating = true

local replacementAnimationId = replacementAnimations[tostring(animationId)]

if replacementAnimationId then

local AnimAnim = [Link]("Animation")

[Link] = replacementAnimationId

local Anim = humanoid:LoadAnimation(AnimAnim)

Anim:Play()

[Link]:Connect(function()
isAnimating = false

if #queue > 0 then

local nextAnimationId = [Link](queue, 1)

playReplacementAnimation(nextAnimationId)

end

end)

else

isAnimating = false

end

end

local function stopSpecificAnimations()

for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do

local animationId = tonumber([Link]:match("%d+"))

if animationIdsToStop[animationId] then

track:Stop()

end

end

end

local function onAnimationPlayed(animationTrack)

local animationId = tonumber([Link]:match("%d+"))

if animationIdsToStop[animationId] then

stopSpecificAnimations()

animationTrack:Stop()

local replacementAnimationId = replacementAnimations[tostring(animationId)]

if replacementAnimationId then

playReplacementAnimation(animationId)

end

end
end

[Link]:Connect(onAnimationPlayed)

local player = [Link]

local character = [Link] or [Link]:Wait()

local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local function onBodyVelocityAdded(bodyVelocity)

if bodyVelocity:IsA("BodyVelocity") then

[Link] = [Link]([Link].X, 0,
[Link].Z)

end

end

[Link]:Connect(onBodyVelocityAdded)

for _, descendant in pairs(character:GetDescendants()) do

onBodyVelocityAdded(descendant)

end

[Link]:Connect(function(newCharacter)

character = newCharacter

humanoidRootPart = character:WaitForChild("HumanoidRootPart")

[Link]:Connect(onBodyVelocityAdded)

for _, descendant in pairs(character:GetDescendants()) do

onBodyVelocityAdded(descendant)

end

end)
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local Lighting = game:GetService("Lighting")

local SECOND_IMPACT_SKYBOX = {
Front = "rbxassetid://16120898514",
Back = "rbxassetid://16120902896",
Left = "rbxassetid://16120898514",
Right = "rbxassetid://16120902896",
Up = "rbxassetid://14421113943",
Down = "rbxassetid://1067200702"
}

local function applySecondImpactSkyboxAlternative()


local existingSky = Workspace:FindFirstChildOfClass("Sky")
if existingSky then
existingSky:Destroy()
end

local newSky = [Link]("Sky")


[Link] = "SecondImpactSky_Local"

[Link] = SECOND_IMPACT_SKYBOX.Front
[Link] = SECOND_IMPACT_SKYBOX.Back
[Link] = SECOND_IMPACT_SKYBOX.Left
[Link] = SECOND_IMPACT_SKYBOX.Right
[Link] = SECOND_IMPACT_SKYBOX.Up
[Link] = SECOND_IMPACT_SKYBOX.Down
[Link] = Workspace
[Link] = 0.35
[Link] = [Link](150, 50, 50)
[Link] = [Link](30, 15, 15)
[Link] = 400
[Link] = [Link](120, 60, 60)
[Link] = true
[Link] = -0.5
end
applySecondImpactSkyboxAlternative()
[Link]:Wait()

if blackScreen and [Link] then


blackScreen:Destroy()
end

end

createFadingBlackScreen()

local Players = game:GetService("Players")


local LocalPlayer = [Link]
local RunService = game:GetService("RunService")

local function createEvangelionHUD()


local EvangelionHUD = [Link]("ScreenGui")
[Link] = "EvangelionHUD"
[Link] = [Link]
[Link] = [Link]

local PlayerInfoFrame = [Link]("Frame")


[Link] = "PlayerInfoFrame"
[Link] = [Link](0, 250, 0, 100)
[Link] = [Link](0, 10, 1, -110)
PlayerInfoFrame.BackgroundColor3 = [Link](20, 20, 20)
PlayerInfoFrame.BorderColor3 = [Link](0, 255, 0)
[Link] = 2
[Link] = 0.2
[Link] = 5
[Link] = EvangelionHUD

local PlayerImage = [Link]("ImageLabel")


[Link] = "PlayerImage"
[Link] = [Link](0, 80, 0, 80)
[Link] = [Link](0, 10, 0.5, -40)
[Link] = 1
[Link] = [Link]
[Link] = 6
[Link] = PlayerInfoFrame

local PlayerImageStroke = [Link]("UIStroke")


[Link] = [Link](0, 255, 0)
[Link] = 1
[Link] = [Link]
[Link] = PlayerImage

local PlayerNameText = [Link]("TextLabel")


[Link] = "PlayerNameText"
[Link] = [Link](0.6, 0, 0.3, 0)
[Link] = [Link](0.4, 0, 0.1, 0)
[Link] = 1
PlayerNameText.TextColor3 = [Link](0, 255, 0)
[Link] = [Link]
[Link] = true
[Link] = true
[Link] = [Link]
[Link] = PlayerInfoFrame
[Link] = [Link]

local HealthBarBackground = [Link]("Frame")


[Link] = "HealthBarBackground"
[Link] = [Link](0.6, 0, 0.2, 0)
[Link] = [Link](0.4, 0, 0.5, 0)
HealthBarBackground.BackgroundColor3 = [Link](50, 50, 50)
[Link] = 1
HealthBarBackground.BorderColor3 = [Link](0, 255, 0)
[Link] = PlayerInfoFrame

local HealthBarFill = [Link]("Frame")


[Link] = "HealthBarFill"
[Link] = [Link](1, 0, 1, 0)
[Link] = [Link](0, 0, 0, 0)
HealthBarFill.BackgroundColor3 = [Link](0, 255, 0)
[Link] = 0
[Link] = HealthBarBackground

return {
EvangelionHUD = EvangelionHUD,
PlayerInfoFrame = PlayerInfoFrame,
PlayerImage = PlayerImage,
PlayerNameText = PlayerNameText,
HealthBarBackground = HealthBarBackground,
HealthBarFill = HealthBarFill
}
end
local uiElements = createEvangelionHUD()
local PlayerImage = [Link]
local HealthBarFill = [Link]

local function onCharacterSpawned(character)


local humanoid = character:WaitForChild("Humanoid")

if [Link] == "" then


local success, content = pcall(function()
return Players:GetUserThumbnailAsync([Link],
[Link], [Link].Size420x420)
end)
if success and content then
[Link] = content
[Link] = 0
else
end
end

local function updateHealthBar()


local currentHealth = [Link]
local maxHealth = [Link]
local healthRatio = currentHealth / maxHealth

[Link] = [Link](healthRatio, 0, 1, 0)

if healthRatio > 0.6 then


HealthBarFill.BackgroundColor3 = [Link](0, 255, 0)
elseif healthRatio > 0.3 then
HealthBarFill.BackgroundColor3 = [Link](255, 255, 0)
else
HealthBarFill.BackgroundColor3 = [Link](255, 0, 0)
end
end

local healthChangedConnection
healthChangedConnection = [Link]:Connect(updateHealthBar)

[Link]:Connect(function()
if healthChangedConnection then
healthChangedConnection:Disconnect()
end
end)

updateHealthBar()
end

[Link]:Connect(onCharacterSpawned)

if [Link] then
onCharacterSpawned([Link])
end
[Link] = 2.5

You might also like