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

Animation only shows for me while in studio but does not work in game?

Asked by 4 years ago
script.Parent.Equipped:Connect(function()
    local anim = Instance.new("Animation")
    anim.Parent = game.Players.LocalPlayer.Character.Humanoid
    anim.AnimationId = "rbxassetid://"..2907090579
    local as = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
    as:Play()
end)

When you equip the tool, it warns in the console that the animation could not be played. However, it works in the studio, but only shows for me. Help?

0
Pretty sure its a problem with either: you own the anim but are using it on a group game, or you don't own the anim but a group does and u r using it on your game. Gomenasa1 32 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

well; if your using a localscript then that's expected; try using remote events this way so server plays the animation and not client

0
animations does not require remove events.. Thesquid13 301 — 4y
Ad

Answer this question