Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animation failed to load in Backpack?

Asked by 6 years ago
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local SitEmote = ReplicatedStorage:WaitForChild("SitEmote")

local Emotes = script.Parent:WaitForChild("Emotes")
local SitAnimation = Emotes:WaitForChild("SitEmote")

local function SitEmoteFired()
    print("signal received")
    SitAnimation.AnimationId = "rbxassetid://1414788779"
    local animation = player.Character.Humanoid:LoadAnimation(SitAnimation)
    animation.KeyframeReached:connect(function()
        print('Working')    
    end)
        animation:Play()
end

SitEmote.OnClientEvent:Connect(SitEmoteFired)

localscript inside StarterPack

I get an error in the game (not in studio)

Animation (an animation link) failed to load in "Players.RedcommanderV2.Backpack.SitEmote.Animation". Animation failed to load

Answer this question