Hello! I’ve recently came to a dilemma; I would like to change animations for the player exclusively by username registering (in this instance, my username), however although it does change the actual animation track’s ID, it does not play the new animation. In this case, it is the player’s idle animation.
Here’s a test script I’m currently using:
local Players = game:GetService("Players") local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid") for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do playingTracks:Stop(0) end local animateScript = character:WaitForChild("Animate") animateScript.idle.Animation1.AnimationId = "rbxassetid://8085184993" animateScript.idle.Animation2.AnimationId = "rbxassetid://8085184993" end local function onPlayerAdded(player) if player.Character then if player.Name == "Exphxoria" then onCharacterAdded(player.Character) end end player.CharacterAdded:Connect(onCharacterAdded) end Players.PlayerAdded:Connect(onPlayerAdded)
If you have any solutions, let me know! So far nothing else I’ve seen has been able to work properly.