#Custom Animations only working in roblox studio and not in a normal game

1 messages · Page 1 of 1 (latest)

tender stag
#

i might be dumb but i do not know how to fix it

#

here is the custom animation script

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        local animate = character:WaitForChild("Animate")

        -- Set custom walk animation
        local walk = animate:WaitForChild("walk"):WaitForChild("WalkAnim")
        walk.AnimationId = script:WaitForChild("Run").AnimationId

        -- Set idle animations
        local idle1 = animate:WaitForChild("idle"):WaitForChild("Animation1")
        idle1.AnimationId = "rbxassetid://114242430219957"

        local idle2 = animate:WaitForChild("idle"):WaitForChild("Animation2")
        idle2.AnimationId = "rbxassetid://114242430219957"

        -- Set jump animation
        local jumpAnim = animate:WaitForChild("jump"):WaitForChild("JumpAnim")
        jumpAnim.AnimationId = "rbxassetid://111056110024190"

        -- Set fall animation
        local fallAnim = animate:WaitForChild("fall"):WaitForChild("FallAnim")
        fallAnim.AnimationId = "rbxassetid://9403405732164" -- double-check this ID!
    end)
end)

green vigil
#

I beleive it may have something to do with asset permissionss. Make sure the animation is public.