Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

PlayerScripts is not a valid member of Player!?

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)

3 comments

0

Where is PlayerScripts located and what is it?

0

PlayerScripts is Located in Player .-.

0

I Think You Mean StarterPlayerScripts? Correct Me If Im Wrong.

3 answers

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.

1 comment

0

no cuz im making a anti exploit that has a settings if you want anti exploits enabled plz help

If Your sripts are local then change them to normal ones since locals can't get player scripts service

Server can not access Player Scripts, it's is not possible.

This discussion is preserved as it was. New answers, comments, and votes are closed.