So I'm testing out custom animations for the first time. I created my animations and exported them with no problem. I created a script in the ServerScriptService and loaded my custom animations into it, when testing the game in studio it worked fine. So far so good. I exit Studio and test the game out through the Roblox Client, none of the animations work. Went back and made sure I uploaded the updated animations then tried it in the client again, still won't work. So the animations work in Studio but not through the client. I'm not at all sure why this is happening
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.run.RunAnim.AnimationId = "rbxassetid://4919543425" -- Run animateScript.walk.WalkAnim.AnimationId = "rbxassetid://4919543425" -- Walk animateScript.jump.JumpAnim.AnimationId = "rbxassetid://4917206902" -- Jump animateScript.fall.FallAnim.AnimationId = "rbxassetid://4917217060" -- Fall end local function onPlayerAdded(player) player.CharacterAppearanceLoaded:Connect(onCharacterAdded) end Players.PlayerAdded:Connect(onPlayerAdded)
This is the script I'm using, is there something missing I need to add? Any help would be appreciated
EDIT: I played the game and looked at the Dev Console and when I performed the action that would be these animations play it threw an error, how can I fix this??
Nevermind I figured it out. I was uploading the animations to my account and trying to use them in a group game, needed to upload them to group creations. My bad