I following doing AlvinBlox's tutorial on how to animate but I haven't been able to make it work. I did the following:
Inserted LocalScript and put in the following
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer("2979587799")
end)
Inserted Script into Workspace and put the following
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID="..animationID
local loadedAnimation = game.Workspace(player.Name).Humanoid:LoadedAnimation(animation)
loadedAnimation:Play()
end)
I have tested it and played in-game with no luck. Are there any errors? Is the method simply outdated? What should I do instead?