If you’re trying to run your own character’s animation, you’ll have to call it via client side with a LocalScript.
Below is a demo, code is inefficient, but it works: Local Script, place in StarterCharacterScript
local replicatedStorage = game:GetService("ReplicatedStorage")
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID="..animationId
if not game.Players.LocalPlayer.Character then
game.Players.LocalPlayer.CharacterAdded:Wait()
end
local loadAnimation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation)
loadAnimation:Play()
wait(10)
loadAnimation:Stop()
animation:Destroy()
The only time you can run animations with a server script is when it’s done on NPCs or Bots.