Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I confirm Data list?

Asked by 4 years ago
Edited 4 years ago

I am trying to do a Data list to see what player has what, and I ran into an error in this first block of code right here.

game.Players.PlayerAdded:Connect(function(Player)
    print(Player.Name " Has empty data!")
    print(Player.Name " Has nothing!")
end)

If anyone knows a solution please answer down below.

0
unsolved nvm Unknown_TheDevil -5 — 4y

1 answer

Log in to vote
0
Answered by
Despayr 505 Moderation Voter
4 years ago

It looks as though you are trying to concatenate two values/strings.

This is a simple fix. To concatenate, you simply need to add two "." in between the variables.

game.Players.PlayerAdded:Connect(function(Player)
    print(Player.Name .. " Has empty data!")
    print(Player.Name .. " Has nothing!")
end)
Ad

Answer this question