Getting player from character that is controlled by player has a built in function
game.Players:playerFromCharacter(character)
does getting player from character that is not controlled by player have one too?
Getting player from character that is controlled by player has a built in function
game.Players:playerFromCharacter(character)
does getting player from character that is not controlled by player have one too?
here's a function you can make:
local function playerFromCharacter(char)
local player=game.Players[char.Name]
return player
end
I tried using game.Players:FindFirstChild(character.Name) (didnt work still nil). What difference did it have with game.Players[character.Name]? (Works)
i am not sure if i'm being honest with you, i started using [] these brackets more often and my scripts became more efficient
can you tell me the difference between () and []? Sounds like I could use it too xD
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
idk but you can make your own get player from charcter function
:playerFromCharacter is not a method. GetPlayerFromCharacter is