You can write your topic however you want, but you need to answer these questions:
I’m trying to use a remote event to make the character play an animation when you click a button. The LocalScript calls the remote event but nothing happens on the ServerScript, it doesn’t even run I made it print “Hello” if it runs but it doesn’t.
Input script is the LocalScript, AttackEvent is the event, and AttackScript is the serverScript
It might because you spelled “AttackEvent” wrong when referencing them in your Server Script. On the Server Script, you reference it as AttackEventEvent, when in your image, it is spelled as AttackEvent. Also, sorry for being picky about small stuff, but here are just a few helpful nitpicks to fix:
I recommend using Humanoid.Animator:LoadAnimation() to load your animations, as just loading the animations on the humanoid is deprecated.
You can’t send the mouse object through the client to the server, as the mouse only exists on the client, meaning it would be nil. Exceptions to the mouse is that you can send mouse properties and anything relating to the mouse, but not just the mouse object itself.
I think I realized the issue. While testing the script, your Server Script didn’t seem to function at all. The thing is, Server Scripts don’t work in ReplicatedStorage. The quick solution is to move the script into ServerScriptService, and instead of script.Parent.AttackEvent.OnServerEvent, use game.ReplicatedStorage.Attacks.Punctuator.M1.AttackEvent.OnServerEvent.
Yeah, sorry for the confusion. All I meant is that Server Scripts don’t function in ReplicatedStorage, so you should move the Server Script to ServerScriptService instead. Sorry if I made it way too confusing for you.