I’m having an issue running a local test server. Just hitting play works fine.
When I run it I get this error:
[11:33:46.165 - cClientMain is not a valid member of StarterPlayerScripts]
This is the code that I am calling: local cClientMain = require(game.StarterPlayer.StarterPlayerScripts.cClientMain)
This worked yesterday and previous days, but today it is not working and neither are my older projects which use similar code.
I noticed when I run the local test server I have 2 folders of StarterPlayerScripts and StarterCharacterScripts. One is empty and one contains the modules/scripts. So I know it can’t find it because it’s looking in the empty folder but I have no clue why these extra empty folders are created in the first place.
Please see the attached image that shows the extra folders that are placed there at run time.
Any ideas why this started? I haven’t changed anything from yesterday vs today that I can recall. I definitely did not touch my older project from months ago so I know it wasn’t anything I did in that project.
Thanks for the comment, I did try that before and it didn’t work. It appears my code is referencing the empty extra folder that is created for some reason so it will never exist. I wonder if there was some sort of update to Roblox studio today.
I most likely have to figure out the proper place for this code then the WaitForChild will most likely work correctly.