when i joined the game it doesn't clone the ScriptBreaker Script And it prints an error says "PlayerScripts is not a valid member of Player"
--Variables local Players = game:GetService('Players') local SecurityBreaker = script.SecurityBreaker --ScriptMain game.Players.ChildAdded:connect(function(player) SecurityBreaker:Clone().Parent = player.PlayerScripts end)
You don't actually need code to do this, if you just put the script inside 'StarterPlayerScripts' located in 'StarterPlayer', whenever a player joins the game the script will be put into their PlayerScripts.
If Your sripts are local then change them to normal ones since locals can't get player scripts service