Hey guys, so I've been trying to change ROBLOX default animations and I tried a few methods that didn't work, including the one suggested in the Wiki.
1st: I tried changing the IDs located inside the animate script. "Char.Animate.walk.WalkAnim.AnimationId ="
2nd: I tried doing the first method but using a script, then I decided to make a copy of Animate script with changed IDs, store it in ReplicatedStorage and clone it then delete the one created by the engine.
3rd: Tried the first two methods but with some type of wait and verifying the character had spawned.
4th: I also tried disabling the script changing the IDs and then enabling it.
None of the methods worked (only in solo mode), I also tried to see why no changes were made and decided to just delete the Animate script created by default but I saw it wasn't being erased, tried doing it using a local and normal script.
Can someone please help me?
Changing the default animations doesn't work for me either, but I will try to solve your problem:
In solo mode (studio) your player spawns before scripts do, so they will not see that a player is added. A way of fixing this would be:
function onPlayerAdded (player) -- Lots of ur code end local Players = game:GetService("Players") --When a player joins, call the onPlayerAdded function Players.PlayerAdded:connect(onPlayerAdded) --Call onPlayerAdded for each player already in the game for _,player in pairs(Players:GetPlayers()) do onPlayerAdded(player) end
game.Players.PlayerAdded:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.idle.Animation1.AnimationId="http://www.roblox.com/asset/?id=274137587" --Change ID end) --Don't forget to change idle and animation1 to correct paths
Add in normal script in serverscriptstorage. Read instructions.
The answer is quite easy!
-- Even if this Question was made 2 years ago, i will still answer it! --
The method to change player's animation is...
Removing The Player's Animate Script
--- To do that, you have to remove their animate script once each player joins. ---- Note : Use a Normal Script for that.
Creating And Replacing Another Animate Script
--- To do this, you have to Copy the Animate Script inside the actual Player's Character, which means once you are in test mode, find the script named "Animate", and Copy it!
------ Note : Only LOCAL script for this; most be placed inside the Script you have created, to find the Local Script, and replace it with YOUR script.
Hope it helps!
Just gave a METHOD, no scripts ;)
I know I'm three years late but it's just in case someone stumbles upon this article. This is the FASTEST AND EASIEST way of doing this.
If you need any help or have any questions please contact me. ;)