I am trying to use _G to print out a PlayerAdded piece of code which should print out the players name when they join.
Script !:
game.Players.PlayerAdded:Connect(function(playerName)
_G.PlayerName = playerName
end)
script 2:
print(_G.PlayerName)

1 comment
_G is privy to it's end of the spectrum. If defined on the Server, it is inaccessible to the Client. You're also allocating the Player Instance, not their name: _G.PlayerName = Player.Name*