ADVERTISEMENTREMOVE ADS
shedletsky if he locked in
47,248 views
Description
ADVERTISEMENTREMOVE ADS
41 Lines • 1.36 KiB
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- Change these IDs to the animations you want
local replacementAnimationId = "rbxassetid://123569615350667" -- ✅ Your new animation
local targetAnimationId = "rbxassetid://116618003477002" -- 🚫 Original animation to replace
-- Function to configure the character and replace animations
local function setupCharacter(char)
local humanoid = char:WaitForChild("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator")
-- If it doesn't exist, create an Animator
if not animator then
animator = Instance.new("Animator")
animator.Parent = humanoid
end
-- Detect when any animation is played
animator.AnimationPlayed:Connect(function(track)
-- If the animation is the one we want to replace
if track.Animation.AnimationId == targetAnimationId then
-- Stop the original animation
track:Stop()
-- Play the new animation
local newAnim = Instance.new("Animation")
newAnim.AnimationId = replacementAnimationId
local newTrack = animator:LoadAnimation(newAnim)
newTrack:Play()
end
end)
end
-- Configure the character once it has been added to the game
if player.Character then
setupCharacter(player.Character)
end
-- Detect if the character has been added after running the script
player.CharacterAdded:Connect(setupCharacter)
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS








Comments