"Playerscript is not a valid member of player" How to fix?
Please encode Lua code in the Lua block code tag (look for the Lua icon in the editor).
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
1 | local Script = script.LocalScript:clone() |
2 | script.Parent = player.PlayerScripts |