- Get all players
const AllPlayers = [...world.getPlayers()];
- Find player using the find function
const InputName = "JaylyPlays";
AllPlayers.find((player) => player.name === InputName);
Full script:
const InputName = "JaylyPlays";
const AllPlayers = [...world.getPlayers()];
AllPlayers.find((player) => player.name === InputName);