Attempting to access "Players" results in a nil value
11 months ago
| 24
• By owo_pounce
This code is taken straight from the Polytoria API docs, but when I put it into a script (stored in ScriptService), it throws an error and says that it's "attempting to call a nil value". What am I getting wrong here?
game["Players"].PlayerAdded:Connect(function (player)
print(player.Name .. " joined the game!")
end)
11 months ago
• By owo_pounce
OP
Never mind, I guess it works now. No clue why though, maybe I'm just bad at Lua lol
11 months ago
• By WaterMelon1
You have a weird name.