also the local script is to control inputs in the game for example when the player clicks the punch animation plays or when the player presses f the block animation plays
Are there any errors when you test it in a public game? Also, you should be disconnecting the old event connections whenever a character is added since it will build up. Personally, I will just have that code on the outside and not run it whenever a character is added
there aren’t any errors other than the fact that the things that are in the local script wont run when im in a public server. I will try doing what u said though
Im guessing the character is loaded BEFORE the local script runs, therefore the character added wont fire as the character is already there. You could just check if the character is already there and run that same code that is inside the character added event