Change Default Animations

Here’s how you can change animations and replace them with your own.

You can press F5 in ROBLOX Studio in any place.
Find the player character in the workspace hierarchy and copy the “Animate” script.
Stop the test simulation and paste the script wherever is most convenient for you.
Replace the animation id of any animation with your own. (Inside the script you just pasted).

Then, when a players joins, you can do the following (from a local script):

local Player = game.Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:Wait(); -- Wait for the character to spawn
local Humanoid = Character:WaitForChild("Humanoid");

Character:WaitForChild("Animate"):Destroy(); -- Destroy the default animations

local Tracks = Humanoid:GetPlayingAnimationTracks(); -- Get all playing animations from our character

for i, thistrack in pairs(Tracks) do -- Stop and destroy all animations that are playing
	thistrack:Stop();
	thistrack:Destroy();
end

local NewAnimScript = (Your script here) -- Reference and parent the new script
NewAnimScript.Parent = Character;
NewAnimScript.Disabled = false;

What’s nice about animations is that you don’t need to control it by the filtered enabled standard. If the player changes their character’s animation locally, it will replicate to other clients.

Good luck!

60 Likes