Answers for "how to find an id of player from the player name roblox scripting"

1

get player id from character roblox

local Players = game:GetService("Players")
local function getPlayerByUserId(userId)
	for _, player in pairs(Players:GetPlayers()) do
		if player.UserId == userId then
			return player
		end
	end
end
Posted by: Guest on November-17-2020

Code answers related to "how to find an id of player from the player name roblox scripting"

Browse Popular Code Answers by Language