In studio, this function works absolutely fine. But in game, it gives an error saying PlayerScripts is not a valid member of Player, which is really confusing since PlayerScripts is clearly there in Studio mode.
function bindToNewPlayer()
vPlayer = game.Players:GetPlayerFromCharacter(vChar)
if vPlayer then
print ((vPlayer.Name).." Has entered!")
local CLocalScript=LocalScript:clone()
CLocalScript.Parent=vPlayer.PlayerScripts-------This is the line that is causing errors.
end
end
