when the player activates the tool from a server script a remoteEvent picks up and should play the animation, but nothing is happening. even when the animation priority is set to Action. Please help!
local tool = script.Parent local remoteEvent = tool:WaitForChild("RemoteEvent1") remoteEvent.OnClientEvent:Connect(function() print("p") local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) animation:Play() end)
You dont need a remote event, you should make something like this:
local tool = script.Parent tool.Activated:Connect(function() print("p") Animation=game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) Animation:Play() end)
Also use a local script