I got scripts and local scripts inside my startercharacter that is inside StarterPlayer but for some reason all the scripts like to not even run. I changed the first line to a print function and nothing happens. It doesn’t print anything
No erros, NOTHING.
Please help. I don’t understand why nothing is running because it should. The scripts aren’t disabled.
Can we see your scripts please. You probably have something about them that causes them to not run.
My script is a localscript and the only thing inside it is this:
print("Hello World")
This won’t print inside the output. Oh, and all the categories in the output are on, so that’s not the problem either
The localscript is inside a module script, the module script is inside a model and the model is inside the player’s character. (The starter character)
Huh, the scripts disappear when I run the game? The model script has a print function too, (It doesn’t run but the script is definitely there client-side AND server-side.)
Module scripts only run when called, so it makes sense that the module script isn’t printing. Local scripts only run when they are a descendant of a player, or of the player’s character. The model that the local script is in, does it start out as a descendant of the character or is it cloned in later. If it started out in the workspace then it might not run, even after it was moved to the player.
3 Likes
Interesting, I found a solution by putting all the scripts in StarterCharacterScripts. Previously it deleted the script and the localscript. now it doesn’t! The local script and normal script call the module script.
3 Likes