from a server script.
game.ReplicatedStorage.EventForJunk.OnServerEvent:connect(function(player)
print(player.PlayerScripts.Name)--This errors saying it's nil
end)
In studio, it works fine, in player it errors up about playerScripts being nil. I added a :WaitForChild(), but it never passed, it just stayed waiting, forever.

1 comment
PlayerScripts can not be accessed via ServerScript. http://wiki.roblox.com/index.php?title=API:Class/PlayerScripts