How would I make this script?

local topPlayer = pcall(dataStore.GetAsync, dataStore, 1)

Players.PlayerAdded:Connect(function(plr)

    if plr.UserId == topPlayer.key then

        -- give them tool
    end
end)