In an local script I have this:
script.Parent.Activated:Connect(function() local Event = game.ReplicatedStorage.HammerAnimation Event:FireServer(1441361561) end)
and in an normal script in the workspace I have this
game.ReplicatedStorage.HammerAnimation.OnServerEvent:Connect(function(player, animationId) local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://" .. animationId local something = workspace[player.Name].Humanoid:LoadAnimation(animation) something:Play() end)
Nothing happens when I activate the tool.