So, i'm trying to start an player animation when I click. I'm new to scripting so i really don't understand what wrong. I've tried using
script.Parent.MouseButton1Down:Connect(Function() --some code here i forgot what it was end)
but that doesn't work. Please help.
script.Parent.MouseButton1Down:Connect(function() -- this is in a local script inside of the tool game.Replicated Storage.RemoteEvent:FireServer()-- or whatever the name and the parent end
-- now, in the script in server script service
game.Repstrg.RemotEvent.Onserverevent:Connect(function(player) local anim = -- wherever ur animation is local animator = instance.new("Animator", player.Character.Huamnoid) local track = animator:LoadAnimation(anim)
track:Play()
end