I made a script that does everything it is supposed to, it even works fine in play mode, but in test or online mode it doesn't work. The output says "PlayerScript is not a valid member of player", but I can't figure out what is wrong. Can someone please help? Here is the part I am having trouble with
local Script = script.LocalScript:clone()
script.Parent = player.PlayerScripts

3 comments
Is this a server script? Additionally, just because it works in Play Mode NEVER means it will work in online mode. Play mode takes the client and the server and puts them in one. Online mode is completely absolutely separate.
I know, I just said that to mention that everything I know of except that part has been done properly. (Or so I believe)
So this is a server script correct? I'm pretty sure the server has no access to the PlayerScripts once the player joins the game. You would need to clone the LocalScript to StarterPlayerScripts.