[New to scripting btw]
I'm not understanding why my animation for swinging the sword isn't playing in the test server. Heres the LocalScript followed by the server Script:
LocalScript
local player = script.Parent.Parent
local tool = script.Parent
local swingevent = game.ReplicatedStorage.swingevent
tool.Equipped:connect(function(Mouse)
Mouse.Button1Down:connect(function()
print("Slash")
swingevent:FireServer()
end)
end)
Script
local swingevent = game.ReplicatedStorage.swingevent
local tool = script.Parent
local character = tool.Parent
swingevent.OnServerEvent:connect(function(player)
print(player.Name.." swung the sword!")
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=2035212005"
local loadAnim = game.Workspace[player.Name].Humanoid.Animator:LoadAnimation(animation)
loadAnim:Play()
end)
The RemoteEvent fires, but only prints (player.Name.." swung the sword!"), not loading the animation. I want other clients to see this animation performed. Thanks in advance!

4 comments
game.Workspace[player.Name].Humanoid:LoadAnimation() Load the animation on the Humanoid.
Changed it to load on the humanoid. Animation plays in studio, but when I load up a local server, the server doesn't see the animation
Did you make sure the animation's priority is set to action?
Yeah, the priority was set to action