I would like the default roblox idle animation to be change to my own custom made animation. when a player joins However, the animation did not play at all
The conditions are displayed like this:
I did try the traditional method of copying the ‘animate’ localscript and change the id inside of it, then put it in the StarterCharacterScript, but did not work also
I’ve tried to put a script inside of a dummy, to play the animation for that character, somehow this DID work
so my lastest experiment is to put a script inside of the ServerScriptService. I experimented with differend priorities, such as idle and movement . the animation is already looped via roblox’ animation plugin, here’s the code, but still didn’t work
-- idle anim: 132154055342019
local Idle_anim_id = 'rbxassetid://132154055342019'
game:GetService("Players").PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(chara)
local animate_LC = chara:WaitForChild("Animate")
animate_LC.idle.Animation1.AnimationId = Idle_anim_id
end)
end)
Your script seems to work for me? Literally copied and pasted, worked first try. Though if it’s not working for you it’s not working. Issues I could possibly think that are arising are:
Your script is being loaded after you load in. This can be combated by doing a for loop on all the players in the game already
You – or the group that your place is in – does not own or have permission to use the animation and therefore is unable to use it. (Check dev console for “failed to load animation” errors.)
The animate script is loading before you are able to change the ID.
Also, you said that you tried copying the animate script already? Are you able to go through the steps you did there as it should also be a viable option. (For R6 – unsure if project structure is the same for R15 – make sure that you update both Animation1 and Animation2 inside of the idle StringValue.
in my case, it is R6, I’ve tried to alter both Animation1 and Animation2 via scripting (continuing from the script provided above) and still did not play, but when I test and view my roblox character properties, the AnimationId of Animation1 and 2 have the id of my animation, not roblox’
the animation is mine, so permission is not a problem
about copying the animate script method
I found one method that requires me to test into the game so that my character would load, and then copy the ‘animate’ local script inside of my character. Then I stop testing to paste the local script inside StarterCharacterScripts, change the idle animation ids inside the code. inside the idle StringValue, updating the Animation1 and 2 to my animation id (keep this in mind, this method does not work also)
I’m unsure how to combat the loading issue using for loop on all the players, could you please clarify (maybe provide a bit of code reference?)
CHAT, I FOUND THE SOLUTION, the setting I thought was R6, It wasn’t really R6, it is still in the state of R15, I did not change the avatar settings properly (not used to the new UI), thus, my R6 animation currently works in R6 world setting