Answers for "roblox get player"

2

roblox get player from character

local character = game.Workspace.Player
local player = game.Players:GetPlayerFromCharacter(character)

--This function above will return the object value of the player
--if that character dosen't have a player, it will return nil instead
 
if player then
    print("Player is " .. player.Name)
else
    print("Player doesn't exist!")
end
Posted by: Guest on June-04-2021
0

roblox get players

Players = game:GetService("Players")
Posted by: Guest on March-29-2021

Browse Popular Code Answers by Language