im trying to learn in pairs loops, and whenever i want to get a player id this message pops up :
ServerScriptService.Script:21: attempt to concatenate local 'v' (a userdata value)
what i think is happening is the userid not coming out as a string but im not sure
My code:
game.Players:WaitForChild("fad99") wait(3) local getPlayerName = game.Players:GetChildren() for i,v in pairs(getPlayerName) do print(i.."Times") print(v.."'s UserId is "..v.UserId) wait() if v.Name == "fad99" then print("Owner") end end