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

Workspace.Script:4: attempt to concatenate local 'plr' (a userdata value)?

Asked by 5 years ago

local player = game:GetService("Players") player.PlayerAdded:connect(function(plr) print("Welcome!"..plr) end)~~~~~~~~~~~~~~~~~ **

~~~~~~~~~~~~~~~~~ there is a eror that pops out

0
XD this is the 87654th question :V Xapelize 2658 — 5y

1 answer

Log in to vote
1
Answered by
royaltoe 5144 Moderation Voter Community Moderator
5 years ago

Player is the player object inside players. You can see it yourself in the explorer when you hit play.

You're going to want to print out the players name, not the object.

print(plr.Name)

Ad

Answer this question